Struct aws_sdk_s3::model::sse_kms_encrypted_objects::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SseKmsEncryptedObjects
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn status(self, input: SseKmsEncryptedObjectsStatus) -> Self
pub fn status(self, input: SseKmsEncryptedObjectsStatus) -> Self
Specifies whether Amazon S3 replicates objects created with server-side encryption using an Amazon Web Services KMS key stored in Amazon Web Services Key Management Service.
sourcepub fn set_status(self, input: Option<SseKmsEncryptedObjectsStatus>) -> Self
pub fn set_status(self, input: Option<SseKmsEncryptedObjectsStatus>) -> Self
Specifies whether Amazon S3 replicates objects created with server-side encryption using an Amazon Web Services KMS key stored in Amazon Web Services Key Management Service.
Examples found in repository?
src/xml_deser.rs (line 7606)
7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613
pub fn deser_structure_crate_model_sse_kms_encrypted_objects(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SseKmsEncryptedObjects, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SseKmsEncryptedObjects::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#SseKmsEncryptedObjects$Status */ => {
let var_418 =
Some(
Result::<crate::model::SseKmsEncryptedObjectsStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::SseKmsEncryptedObjectsStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_418);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> SseKmsEncryptedObjects
pub fn build(self) -> SseKmsEncryptedObjects
Consumes the builder and constructs a SseKmsEncryptedObjects
.
Examples found in repository?
src/xml_deser.rs (line 7612)
7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613
pub fn deser_structure_crate_model_sse_kms_encrypted_objects(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SseKmsEncryptedObjects, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SseKmsEncryptedObjects::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#SseKmsEncryptedObjects$Status */ => {
let var_418 =
Some(
Result::<crate::model::SseKmsEncryptedObjectsStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::SseKmsEncryptedObjectsStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_418);
}
,
_ => {}
}
}
Ok(builder.build())
}