/// Batched form of `getLocatorDelimiters`. The map key of `requests` can be an arbitrary string
/// identifier. It will be returned in the response as part of `BatchedLocatorWithDelimiter`.
#[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 BatchGetLocatorDelimitersRequest {
    #[builder(
        default,
        map(
            key(type = String, into),
            value(type = super::BatchGetLocatorDelimitersEntry)
        )
    )]
    #[serde(
        rename = "requests",
        skip_serializing_if = "std::collections::BTreeMap::is_empty",
        default
    )]
    requests: std::collections::BTreeMap<String, super::BatchGetLocatorDelimitersEntry>,
    #[builder(custom(type = super::super::super::super::api::Range, convert = Box::new))]
    #[serde(rename = "timeRange")]
    time_range: Box<super::super::super::super::api::Range>,
}
impl BatchGetLocatorDelimitersRequest {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(time_range: super::super::super::super::api::Range) -> Self {
        Self::builder().time_range(time_range).build()
    }
    #[inline]
    pub fn requests(
        &self,
    ) -> &std::collections::BTreeMap<String, super::BatchGetLocatorDelimitersEntry> {
        &self.requests
    }
    #[inline]
    pub fn time_range(&self) -> &super::super::super::super::api::Range {
        &*self.time_range
    }
}
