/// If the tree for a data source has not been indexed, it will be omitted from the map.
#[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 BatchGetChannelPrefixTreeResponse {
    #[builder(
        default,
        map(
            key(type = conjure_object::ResourceIdentifier),
            value(type = super::ChannelPrefixTree)
        )
    )]
    #[serde(
        rename = "channelPrefixTrees",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    channel_prefix_trees: std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::ChannelPrefixTree,
    >,
}
impl BatchGetChannelPrefixTreeResponse {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn channel_prefix_trees(
        &self,
    ) -> &std::collections::BTreeMap<
        conjure_object::ResourceIdentifier,
        super::ChannelPrefixTree,
    > {
        &self.channel_prefix_trees
    }
}
