Struct aws_sdk_cloudfront::model::key_group_summary::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for KeyGroupSummary
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_key_group(self, input: Option<KeyGroup>) -> Self
pub fn set_key_group(self, input: Option<KeyGroup>) -> Self
A key group.
Examples found in repository?
src/xml_deser.rs (line 13272)
13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279
pub fn deser_structure_crate_model_key_group_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::KeyGroupSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::KeyGroupSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("KeyGroup") /* KeyGroup com.amazonaws.cloudfront#KeyGroupSummary$KeyGroup */ => {
let var_546 =
Some(
crate::xml_deser::deser_structure_crate_model_key_group(&mut tag)
?
)
;
builder = builder.set_key_group(var_546);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> KeyGroupSummary
pub fn build(self) -> KeyGroupSummary
Consumes the builder and constructs a KeyGroupSummary
.
Examples found in repository?
src/xml_deser.rs (line 13278)
13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279
pub fn deser_structure_crate_model_key_group_summary(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::KeyGroupSummary, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::KeyGroupSummary::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("KeyGroup") /* KeyGroup com.amazonaws.cloudfront#KeyGroupSummary$KeyGroup */ => {
let var_546 =
Some(
crate::xml_deser::deser_structure_crate_model_key_group(&mut tag)
?
)
;
builder = builder.set_key_group(var_546);
}
,
_ => {}
}
}
Ok(builder.build())
}