pub struct Builder { /* private fields */ }
Expand description
A builder for Ipv6PrefixSpecificationRequest
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ipv6_prefix(self, input: impl Into<String>) -> Self
pub fn ipv6_prefix(self, input: impl Into<String>) -> Self
The IPv6 prefix.
sourcepub fn set_ipv6_prefix(self, input: Option<String>) -> Self
pub fn set_ipv6_prefix(self, input: Option<String>) -> Self
The IPv6 prefix.
Examples found in repository?
src/xml_deser.rs (line 71330)
71313 71314 71315 71316 71317 71318 71319 71320 71321 71322 71323 71324 71325 71326 71327 71328 71329 71330 71331 71332 71333 71334 71335 71336 71337
pub fn deser_structure_crate_model_ipv6_prefix_specification_request(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipv6PrefixSpecificationRequest, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipv6PrefixSpecificationRequest::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Ipv6Prefix") /* Ipv6Prefix com.amazonaws.ec2#Ipv6PrefixSpecificationRequest$Ipv6Prefix */ => {
let var_3517 =
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_ipv6_prefix(var_3517);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> Ipv6PrefixSpecificationRequest
pub fn build(self) -> Ipv6PrefixSpecificationRequest
Consumes the builder and constructs a Ipv6PrefixSpecificationRequest
.
Examples found in repository?
src/xml_deser.rs (line 71336)
71313 71314 71315 71316 71317 71318 71319 71320 71321 71322 71323 71324 71325 71326 71327 71328 71329 71330 71331 71332 71333 71334 71335 71336 71337
pub fn deser_structure_crate_model_ipv6_prefix_specification_request(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::Ipv6PrefixSpecificationRequest, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::Ipv6PrefixSpecificationRequest::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Ipv6Prefix") /* Ipv6Prefix com.amazonaws.ec2#Ipv6PrefixSpecificationRequest$Ipv6Prefix */ => {
let var_3517 =
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_ipv6_prefix(var_3517);
}
,
_ => {}
}
}
Ok(builder.build())
}