Struct aws_sdk_ec2::types::IpamPoolCidr
source · #[non_exhaustive]pub struct IpamPoolCidr {
pub cidr: Option<String>,
pub state: Option<IpamPoolCidrState>,
pub failure_reason: Option<IpamPoolCidrFailureReason>,
pub ipam_pool_cidr_id: Option<String>,
pub netmask_length: Option<i32>,
}
Expand description
A CIDR provisioned to an IPAM pool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.cidr: Option<String>
The CIDR provisioned to the IPAM pool. 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
.
state: Option<IpamPoolCidrState>
The state of the CIDR.
failure_reason: Option<IpamPoolCidrFailureReason>
Details related to why an IPAM pool CIDR failed to be provisioned.
ipam_pool_cidr_id: Option<String>
The IPAM pool CIDR ID.
netmask_length: Option<i32>
The netmask length of the CIDR you'd like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
Implementations§
source§impl IpamPoolCidr
impl IpamPoolCidr
sourcepub fn cidr(&self) -> Option<&str>
pub fn cidr(&self) -> Option<&str>
The CIDR provisioned to the IPAM pool. 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 state(&self) -> Option<&IpamPoolCidrState>
pub fn state(&self) -> Option<&IpamPoolCidrState>
The state of the CIDR.
sourcepub fn failure_reason(&self) -> Option<&IpamPoolCidrFailureReason>
pub fn failure_reason(&self) -> Option<&IpamPoolCidrFailureReason>
Details related to why an IPAM pool CIDR failed to be provisioned.
sourcepub fn ipam_pool_cidr_id(&self) -> Option<&str>
pub fn ipam_pool_cidr_id(&self) -> Option<&str>
The IPAM pool CIDR ID.
sourcepub fn netmask_length(&self) -> Option<i32>
pub fn netmask_length(&self) -> Option<i32>
The netmask length of the CIDR you'd like to provision to a pool. Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.
source§impl IpamPoolCidr
impl IpamPoolCidr
sourcepub fn builder() -> IpamPoolCidrBuilder
pub fn builder() -> IpamPoolCidrBuilder
Creates a new builder-style object to manufacture IpamPoolCidr
.
Trait Implementations§
source§impl Clone for IpamPoolCidr
impl Clone for IpamPoolCidr
source§fn clone(&self) -> IpamPoolCidr
fn clone(&self) -> IpamPoolCidr
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpamPoolCidr
impl Debug for IpamPoolCidr
source§impl PartialEq for IpamPoolCidr
impl PartialEq for IpamPoolCidr
source§fn eq(&self, other: &IpamPoolCidr) -> bool
fn eq(&self, other: &IpamPoolCidr) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpamPoolCidr
Auto Trait Implementations§
impl Freeze for IpamPoolCidr
impl RefUnwindSafe for IpamPoolCidr
impl Send for IpamPoolCidr
impl Sync for IpamPoolCidr
impl Unpin for IpamPoolCidr
impl UnwindSafe for IpamPoolCidr
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more