#[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 ExportTimeDomainChannels {
    #[builder(custom(type = super::TimestampFormat, convert = Box::new))]
    #[serde(rename = "outputTimestampFormat")]
    output_timestamp_format: Box<super::TimestampFormat>,
    #[builder(custom(type = super::MergeTimestampStrategy, convert = Box::new))]
    #[serde(rename = "mergeTimestampStrategy")]
    merge_timestamp_strategy: Box<super::MergeTimestampStrategy>,
    #[builder(default, list(item(type = super::TimeDomainChannel)))]
    #[serde(rename = "channels", skip_serializing_if = "Vec::is_empty", default)]
    channels: Vec<super::TimeDomainChannel>,
}
impl ExportTimeDomainChannels {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(
        output_timestamp_format: super::TimestampFormat,
        merge_timestamp_strategy: super::MergeTimestampStrategy,
    ) -> Self {
        Self::builder()
            .output_timestamp_format(output_timestamp_format)
            .merge_timestamp_strategy(merge_timestamp_strategy)
            .build()
    }
    #[inline]
    pub fn output_timestamp_format(&self) -> &super::TimestampFormat {
        &*self.output_timestamp_format
    }
    #[inline]
    pub fn merge_timestamp_strategy(&self) -> &super::MergeTimestampStrategy {
        &*self.merge_timestamp_strategy
    }
    #[inline]
    pub fn channels(&self) -> &[super::TimeDomainChannel] {
        &*self.channels
    }
}
