Struct aws_sdk_ec2::model::PublicIpv4Pool
source · #[non_exhaustive]pub struct PublicIpv4Pool { /* private fields */ }
Expand description
Describes an IPv4 address pool.
Implementations§
source§impl PublicIpv4Pool
impl PublicIpv4Pool
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the address pool.
sourcepub fn pool_address_ranges(&self) -> Option<&[PublicIpv4PoolRange]>
pub fn pool_address_ranges(&self) -> Option<&[PublicIpv4PoolRange]>
The address ranges.
sourcepub fn total_address_count(&self) -> Option<i32>
pub fn total_address_count(&self) -> Option<i32>
The total number of addresses.
sourcepub fn total_available_address_count(&self) -> Option<i32>
pub fn total_available_address_count(&self) -> Option<i32>
The total number of available addresses.
sourcepub fn network_border_group(&self) -> Option<&str>
pub fn network_border_group(&self) -> Option<&str>
The name of the location from which the address pool is advertised. A network border group is a unique set of Availability Zones or Local Zones from where Amazon Web Services advertises public IP addresses.
Any tags for the address pool.
source§impl PublicIpv4Pool
impl PublicIpv4Pool
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PublicIpv4Pool
.
Examples found in repository?
src/xml_deser.rs (line 48156)
48152 48153 48154 48155 48156 48157 48158 48159 48160 48161 48162 48163 48164 48165 48166 48167 48168 48169 48170 48171 48172 48173 48174 48175 48176 48177 48178 48179 48180 48181 48182 48183 48184 48185 48186 48187 48188 48189 48190 48191 48192 48193 48194 48195 48196 48197 48198 48199 48200 48201 48202 48203 48204 48205 48206 48207 48208 48209 48210 48211 48212 48213 48214 48215 48216 48217 48218 48219 48220 48221 48222 48223 48224 48225 48226 48227 48228 48229 48230 48231 48232 48233 48234 48235 48236 48237 48238 48239 48240 48241 48242 48243 48244 48245 48246 48247 48248 48249 48250 48251 48252
pub fn deser_structure_crate_model_public_ipv4_pool(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::PublicIpv4Pool, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::PublicIpv4Pool::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("poolId") /* PoolId com.amazonaws.ec2#PublicIpv4Pool$PoolId */ => {
let var_2212 =
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_pool_id(var_2212);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#PublicIpv4Pool$Description */ => {
let var_2213 =
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_description(var_2213);
}
,
s if s.matches("poolAddressRangeSet") /* PoolAddressRanges com.amazonaws.ec2#PublicIpv4Pool$PoolAddressRanges */ => {
let var_2214 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_public_ipv4_pool_range_set(&mut tag)
?
)
;
builder = builder.set_pool_address_ranges(var_2214);
}
,
s if s.matches("totalAddressCount") /* TotalAddressCount com.amazonaws.ec2#PublicIpv4Pool$TotalAddressCount */ => {
let var_2215 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_total_address_count(var_2215);
}
,
s if s.matches("totalAvailableAddressCount") /* TotalAvailableAddressCount com.amazonaws.ec2#PublicIpv4Pool$TotalAvailableAddressCount */ => {
let var_2216 =
Some(
{
<i32 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (integer: `com.amazonaws.ec2#Integer`)"))
}
?
)
;
builder = builder.set_total_available_address_count(var_2216);
}
,
s if s.matches("networkBorderGroup") /* NetworkBorderGroup com.amazonaws.ec2#PublicIpv4Pool$NetworkBorderGroup */ => {
let var_2217 =
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_network_border_group(var_2217);
}
,
s if s.matches("tagSet") /* Tags com.amazonaws.ec2#PublicIpv4Pool$Tags */ => {
let var_2218 =
Some(
crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
?
)
;
builder = builder.set_tags(var_2218);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for PublicIpv4Pool
impl Clone for PublicIpv4Pool
source§fn clone(&self) -> PublicIpv4Pool
fn clone(&self) -> PublicIpv4Pool
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more