/// Invalid tag filter configuration was provided.
#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    PartialEq,
    Eq,
    PartialOrd,
    Ord,
    Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct InvalidTagFilterConfiguration {
    #[serde(rename = "errorType")]
    error_type: super::super::super::super::super::objects::scout::compute::api::TagFilterValidationErrorType,
    #[builder(into)]
    #[serde(rename = "message")]
    message: String,
    #[builder(default, into)]
    #[serde(rename = "invalidKeys", skip_serializing_if = "Option::is_none", default)]
    invalid_keys: Option<std::collections::BTreeSet<String>>,
}
impl InvalidTagFilterConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        error_type: super::super::super::super::super::objects::scout::compute::api::TagFilterValidationErrorType,
        message: impl Into<String>,
    ) -> Self {
        Self::builder().error_type(error_type).message(message).build()
    }
    #[inline]
    pub fn error_type(
        &self,
    ) -> &super::super::super::super::super::objects::scout::compute::api::TagFilterValidationErrorType {
        &self.error_type
    }
    #[inline]
    pub fn message(&self) -> &str {
        &*self.message
    }
    #[inline]
    pub fn invalid_keys(&self) -> Option<&std::collections::BTreeSet<String>> {
        self.invalid_keys.as_ref().map(|o| &*o)
    }
}
impl conjure_error::ErrorType for InvalidTagFilterConfiguration {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:InvalidTagFilterConfiguration"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["errorType", "message"]
    }
}
