Struct aws_sdk_s3::model::storage_class_analysis::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for StorageClassAnalysis
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn data_export(self, input: StorageClassAnalysisDataExport) -> Self
pub fn data_export(self, input: StorageClassAnalysisDataExport) -> Self
Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.
sourcepub fn set_data_export(
self,
input: Option<StorageClassAnalysisDataExport>
) -> Self
pub fn set_data_export(
self,
input: Option<StorageClassAnalysisDataExport>
) -> Self
Specifies how data related to the storage class analysis for an Amazon S3 bucket should be exported.
Examples found in repository?
src/xml_deser.rs (line 5929)
5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936
pub fn deser_structure_crate_model_storage_class_analysis(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageClassAnalysis, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageClassAnalysis::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DataExport") /* DataExport com.amazonaws.s3#StorageClassAnalysis$DataExport */ => {
let var_326 =
Some(
crate::xml_deser::deser_structure_crate_model_storage_class_analysis_data_export(&mut tag)
?
)
;
builder = builder.set_data_export(var_326);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> StorageClassAnalysis
pub fn build(self) -> StorageClassAnalysis
Consumes the builder and constructs a StorageClassAnalysis
.
Examples found in repository?
src/xml_deser.rs (line 5935)
5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936
pub fn deser_structure_crate_model_storage_class_analysis(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::StorageClassAnalysis, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::StorageClassAnalysis::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("DataExport") /* DataExport com.amazonaws.s3#StorageClassAnalysis$DataExport */ => {
let var_326 =
Some(
crate::xml_deser::deser_structure_crate_model_storage_class_analysis_data_export(&mut tag)
?
)
;
builder = builder.set_data_export(var_326);
}
,
_ => {}
}
}
Ok(builder.build())
}