#[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 S3Handle {
    #[builder(into)]
    #[serde(rename = "bucket")]
    bucket: String,
    #[builder(into)]
    #[serde(rename = "key")]
    key: String,
}
impl S3Handle {
    /// Constructs a new instance of the type.
    #[inline]
    pub fn new(bucket: impl Into<String>, key: impl Into<String>) -> Self {
        Self::builder().bucket(bucket).key(key).build()
    }
    #[inline]
    pub fn bucket(&self) -> &str {
        &*self.bucket
    }
    #[inline]
    pub fn key(&self) -> &str {
        &*self.key
    }
}
