#[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 SearchAssetChannelsRequest {
    #[builder(into)]
    #[serde(rename = "searchText")]
    search_text: String,
    #[builder(default, into)]
    #[serde(
        rename = "dataScopeNameFilter",
        skip_serializing_if = "Option::is_none",
        default
    )]
    data_scope_name_filter: Option<
        std::collections::BTreeSet<super::super::super::api::DataSourceRefName>,
    >,
    #[builder(default, into)]
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none", default)]
    next_page_token: Option<String>,
    #[builder(default, into)]
    #[serde(rename = "pageSize", skip_serializing_if = "Option::is_none", default)]
    page_size: Option<i32>,
}
impl SearchAssetChannelsRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(search_text: impl Into<String>) -> Self {
        Self::builder().search_text(search_text).build()
    }
    #[inline]
    pub fn search_text(&self) -> &str {
        &*self.search_text
    }
    /// If not empty, will filter to channels from the selected data scope names.
    #[inline]
    pub fn data_scope_name_filter(
        &self,
    ) -> Option<
        &std::collections::BTreeSet<super::super::super::api::DataSourceRefName>,
    > {
        self.data_scope_name_filter.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn next_page_token(&self) -> Option<&str> {
        self.next_page_token.as_ref().map(|o| &**o)
    }
    /// Defaults to 1000. Will throw if larger than 10000. Default pageSize is 100.
    #[inline]
    pub fn page_size(&self) -> Option<i32> {
        self.page_size.as_ref().map(|o| *o)
    }
}
