pub struct Builder { /* private fields */ }
Expand description
A builder for ServerSideEncryptionConfiguration
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn rules(self, input: ServerSideEncryptionRule) -> Self
pub fn rules(self, input: ServerSideEncryptionRule) -> Self
Appends an item to rules
.
To override the contents of this collection use set_rules
.
Container for information about a particular server-side encryption configuration rule.
sourcepub fn set_rules(self, input: Option<Vec<ServerSideEncryptionRule>>) -> Self
pub fn set_rules(self, input: Option<Vec<ServerSideEncryptionRule>>) -> Self
Container for information about a particular server-side encryption configuration rule.
Examples found in repository?
src/xml_deser.rs (line 4940)
4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947
pub fn deser_structure_crate_model_server_side_encryption_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServerSideEncryptionConfiguration, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::ServerSideEncryptionConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Rule") /* Rules com.amazonaws.s3#ServerSideEncryptionConfiguration$Rules */ => {
let var_278 =
Some(
Result::<std::vec::Vec<crate::model::ServerSideEncryptionRule>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_279 = builder.rules.take().unwrap_or_default();
list_279.push(
crate::xml_deser::deser_structure_crate_model_server_side_encryption_rule(&mut tag)
?
);
list_279
})
?
)
;
builder = builder.set_rules(var_278);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> ServerSideEncryptionConfiguration
pub fn build(self) -> ServerSideEncryptionConfiguration
Consumes the builder and constructs a ServerSideEncryptionConfiguration
.
Examples found in repository?
src/xml_deser.rs (line 4946)
4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947
pub fn deser_structure_crate_model_server_side_encryption_configuration(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServerSideEncryptionConfiguration, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::ServerSideEncryptionConfiguration::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Rule") /* Rules com.amazonaws.s3#ServerSideEncryptionConfiguration$Rules */ => {
let var_278 =
Some(
Result::<std::vec::Vec<crate::model::ServerSideEncryptionRule>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_279 = builder.rules.take().unwrap_or_default();
list_279.push(
crate::xml_deser::deser_structure_crate_model_server_side_encryption_rule(&mut tag)
?
);
list_279
})
?
)
;
builder = builder.set_rules(var_278);
}
,
_ => {}
}
}
Ok(builder.build())
}