/// The specified REFPROP substance is not supported or not available in the current configuration.
#[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 UnsupportedRefpropSubstance {
    #[builder(into)]
    #[serde(rename = "substance")]
    substance: String,
}
impl UnsupportedRefpropSubstance {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(substance: impl Into<String>) -> Self {
        Self::builder().substance(substance).build()
    }
    #[inline]
    pub fn substance(&self) -> &str {
        &*self.substance
    }
}
impl conjure_error::ErrorType for UnsupportedRefpropSubstance {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Compute:UnsupportedRefpropSubstance"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["substance"]
    }
}
