#[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 InvalidCustomTimestampFormat {
    #[builder(into)]
    #[serde(rename = "timeFormat")]
    time_format: String,
    #[builder(into)]
    #[serde(rename = "reason")]
    reason: String,
}
impl InvalidCustomTimestampFormat {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(time_format: impl Into<String>, reason: impl Into<String>) -> Self {
        Self::builder().time_format(time_format).reason(reason).build()
    }
    #[inline]
    pub fn time_format(&self) -> &str {
        &*self.time_format
    }
    #[inline]
    pub fn reason(&self) -> &str {
        &*self.reason
    }
}
impl conjure_error::ErrorType for InvalidCustomTimestampFormat {
    #[inline]
    fn code() -> conjure_error::ErrorCode {
        conjure_error::ErrorCode::InvalidArgument
    }
    #[inline]
    fn name() -> &'static str {
        "IngestService:InvalidCustomTimestampFormat"
    }
    #[inline]
    fn safe_args() -> &'static [&'static str] {
        &["reason", "timeFormat"]
    }
}
