/// ResultConfiguration is incompatible with the requested compute.
#[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 UnavailableResultConfiguration {
    #[serde(rename = "reason")]
    reason: super::super::super::super::super::objects::persistent::compute::api::UnavailableResultConfigurationReason,
}
impl UnavailableResultConfiguration {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        reason: super::super::super::super::super::objects::persistent::compute::api::UnavailableResultConfigurationReason,
    ) -> Self {
        Self::builder().reason(reason).build()
    }
    #[inline]
    pub fn reason(
        &self,
    ) -> &super::super::super::super::super::objects::persistent::compute::api::UnavailableResultConfigurationReason {
        &self.reason
    }
}
impl conjure_error::ErrorType for UnavailableResultConfiguration {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "PersistentCompute:UnavailableResultConfiguration"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["reason"]
    }
}
