pub struct Builder { /* private fields */ }
Expand description
A builder for AbortIncompleteMultipartUpload
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn days_after_initiation(self, input: i32) -> Self
pub fn days_after_initiation(self, input: i32) -> Self
Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload.
sourcepub fn set_days_after_initiation(self, input: Option<i32>) -> Self
pub fn set_days_after_initiation(self, input: Option<i32>) -> Self
Specifies the number of days after which Amazon S3 aborts an incomplete multipart upload.
Examples found in repository?
src/xml_deser.rs (line 5656)
5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663
pub fn deser_structure_crate_model_abort_incomplete_multipart_upload(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AbortIncompleteMultipartUpload, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AbortIncompleteMultipartUpload::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DaysAfterInitiation") /* DaysAfterInitiation com.amazonaws.s3#AbortIncompleteMultipartUpload$DaysAfterInitiation */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3#DaysAfterInitiation`)"))
}
?
)
;
builder = builder.set_days_after_initiation(var_314);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> AbortIncompleteMultipartUpload
pub fn build(self) -> AbortIncompleteMultipartUpload
Consumes the builder and constructs a AbortIncompleteMultipartUpload
.
Examples found in repository?
src/xml_deser.rs (line 5662)
5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663
pub fn deser_structure_crate_model_abort_incomplete_multipart_upload(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::AbortIncompleteMultipartUpload, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::AbortIncompleteMultipartUpload::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DaysAfterInitiation") /* DaysAfterInitiation com.amazonaws.s3#AbortIncompleteMultipartUpload$DaysAfterInitiation */ => {
let var_314 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.s3#DaysAfterInitiation`)"))
}
?
)
;
builder = builder.set_days_after_initiation(var_314);
}
,
_ => {}
}
}
Ok(builder.build())
}