#[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 TagDetails {
    #[builder(default, set(item(type = String, into)))]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    tags: std::collections::BTreeSet<String>,
    #[builder(into)]
    #[serde(rename = "defaultTag")]
    default_tag: String,
}
impl TagDetails {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(default_tag: impl Into<String>) -> Self {
        Self::builder().default_tag(default_tag).build()
    }
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeSet<String> {
        &self.tags
    }
    #[inline]
    pub fn default_tag(&self) -> &str {
        &*self.default_tag
    }
}
