#[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 CreateDerivedDefinition {
    #[builder(custom(type = super::super::compute::api::Dataset, convert = Box::new))]
    #[serde(rename = "spec")]
    spec: Box<super::super::compute::api::Dataset>,
    #[builder(into)]
    #[serde(rename = "message")]
    message: String,
}
impl CreateDerivedDefinition {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        spec: super::super::compute::api::Dataset,
        message: impl Into<String>,
    ) -> Self {
        Self::builder().spec(spec).message(message).build()
    }
    /// Initial derived dataset logic.
    #[inline]
    pub fn spec(&self) -> &super::super::compute::api::Dataset {
        &*self.spec
    }
    /// Initial commit message for the derived definition's main branch.
    #[inline]
    pub fn message(&self) -> &str {
        &*self.message
    }
}
