/// A `Locator` annotated with the set of request ids whose batched-request scope expanded
/// to it.
#[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 BatchedLocator {
    #[builder(custom(type = super::Locator, convert = Box::new))]
    #[serde(rename = "locator")]
    locator: Box<super::Locator>,
    #[builder(default, set(item(type = String, into)))]
    #[serde(
        rename = "requestIds",
        skip_serializing_if = "std::collections::BTreeSet::is_empty",
        default
    )]
    request_ids: std::collections::BTreeSet<String>,
}
impl BatchedLocator {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(locator: super::Locator) -> Self {
        Self::builder().locator(locator).build()
    }
    #[inline]
    pub fn locator(&self) -> &super::Locator {
        &*self.locator
    }
    #[inline]
    pub fn request_ids(&self) -> &std::collections::BTreeSet<String> {
        &self.request_ids
    }
}
