#[derive(
    Debug,
    Clone,
    conjure_object::serde::Serialize,
    conjure_object::serde::Deserialize,
    conjure_object::private::DeriveWith
)]
#[serde(crate = "conjure_object::serde")]
#[derive_with(PartialEq, Eq, PartialOrd, Ord, Hash)]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct GetFullTagsForChannelRequest {
    #[builder(
        custom(type = super::super::super::compute::api::Dataset, convert = Box::new)
    )]
    #[serde(rename = "scope")]
    scope: Box<super::super::super::compute::api::Dataset>,
    #[builder(
        custom(type = super::super::super::compute::api::Context, convert = Box::new)
    )]
    #[serde(rename = "context")]
    context: Box<super::super::super::compute::api::Context>,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "tags",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tags: std::collections::BTreeMap<String, String>,
    #[builder(default, into)]
    #[serde(rename = "pageToken", skip_serializing_if = "Option::is_none", default)]
    page_token: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "pageSize", skip_serializing_if = "Option::is_none", default)]
    page_size: Option<i32>,
}
impl GetFullTagsForChannelRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        scope: super::super::super::compute::api::Dataset,
        context: super::super::super::compute::api::Context,
        channel: impl Into<String>,
    ) -> Self {
        Self::builder().scope(scope).context(context).channel(channel).build()
    }
    #[inline]
    pub fn scope(&self) -> &super::super::super::compute::api::Dataset {
        &*self.scope
    }
    #[inline]
    pub fn context(&self) -> &super::super::super::compute::api::Context {
        &*self.context
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tags
    }
    #[inline]
    pub fn page_token(&self) -> Option<&str> {
        self.page_token.as_ref().map(|o| &**o)
    }
    #[inline]
    pub fn page_size(&self) -> Option<i32> {
        self.page_size.as_ref().map(|o| *o)
    }
}
