/// Lazy one-level expansion of the dataset's channel namespace under `parent`.
/// For the root, pass an empty list.
#[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 ListChannelChildrenRequest {
    #[builder(
        custom(type = super::super::super::compute::api::Dataset, convert = Box::new)
    )]
    #[serde(rename = "scope")]
    scope: Box<super::super::super::compute::api::Dataset>,
    #[builder(default, list(item(type = String, into)))]
    #[serde(rename = "parent", skip_serializing_if = "Vec::is_empty", default)]
    parent: Vec<String>,
    #[builder(
        custom(type = super::super::super::compute::api::Context, convert = Box::new)
    )]
    #[serde(rename = "context")]
    context: Box<super::super::super::compute::api::Context>,
    #[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 ListChannelChildrenRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        scope: super::super::super::compute::api::Dataset,
        context: super::super::super::compute::api::Context,
        time_range: super::super::super::super::api::Range,
    ) -> Self {
        Self::builder().scope(scope).context(context).time_range(time_range).build()
    }
    #[inline]
    pub fn scope(&self) -> &super::super::super::compute::api::Dataset {
        &*self.scope
    }
    /// Ancestor parts. Empty means top-level.
    #[inline]
    pub fn parent(&self) -> &[String] {
        &*self.parent
    }
    #[inline]
    pub fn context(&self) -> &super::super::super::compute::api::Context {
        &*self.context
    }
    /// Time filter applied to the search. Only channels with data within this time range will be returned.
    /// A shorter time range will improve performance!
    #[inline]
    pub fn time_range(&self) -> &super::super::super::super::api::Range {
        &*self.time_range
    }
}
