#[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 ExportDataRequest {
    #[builder(custom(type = super::ExportFormat, convert = Box::new))]
    #[serde(rename = "format")]
    format: Box<super::ExportFormat>,
    #[builder(default, into)]
    #[serde(rename = "compression", skip_serializing_if = "Option::is_none", default)]
    compression: Option<super::CompressionFormat>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "startTime")]
    start_time: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "endTime")]
    end_time: Box<super::super::super::super::api::Timestamp>,
    #[builder(custom(type = super::ResolutionOption, convert = Box::new))]
    #[serde(rename = "resolution")]
    resolution: Box<super::ResolutionOption>,
    #[builder(custom(type = super::ExportChannels, convert = Box::new))]
    #[serde(rename = "channels")]
    channels: Box<super::ExportChannels>,
    #[builder(
        custom(type = super::super::super::compute::api::Context, convert = Box::new)
    )]
    #[serde(rename = "context")]
    context: Box<super::super::super::compute::api::Context>,
}
impl ExportDataRequest {
    #[inline]
    pub fn format(&self) -> &super::ExportFormat {
        &*self.format
    }
    #[inline]
    pub fn compression(&self) -> Option<&super::CompressionFormat> {
        self.compression.as_ref().map(|o| &*o)
    }
    #[inline]
    pub fn start_time(&self) -> &super::super::super::super::api::Timestamp {
        &*self.start_time
    }
    #[inline]
    pub fn end_time(&self) -> &super::super::super::super::api::Timestamp {
        &*self.end_time
    }
    #[inline]
    pub fn resolution(&self) -> &super::ResolutionOption {
        &*self.resolution
    }
    #[inline]
    pub fn channels(&self) -> &super::ExportChannels {
        &*self.channels
    }
    #[inline]
    pub fn context(&self) -> &super::super::super::compute::api::Context {
        &*self.context
    }
}
