#[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 FailedToResolveSeriesForCheck {
    #[serde(rename = "runRid")]
    run_rid: super::super::super::super::super::objects::scout::run::api::RunRid,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[builder(into)]
    #[serde(rename = "reason")]
    reason: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "additionalArgs",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    additional_args: std::collections::BTreeMap<String, String>,
}
impl FailedToResolveSeriesForCheck {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        run_rid: super::super::super::super::super::objects::scout::run::api::RunRid,
        channel: impl Into<String>,
        reason: impl Into<String>,
    ) -> Self {
        Self::builder().run_rid(run_rid).channel(channel).reason(reason).build()
    }
    #[inline]
    pub fn run_rid(
        &self,
    ) -> &super::super::super::super::super::objects::scout::run::api::RunRid {
        &self.run_rid
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    #[inline]
    pub fn reason(&self) -> &str {
        &*self.reason
    }
    #[inline]
    pub fn additional_args(&self) -> &std::collections::BTreeMap<String, String> {
        &self.additional_args
    }
}
impl conjure_error::ErrorType for FailedToResolveSeriesForCheck {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "DataReview:FailedToResolveSeriesForCheck"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["runRid"]
    }
}
