/// Request to create live stream segments for channel-based ingestion. Internal use only.
#[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 CreateStreamSegmentsV2Request {
    #[builder(default, list(item(type = super::CreateSegment)))]
    #[serde(rename = "requests", skip_serializing_if = "Vec::is_empty", default)]
    requests: Vec<super::CreateSegment>,
    #[serde(rename = "seriesUuid")]
    series_uuid: conjure_object::Uuid,
}
impl CreateStreamSegmentsV2Request {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(series_uuid: conjure_object::Uuid) -> Self {
        Self::builder().series_uuid(series_uuid).build()
    }
    #[inline]
    pub fn requests(&self) -> &[super::CreateSegment] {
        &*self.requests
    }
    #[inline]
    pub fn series_uuid(&self) -> conjure_object::Uuid {
        self.series_uuid
    }
}
