#[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 ChunkAlreadyExists {
    #[serde(rename = "logicalSeriesRid")]
    logical_series_rid: conjure_object::ResourceIdentifier,
    #[builder(
        custom(
            type = super::super::super::super::super::objects::api::Timestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "startTimestamp")]
    start_timestamp: Box<super::super::super::super::super::objects::api::Timestamp>,
    #[builder(
        custom(
            type = super::super::super::super::super::objects::api::Timestamp,
            convert = Box::new
        )
    )]
    #[serde(rename = "endTimestamp")]
    end_timestamp: Box<super::super::super::super::super::objects::api::Timestamp>,
    #[serde(rename = "resolution")]
    resolution: super::super::super::super::super::objects::timeseries::seriescache::api::Resolution,
}
impl ChunkAlreadyExists {
    #[inline]
    pub fn logical_series_rid(&self) -> &conjure_object::ResourceIdentifier {
        &self.logical_series_rid
    }
    #[inline]
    pub fn start_timestamp(
        &self,
    ) -> &super::super::super::super::super::objects::api::Timestamp {
        &*self.start_timestamp
    }
    #[inline]
    pub fn end_timestamp(
        &self,
    ) -> &super::super::super::super::super::objects::api::Timestamp {
        &*self.end_timestamp
    }
    #[inline]
    pub fn resolution(
        &self,
    ) -> super::super::super::super::super::objects::timeseries::seriescache::api::Resolution {
        self.resolution
    }
}
impl conjure_error::ErrorType for ChunkAlreadyExists {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::Conflict
    }
    #[inline]
    fn name() -> &'static str {
        "SeriesCache:ChunkAlreadyExists"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["endTimestamp", "logicalSeriesRid", "resolution", "startTimestamp"]
    }
}
