Struct aws_sdk_s3control::model::ssekms_encryption::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for SsekmsEncryption
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn key_id(self, input: impl Into<String>) -> Self
pub fn key_id(self, input: impl Into<String>) -> Self
Specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key to use for encrypting generated manifest objects.
sourcepub fn set_key_id(self, input: Option<String>) -> Self
pub fn set_key_id(self, input: Option<String>) -> Self
Specifies the ID of the Amazon Web Services Key Management Service (Amazon Web Services KMS) symmetric encryption customer managed key to use for encrypting generated manifest objects.
Examples found in repository?
src/xml_deser.rs (line 6949)
6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956
pub fn deser_structure_crate_model_ssekms_encryption(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SsekmsEncryption, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SsekmsEncryption::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("KeyId") /* KeyId com.amazonaws.s3control#SSEKMSEncryption$KeyId */ => {
let var_323 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_key_id(var_323);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> SsekmsEncryption
pub fn build(self) -> SsekmsEncryption
Consumes the builder and constructs a SsekmsEncryption
.
Examples found in repository?
src/xml_deser.rs (line 6955)
6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956
pub fn deser_structure_crate_model_ssekms_encryption(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SsekmsEncryption, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SsekmsEncryption::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("KeyId") /* KeyId com.amazonaws.s3control#SSEKMSEncryption$KeyId */ => {
let var_323 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_key_id(var_323);
}
,
_ => {}
}
}
Ok(builder.build())
}