#[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 GetMatchingChannelsWithTagsRequest {
    #[serde(rename = "datasetRid")]
    dataset_rid: conjure_object::ResourceIdentifier,
    #[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 = "pageSize", skip_serializing_if = "Option::is_none", default)]
    page_size: Option<i32>,
    #[builder(default, into)]
    #[serde(rename = "pageToken", skip_serializing_if = "Option::is_none", default)]
    page_token: Option<String>,
}
impl GetMatchingChannelsWithTagsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        dataset_rid: conjure_object::ResourceIdentifier,
        channel: impl Into<String>,
    ) -> Self {
        Self::builder().dataset_rid(dataset_rid).channel(channel).build()
    }
    #[inline]
    pub fn dataset_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.dataset_rid
    }
    #[inline]
    pub fn channel(&self) -> &str {
        &*self.channel
    }
    /// Tag key/value filters to apply with exact-match semantics per key. Empty map means no tag filtering.
    #[inline]
    pub fn tags(&self) -> &std::collections::BTreeMap<String, String> {
        &self.tags
    }
    /// Optional page size for paginated responses. If omitted with pageToken, defaults to 1000.
    #[inline]
    pub fn page_size(&self) -> Option<i32> {
        self.page_size.as_ref().map(|o| *o)
    }
    /// Optional opaque token for fetching the next page. Use the `nextPageToken` returned from the prior
    /// response.
    #[inline]
    pub fn page_token(&self) -> Option<&str> {
        self.page_token.as_ref().map(|o| &**o)
    }
}
