#[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 PagedLogPlot {
    #[builder(default, list(item(type = super::super::super::super::api::Timestamp)))]
    #[serde(rename = "timestamps", skip_serializing_if = "Vec::is_empty", default)]
    timestamps: Vec<super::super::super::super::api::Timestamp>,
    #[builder(default, list(item(type = super::LogValue)))]
    #[serde(rename = "values", skip_serializing_if = "Vec::is_empty", default)]
    values: Vec<super::LogValue>,
    #[builder(
        default,
        custom(
            type = impl
            Into<Option<super::PageToken>>,
            convert = |v|v.into().map(Box::new)
        )
    )]
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none", default)]
    next_page_token: Option<Box<super::PageToken>>,
}
impl PagedLogPlot {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new() -> Self {
        Self::builder().build()
    }
    #[inline]
    pub fn timestamps(&self) -> &[super::super::super::super::api::Timestamp] {
        &*self.timestamps
    }
    #[inline]
    pub fn values(&self) -> &[super::LogValue] {
        &*self.values
    }
    /// Continuation token for this paged result. Can only be returned if paging was requested.
    /// To retrieve the next page, repeat the same request with this
    /// value as `pageToken` and keep the pageSize sign unchanged. Returned only when this response
    /// contains exactly `abs(pageSize)` points; the next response may still be empty if this page ended exactly at
    /// the result-set boundary. Empty means this response was short and there are no further points in the
    /// requested direction.
    #[inline]
    pub fn next_page_token(&self) -> Option<&super::PageToken> {
        self.next_page_token.as_ref().map(|o| &**o)
    }
}
