Struct aws_sdk_ec2::model::instance_ipv6_prefix::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceIpv6Prefix
.
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
One or more IPv6 prefixes assigned to the network interface.
sourcepub fn set_ipv6_prefix(self, input: Option<String>) -> Self
pub fn set_ipv6_prefix(self, input: Option<String>) -> Self
One or more IPv6 prefixes assigned to the network interface.
Examples found in repository?
src/xml_deser.rs (line 71083)
71066 71067 71068 71069 71070 71071 71072 71073 71074 71075 71076 71077 71078 71079 71080 71081 71082 71083 71084 71085 71086 71087 71088 71089 71090
pub fn deser_structure_crate_model_instance_ipv6_prefix(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceIpv6Prefix, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceIpv6Prefix::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipv6Prefix") /* Ipv6Prefix com.amazonaws.ec2#InstanceIpv6Prefix$Ipv6Prefix */ => {
let var_3504 =
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_3504);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InstanceIpv6Prefix
pub fn build(self) -> InstanceIpv6Prefix
Consumes the builder and constructs a InstanceIpv6Prefix
.
Examples found in repository?
src/xml_deser.rs (line 71089)
71066 71067 71068 71069 71070 71071 71072 71073 71074 71075 71076 71077 71078 71079 71080 71081 71082 71083 71084 71085 71086 71087 71088 71089 71090
pub fn deser_structure_crate_model_instance_ipv6_prefix(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceIpv6Prefix, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceIpv6Prefix::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipv6Prefix") /* Ipv6Prefix com.amazonaws.ec2#InstanceIpv6Prefix$Ipv6Prefix */ => {
let var_3504 =
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_3504);
}
,
_ => {}
}
}
Ok(builder.build())
}