Struct aws_sdk_s3::model::existing_object_replication::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ExistingObjectReplication
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn status(self, input: ExistingObjectReplicationStatus) -> Self
pub fn status(self, input: ExistingObjectReplicationStatus) -> Self
sourcepub fn set_status(self, input: Option<ExistingObjectReplicationStatus>) -> Self
pub fn set_status(self, input: Option<ExistingObjectReplicationStatus>) -> Self
Examples found in repository?
src/xml_deser.rs (line 7263)
7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270
pub fn deser_structure_crate_model_existing_object_replication(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ExistingObjectReplication, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ExistingObjectReplication::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#ExistingObjectReplication$Status */ => {
let var_398 =
Some(
Result::<crate::model::ExistingObjectReplicationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ExistingObjectReplicationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_398);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> ExistingObjectReplication
pub fn build(self) -> ExistingObjectReplication
Consumes the builder and constructs a ExistingObjectReplication
.
Examples found in repository?
src/xml_deser.rs (line 7269)
7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270
pub fn deser_structure_crate_model_existing_object_replication(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ExistingObjectReplication, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ExistingObjectReplication::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#ExistingObjectReplication$Status */ => {
let var_398 =
Some(
Result::<crate::model::ExistingObjectReplicationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ExistingObjectReplicationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_398);
}
,
_ => {}
}
}
Ok(builder.build())
}