Struct aws_sdk_s3::model::inventory_encryption::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InventoryEncryption
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn sses3(self, input: Sses3) -> Self
pub fn sses3(self, input: Sses3) -> Self
Specifies the use of SSE-S3 to encrypt delivered inventory reports.
sourcepub fn set_sses3(self, input: Option<Sses3>) -> Self
pub fn set_sses3(self, input: Option<Sses3>) -> Self
Specifies the use of SSE-S3 to encrypt delivered inventory reports.
Examples found in repository?
src/xml_deser.rs (line 7526)
7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543
pub fn deser_structure_crate_model_inventory_encryption(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryEncryption, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryEncryption::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SSE-S3") /* SSES3 com.amazonaws.s3#InventoryEncryption$SSES3 */ => {
let var_413 =
Some(
crate::xml_deser::deser_structure_crate_model_sses3(&mut tag)
?
)
;
builder = builder.set_sses3(var_413);
}
,
s if s.matches("SSE-KMS") /* SSEKMS com.amazonaws.s3#InventoryEncryption$SSEKMS */ => {
let var_414 =
Some(
crate::xml_deser::deser_structure_crate_model_ssekms(&mut tag)
?
)
;
builder = builder.set_ssekms(var_414);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn ssekms(self, input: Ssekms) -> Self
pub fn ssekms(self, input: Ssekms) -> Self
Specifies the use of SSE-KMS to encrypt delivered inventory reports.
sourcepub fn set_ssekms(self, input: Option<Ssekms>) -> Self
pub fn set_ssekms(self, input: Option<Ssekms>) -> Self
Specifies the use of SSE-KMS to encrypt delivered inventory reports.
Examples found in repository?
src/xml_deser.rs (line 7536)
7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543
pub fn deser_structure_crate_model_inventory_encryption(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryEncryption, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryEncryption::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SSE-S3") /* SSES3 com.amazonaws.s3#InventoryEncryption$SSES3 */ => {
let var_413 =
Some(
crate::xml_deser::deser_structure_crate_model_sses3(&mut tag)
?
)
;
builder = builder.set_sses3(var_413);
}
,
s if s.matches("SSE-KMS") /* SSEKMS com.amazonaws.s3#InventoryEncryption$SSEKMS */ => {
let var_414 =
Some(
crate::xml_deser::deser_structure_crate_model_ssekms(&mut tag)
?
)
;
builder = builder.set_ssekms(var_414);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InventoryEncryption
pub fn build(self) -> InventoryEncryption
Consumes the builder and constructs a InventoryEncryption
.
Examples found in repository?
src/xml_deser.rs (line 7542)
7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 7540 7541 7542 7543
pub fn deser_structure_crate_model_inventory_encryption(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InventoryEncryption, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InventoryEncryption::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("SSE-S3") /* SSES3 com.amazonaws.s3#InventoryEncryption$SSES3 */ => {
let var_413 =
Some(
crate::xml_deser::deser_structure_crate_model_sses3(&mut tag)
?
)
;
builder = builder.set_sses3(var_413);
}
,
s if s.matches("SSE-KMS") /* SSEKMS com.amazonaws.s3#InventoryEncryption$SSEKMS */ => {
let var_414 =
Some(
crate::xml_deser::deser_structure_crate_model_ssekms(&mut tag)
?
)
;
builder = builder.set_ssekms(var_414);
}
,
_ => {}
}
}
Ok(builder.build())
}