#[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 TagNotFound {
    #[serde(rename = "resourceRid")]
    resource_rid: conjure_object::ResourceIdentifier,
    #[serde(rename = "tagName")]
    tag_name: super::super::super::super::super::objects::scout::versioning::api::TagName,
}
impl TagNotFound {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        resource_rid: conjure_object::ResourceIdentifier,
        tag_name: super::super::super::super::super::objects::scout::versioning::api::TagName,
    ) -> Self {
        Self::builder().resource_rid(resource_rid).tag_name(tag_name).build()
    }
    #[inline]
    pub fn resource_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.resource_rid
    }
    #[inline]
    pub fn tag_name(
        &self,
    ) -> &super::super::super::super::super::objects::scout::versioning::api::TagName {
        &self.tag_name
    }
}
impl conjure_error::ErrorType for TagNotFound {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::NotFound
    }
    #[inline]
    fn name() -> &'static str {
        "Scout:TagNotFound"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["resourceRid"]
    }
}
