#[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 BatchGetAvailableTagKeysRequest {
    #[builder(
        default,
        map(key(type = String, into), value(type = super::BatchGetAvailableTagKeysEntry))
    )]
    #[serde(
        rename = "requests",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    requests: std::collections::BTreeMap<String, super::BatchGetAvailableTagKeysEntry>,
    #[builder(custom(type = super::TagSearchFilters, convert = Box::new))]
    #[serde(rename = "filters")]
    filters: Box<super::TagSearchFilters>,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "pageTokens",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    page_tokens: std::collections::BTreeMap<String, String>,
    #[builder(default, into)]
    #[serde(rename = "pageSize", skip_serializing_if = "Option::is_none", default)]
    page_size: Option<i32>,
}
impl BatchGetAvailableTagKeysRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(filters: super::TagSearchFilters) -> Self {
        Self::builder().filters(filters).build()
    }
    #[inline]
    pub fn requests(
        &self,
    ) -> &std::collections::BTreeMap<String, super::BatchGetAvailableTagKeysEntry> {
        &self.requests
    }
    #[inline]
    pub fn filters(&self) -> &super::TagSearchFilters {
        &*self.filters
    }
    /// Page token per request id. Absent ids start from the first page.
    #[inline]
    pub fn page_tokens(&self) -> &std::collections::BTreeMap<String, String> {
        &self.page_tokens
    }
    #[inline]
    pub fn page_size(&self) -> Option<i32> {
        self.page_size.as_ref().map(|o| *o)
    }
}
