#[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 BatchGetAvailableTagsForChannelRequest {
    #[builder(
        default,
        map(
            key(type = String, into),
            value(type = super::BatchGetAvailableTagsForChannelEntry)
        )
    )]
    #[serde(
        rename = "requests",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    requests: std::collections::BTreeMap<
        String,
        super::BatchGetAvailableTagsForChannelEntry,
    >,
    #[builder(into)]
    #[serde(rename = "channel")]
    channel: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "tagFilters",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    tag_filters: std::collections::BTreeMap<String, String>,
    #[builder(custom(type = super::super::super::super::api::Range, convert = Box::new))]
    #[serde(rename = "timeRange")]
    time_range: Box<super::super::super::super::api::Range>,
}
impl BatchGetAvailableTagsForChannelRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        channel: impl Into<String>,
        time_range: super::super::super::super::api::Range,
    ) -> Self {
        Self::builder().channel(channel).time_range(time_range).build()
    }
    #[inline]
    pub fn requests(
        &self,
    ) -> &std::collections::BTreeMap<
        String,
        super::BatchGetAvailableTagsForChannelEntry,
    > {
        &self.requests
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    #[inline]
    pub fn tag_filters(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tag_filters
    }
    #[inline]
    pub fn time_range(&self) -> &super::super::super::super::api::Range {
        &*self.time_range
    }
}
