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