#[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 CreateChunk {
    #[serde(rename = "type")]
    type_: super::ChunkType,
    #[serde(rename = "logicalSeriesRid")]
    logical_series_rid: conjure_object::ResourceIdentifier,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "startTimestamp")]
    start_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[builder(
        custom(type = super::super::super::super::api::Timestamp, convert = Box::new)
    )]
    #[serde(rename = "endTimestamp")]
    end_timestamp: Box<super::super::super::super::api::Timestamp>,
    #[serde(rename = "count")]
    count: conjure_object::SafeLong,
    #[serde(rename = "sizeInBytes")]
    size_in_bytes: conjure_object::SafeLong,
    #[serde(rename = "resolution")]
    resolution: super::Resolution,
    #[builder(custom(type = super::Handle, convert = Box::new))]
    #[serde(rename = "handle")]
    handle: Box<super::Handle>,
}
impl CreateChunk {
    #[inline]
    pub fn type_(&self) -> &super::ChunkType {
        &self.type_
    }
    #[inline]
    pub fn logical_series_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.logical_series_rid
    }
    #[inline]
    pub fn start_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.start_timestamp
    }
    #[inline]
    pub fn end_timestamp(&self) -> &super::super::super::super::api::Timestamp {
        &*self.end_timestamp
    }
    #[inline]
    pub fn count(&self) -> conjure_object::SafeLong {
        self.count
    }
    #[inline]
    pub fn size_in_bytes(&self) -> conjure_object::SafeLong {
        self.size_in_bytes
    }
    #[inline]
    pub fn resolution(&self) -> super::Resolution {
        self.resolution
    }
    #[inline]
    pub fn handle(&self) -> &super::Handle {
        &*self.handle
    }
}
