/// Locator for files in an object store.
/// Clients are expected to have auth and origin/region configured independently.
#[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 ObjectLocator {
    #[builder(into)]
    #[serde(rename = "bucket")]
    bucket: String,
    #[builder(into)]
    #[serde(rename = "objectName")]
    object_name: String,
}
impl ObjectLocator {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(bucket: impl Into<String>, object_name: impl Into<String>) -> Self {
        Self::builder().bucket(bucket).object_name(object_name).build()
    }
    #[inline]
    pub fn bucket(&self) -> &str {
        &*self.bucket
    }
    #[inline]
    pub fn object_name(&self) -> &str {
        &*self.object_name
    }
}
