// Code generated by oagen. DO NOT EDIT.

#[allow(unused_imports)]
use super::*;
#[allow(unused_imports)]
use crate::enums::*;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MatcheRegexCondition {
    /// Defaults to `matches_regex`.
    #[serde(skip_serializing_if = "Option::is_none", default)]
    pub kind: Option<String>,
    pub pattern: String,
}
impl MatcheRegexCondition {
    /// Construct a new `MatcheRegexCondition` with the required fields set.
    #[allow(deprecated)]
    pub fn new(pattern: impl Into<String>) -> Self {
        Self {
            kind: Default::default(),
            pattern: pattern.into(),
        }
    }
}
