/// Request to create a dataset with a specific UUID. Used for migrations
/// where the UUID must be controlled by the caller.
#[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 CreateDatasetWithUuidRequest {
    #[serde(rename = "uuid")]
    uuid: conjure_object::Uuid,
    #[builder(custom(type = super::CreateDataset, convert = Box::new))]
    #[serde(rename = "createDataset")]
    create_dataset: Box<super::CreateDataset>,
}
impl CreateDatasetWithUuidRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        uuid: conjure_object::Uuid,
        create_dataset: super::CreateDataset,
    ) -> Self {
        Self::builder().uuid(uuid).create_dataset(create_dataset).build()
    }
    /// The UUID to assign to the new dataset.
    #[inline]
    pub fn uuid(&self) -> conjure_object::Uuid {
        self.uuid
    }
    #[inline]
    pub fn create_dataset(&self) -> &super::CreateDataset {
        &*self.create_dataset
    }
}
