#[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 ChannelDetails {
    #[serde(rename = "uuid")]
    uuid: conjure_object::Uuid,
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[builder(default, map(key(type = String, into), value(type = String, into)))]
    #[serde(
        rename = "originMetadata",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    origin_metadata: std::collections::BTreeMap<String, String>,
    #[serde(rename = "csvIndex")]
    csv_index: i32,
    #[serde(rename = "datasetUuid")]
    dataset_uuid: conjure_object::Uuid,
    #[builder(custom(type = super::Handle, convert = Box::new))]
    #[serde(rename = "handle")]
    handle: Box<super::Handle>,
}
impl ChannelDetails {
    #[inline]
    pub fn uuid(&self) -> conjure_object::Uuid {
        self.uuid
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn origin_metadata(&self) -> &std::collections::BTreeMap<String, String> {
        &self.origin_metadata
    }
    #[inline]
    pub fn csv_index(&self) -> i32 {
        self.csv_index
    }
    #[inline]
    pub fn dataset_uuid(&self) -> conjure_object::Uuid {
        self.dataset_uuid
    }
    #[inline]
    pub fn handle(&self) -> &super::Handle {
        &*self.handle
    }
}
