/// Dataset metadata request.
#[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 GetDatasetMetadataRequest {
    #[builder(
        custom(type = super::super::super::compute::api::Dataset, convert = Box::new)
    )]
    #[serde(rename = "dataset")]
    dataset: Box<super::super::super::compute::api::Dataset>,
    #[builder(
        custom(type = super::super::super::compute::api::Context, convert = Box::new)
    )]
    #[serde(rename = "context")]
    context: Box<super::super::super::compute::api::Context>,
}
impl GetDatasetMetadataRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        dataset: super::super::super::compute::api::Dataset,
        context: super::super::super::compute::api::Context,
    ) -> Self {
        Self::builder().dataset(dataset).context(context).build()
    }
    #[inline]
    pub fn dataset(&self) -> &super::super::super::compute::api::Dataset {
        &*self.dataset
    }
    #[inline]
    pub fn context(&self) -> &super::super::super::compute::api::Context {
        &*self.context
    }
}
