Struct aws_sdk_ec2::model::instance_ipv4_prefix::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for InstanceIpv4Prefix
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ipv4_prefix(self, input: impl Into<String>) -> Self
pub fn ipv4_prefix(self, input: impl Into<String>) -> Self
One or more IPv4 prefixes assigned to the network interface.
sourcepub fn set_ipv4_prefix(self, input: Option<String>) -> Self
pub fn set_ipv4_prefix(self, input: Option<String>) -> Self
One or more IPv4 prefixes assigned to the network interface.
Examples found in repository?
src/xml_deser.rs (line 71057)
71040 71041 71042 71043 71044 71045 71046 71047 71048 71049 71050 71051 71052 71053 71054 71055 71056 71057 71058 71059 71060 71061 71062 71063 71064
pub fn deser_structure_crate_model_instance_ipv4_prefix(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceIpv4Prefix, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceIpv4Prefix::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipv4Prefix") /* Ipv4Prefix com.amazonaws.ec2#InstanceIpv4Prefix$Ipv4Prefix */ => {
let var_3503 =
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_ipv4_prefix(var_3503);
}
,
_ => {}
}
}
Ok(builder.build())
}
sourcepub fn build(self) -> InstanceIpv4Prefix
pub fn build(self) -> InstanceIpv4Prefix
Consumes the builder and constructs a InstanceIpv4Prefix
.
Examples found in repository?
src/xml_deser.rs (line 71063)
71040 71041 71042 71043 71044 71045 71046 71047 71048 71049 71050 71051 71052 71053 71054 71055 71056 71057 71058 71059 71060 71061 71062 71063 71064
pub fn deser_structure_crate_model_instance_ipv4_prefix(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::InstanceIpv4Prefix, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::InstanceIpv4Prefix::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("ipv4Prefix") /* Ipv4Prefix com.amazonaws.ec2#InstanceIpv4Prefix$Ipv4Prefix */ => {
let var_3503 =
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_ipv4_prefix(var_3503);
}
,
_ => {}
}
}
Ok(builder.build())
}