Struct aws_sdk_ec2::model::IpamPoolAllocation
source · #[non_exhaustive]pub struct IpamPoolAllocation { /* private fields */ }
Expand description
In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool.
Implementations§
source§impl IpamPoolAllocation
impl IpamPoolAllocation
sourcepub fn cidr(&self) -> Option<&str>
pub fn cidr(&self) -> Option<&str>
The CIDR for the allocation. A CIDR is a representation of an IP address and its associated network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is 10.24.34.0/23
. An IPv6 CIDR example is 2001:DB8::/32
.
sourcepub fn ipam_pool_allocation_id(&self) -> Option<&str>
pub fn ipam_pool_allocation_id(&self) -> Option<&str>
The ID of an allocation.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the pool allocation.
sourcepub fn resource_id(&self) -> Option<&str>
pub fn resource_id(&self) -> Option<&str>
The ID of the resource.
sourcepub fn resource_type(&self) -> Option<&IpamPoolAllocationResourceType>
pub fn resource_type(&self) -> Option<&IpamPoolAllocationResourceType>
The type of the resource.
sourcepub fn resource_region(&self) -> Option<&str>
pub fn resource_region(&self) -> Option<&str>
The Amazon Web Services Region of the resource.
sourcepub fn resource_owner(&self) -> Option<&str>
pub fn resource_owner(&self) -> Option<&str>
The owner of the resource.
source§impl IpamPoolAllocation
impl IpamPoolAllocation
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture IpamPoolAllocation
.
Examples found in repository?
src/xml_deser.rs (line 24357)
24353 24354 24355 24356 24357 24358 24359 24360 24361 24362 24363 24364 24365 24366 24367 24368 24369 24370 24371 24372 24373 24374 24375 24376 24377 24378 24379 24380 24381 24382 24383 24384 24385 24386 24387 24388 24389 24390 24391 24392 24393 24394 24395 24396 24397 24398 24399 24400 24401 24402 24403 24404 24405 24406 24407 24408 24409 24410 24411 24412 24413 24414 24415 24416 24417 24418 24419 24420 24421 24422 24423 24424 24425 24426 24427 24428 24429 24430 24431 24432 24433 24434 24435 24436 24437 24438 24439 24440 24441 24442 24443 24444 24445 24446 24447 24448 24449 24450 24451 24452 24453 24454 24455 24456
pub fn deser_structure_crate_model_ipam_pool_allocation(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::IpamPoolAllocation, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::IpamPoolAllocation::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("cidr") /* Cidr com.amazonaws.ec2#IpamPoolAllocation$Cidr */ => {
let var_929 =
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_cidr(var_929);
}
,
s if s.matches("ipamPoolAllocationId") /* IpamPoolAllocationId com.amazonaws.ec2#IpamPoolAllocation$IpamPoolAllocationId */ => {
let var_930 =
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_ipam_pool_allocation_id(var_930);
}
,
s if s.matches("description") /* Description com.amazonaws.ec2#IpamPoolAllocation$Description */ => {
let var_931 =
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_931);
}
,
s if s.matches("resourceId") /* ResourceId com.amazonaws.ec2#IpamPoolAllocation$ResourceId */ => {
let var_932 =
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_resource_id(var_932);
}
,
s if s.matches("resourceType") /* ResourceType com.amazonaws.ec2#IpamPoolAllocation$ResourceType */ => {
let var_933 =
Some(
Result::<crate::model::IpamPoolAllocationResourceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::IpamPoolAllocationResourceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_resource_type(var_933);
}
,
s if s.matches("resourceRegion") /* ResourceRegion com.amazonaws.ec2#IpamPoolAllocation$ResourceRegion */ => {
let var_934 =
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_resource_region(var_934);
}
,
s if s.matches("resourceOwner") /* ResourceOwner com.amazonaws.ec2#IpamPoolAllocation$ResourceOwner */ => {
let var_935 =
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_resource_owner(var_935);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for IpamPoolAllocation
impl Clone for IpamPoolAllocation
source§fn clone(&self) -> IpamPoolAllocation
fn clone(&self) -> IpamPoolAllocation
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