Struct aws_sdk_s3::model::inventory_destination::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InventoryDestination
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn s3_bucket_destination(self, input: InventoryS3BucketDestination) -> Self
pub fn s3_bucket_destination(self, input: InventoryS3BucketDestination) -> Self
Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.
sourcepub fn set_s3_bucket_destination(
self,
input: Option<InventoryS3BucketDestination>
) -> Self
pub fn set_s3_bucket_destination(
self,
input: Option<InventoryS3BucketDestination>
) -> Self
Contains the bucket name, file format, bucket owner (optional), and prefix (optional) where inventory results are published.
Examples found in repository?
src/xml_deser.rs (line 6040)
6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047
pub fn deser_structure_crate_model_inventory_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryDestination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryDestination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3#InventoryDestination$S3BucketDestination */ => {
let var_332 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_332);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InventoryDestination
pub fn build(self) -> InventoryDestination
Consumes the builder and constructs a InventoryDestination
.
Examples found in repository?
src/xml_deser.rs (line 6046)
6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047
pub fn deser_structure_crate_model_inventory_destination(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryDestination, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryDestination::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("S3BucketDestination") /* S3BucketDestination com.amazonaws.s3#InventoryDestination$S3BucketDestination */ => {
let var_332 =
Some(
crate::xml_deser::deser_structure_crate_model_inventory_s3_bucket_destination(&mut tag)
?
)
;
builder = builder.set_s3_bucket_destination(var_332);
}
,
_ => {}
}
}
Ok(builder.build())
}