#[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 AssetNotPresentInRun {
    #[serde(rename = "runRid")]
    run_rid: super::super::super::super::super::objects::scout::run::api::RunRid,
    #[serde(rename = "assetRid")]
    asset_rid: super::super::super::super::super::objects::scout::rids::api::AssetRid,
}
impl AssetNotPresentInRun {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        run_rid: super::super::super::super::super::objects::scout::run::api::RunRid,
        asset_rid: super::super::super::super::super::objects::scout::rids::api::AssetRid,
    ) -> Self {
        Self::builder().run_rid(run_rid).asset_rid(asset_rid).build()
    }
    #[inline]
    pub fn run_rid(
        &self,
    ) -> &super::super::super::super::super::objects::scout::run::api::RunRid {
        &self.run_rid
    }
    #[inline]
    pub fn asset_rid(
        &self,
    ) -> &super::super::super::super::super::objects::scout::rids::api::AssetRid {
        &self.asset_rid
    }
}
impl conjure_error::ErrorType for AssetNotPresentInRun {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "Scout:AssetNotPresentInRun"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["assetRid", "runRid"]
    }
}
