#[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 ResourceTypeAndSearchStateMismatch {
    #[serde(rename = "resourceType")]
    resource_type: super::super::super::super::super::objects::scout::savedviews::api::ResourceType,
    #[serde(rename = "searchStateExpectedType")]
    search_state_expected_type: super::super::super::super::super::objects::scout::savedviews::api::ResourceType,
}
impl ResourceTypeAndSearchStateMismatch {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        resource_type: super::super::super::super::super::objects::scout::savedviews::api::ResourceType,
        search_state_expected_type: super::super::super::super::super::objects::scout::savedviews::api::ResourceType,
    ) -> Self {
        Self::builder()
            .resource_type(resource_type)
            .search_state_expected_type(search_state_expected_type)
            .build()
    }
    #[inline]
    pub fn resource_type(
        &self,
    ) -> &super::super::super::super::super::objects::scout::savedviews::api::ResourceType {
        &self.resource_type
    }
    #[inline]
    pub fn search_state_expected_type(
        &self,
    ) -> &super::super::super::super::super::objects::scout::savedviews::api::ResourceType {
        &self.search_state_expected_type
    }
}
impl conjure_error::ErrorType for ResourceTypeAndSearchStateMismatch {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::Internal
    }
    #[inline]
    fn name() -> &'static str {
        "SavedView:ResourceTypeAndSearchStateMismatch"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["resourceType", "searchStateExpectedType"]
    }
}
