#[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 Channel {
    #[serde(rename = "uuid")]
    uuid: conjure_object::Uuid,
    #[builder(into)]
    #[serde(rename = "name")]
    name: String,
    #[serde(rename = "datasetUuid")]
    dataset_uuid: conjure_object::Uuid,
}
impl Channel {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        uuid: conjure_object::Uuid,
        name: impl Into<String>,
        dataset_uuid: conjure_object::Uuid,
    ) -> Self {
        Self::builder().uuid(uuid).name(name).dataset_uuid(dataset_uuid).build()
    }
    #[inline]
    pub fn uuid(&self) -> conjure_object::Uuid {
        self.uuid
    }
    #[inline]
    pub fn name(&self) -> &str {
        &*self.name
    }
    #[inline]
    pub fn dataset_uuid(&self) -> conjure_object::Uuid {
        self.dataset_uuid
    }
}
