#[non_exhaustive]pub struct IpamDiscoveredResourceCidrBuilder { /* private fields */ }
Expand description
A builder for IpamDiscoveredResourceCidr
.
Implementations§
source§impl IpamDiscoveredResourceCidrBuilder
impl IpamDiscoveredResourceCidrBuilder
sourcepub fn ipam_resource_discovery_id(self, input: impl Into<String>) -> Self
pub fn ipam_resource_discovery_id(self, input: impl Into<String>) -> Self
The resource discovery ID.
sourcepub fn set_ipam_resource_discovery_id(self, input: Option<String>) -> Self
pub fn set_ipam_resource_discovery_id(self, input: Option<String>) -> Self
The resource discovery ID.
sourcepub fn get_ipam_resource_discovery_id(&self) -> &Option<String>
pub fn get_ipam_resource_discovery_id(&self) -> &Option<String>
The resource discovery ID.
sourcepub fn resource_region(self, input: impl Into<String>) -> Self
pub fn resource_region(self, input: impl Into<String>) -> Self
The resource Region.
sourcepub fn set_resource_region(self, input: Option<String>) -> Self
pub fn set_resource_region(self, input: Option<String>) -> Self
The resource Region.
sourcepub fn get_resource_region(&self) -> &Option<String>
pub fn get_resource_region(&self) -> &Option<String>
The resource Region.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The resource ID.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The resource ID.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The resource ID.
sourcepub fn resource_owner_id(self, input: impl Into<String>) -> Self
pub fn resource_owner_id(self, input: impl Into<String>) -> Self
The resource owner ID.
sourcepub fn set_resource_owner_id(self, input: Option<String>) -> Self
pub fn set_resource_owner_id(self, input: Option<String>) -> Self
The resource owner ID.
sourcepub fn get_resource_owner_id(&self) -> &Option<String>
pub fn get_resource_owner_id(&self) -> &Option<String>
The resource owner ID.
sourcepub fn resource_cidr(self, input: impl Into<String>) -> Self
pub fn resource_cidr(self, input: impl Into<String>) -> Self
The resource CIDR.
sourcepub fn set_resource_cidr(self, input: Option<String>) -> Self
pub fn set_resource_cidr(self, input: Option<String>) -> Self
The resource CIDR.
sourcepub fn get_resource_cidr(&self) -> &Option<String>
pub fn get_resource_cidr(&self) -> &Option<String>
The resource CIDR.
sourcepub fn resource_type(self, input: IpamResourceType) -> Self
pub fn resource_type(self, input: IpamResourceType) -> Self
The resource type.
sourcepub fn set_resource_type(self, input: Option<IpamResourceType>) -> Self
pub fn set_resource_type(self, input: Option<IpamResourceType>) -> Self
The resource type.
sourcepub fn get_resource_type(&self) -> &Option<IpamResourceType>
pub fn get_resource_type(&self) -> &Option<IpamResourceType>
The resource type.
Appends an item to resource_tags
.
To override the contents of this collection use set_resource_tags
.
The resource tags.
The resource tags.
The resource tags.
sourcepub fn ip_usage(self, input: f64) -> Self
pub fn ip_usage(self, input: f64) -> Self
The percentage of IP address space in use. To convert the decimal to a percentage, multiply the decimal by 100. Note the following:
-
For resources that are VPCs, this is the percentage of IP address space in the VPC that's taken up by subnet CIDRs.
-
For resources that are subnets, if the subnet has an IPv4 CIDR provisioned to it, this is the percentage of IPv4 address space in the subnet that's in use. If the subnet has an IPv6 CIDR provisioned to it, the percentage of IPv6 address space in use is not represented. The percentage of IPv6 address space in use cannot currently be calculated.
-
For resources that are public IPv4 pools, this is the percentage of IP address space in the pool that's been allocated to Elastic IP addresses (EIPs).
sourcepub fn set_ip_usage(self, input: Option<f64>) -> Self
pub fn set_ip_usage(self, input: Option<f64>) -> Self
The percentage of IP address space in use. To convert the decimal to a percentage, multiply the decimal by 100. Note the following:
-
For resources that are VPCs, this is the percentage of IP address space in the VPC that's taken up by subnet CIDRs.
-
For resources that are subnets, if the subnet has an IPv4 CIDR provisioned to it, this is the percentage of IPv4 address space in the subnet that's in use. If the subnet has an IPv6 CIDR provisioned to it, the percentage of IPv6 address space in use is not represented. The percentage of IPv6 address space in use cannot currently be calculated.
-
For resources that are public IPv4 pools, this is the percentage of IP address space in the pool that's been allocated to Elastic IP addresses (EIPs).
sourcepub fn get_ip_usage(&self) -> &Option<f64>
pub fn get_ip_usage(&self) -> &Option<f64>
The percentage of IP address space in use. To convert the decimal to a percentage, multiply the decimal by 100. Note the following:
-
For resources that are VPCs, this is the percentage of IP address space in the VPC that's taken up by subnet CIDRs.
-
For resources that are subnets, if the subnet has an IPv4 CIDR provisioned to it, this is the percentage of IPv4 address space in the subnet that's in use. If the subnet has an IPv6 CIDR provisioned to it, the percentage of IPv6 address space in use is not represented. The percentage of IPv6 address space in use cannot currently be calculated.
-
For resources that are public IPv4 pools, this is the percentage of IP address space in the pool that's been allocated to Elastic IP addresses (EIPs).
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The VPC ID.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The VPC ID.
sourcepub fn sample_time(self, input: DateTime) -> Self
pub fn sample_time(self, input: DateTime) -> Self
The last successful resource discovery time.
sourcepub fn set_sample_time(self, input: Option<DateTime>) -> Self
pub fn set_sample_time(self, input: Option<DateTime>) -> Self
The last successful resource discovery time.
sourcepub fn get_sample_time(&self) -> &Option<DateTime>
pub fn get_sample_time(&self) -> &Option<DateTime>
The last successful resource discovery time.
sourcepub fn build(self) -> IpamDiscoveredResourceCidr
pub fn build(self) -> IpamDiscoveredResourceCidr
Consumes the builder and constructs a IpamDiscoveredResourceCidr
.
Trait Implementations§
source§impl Clone for IpamDiscoveredResourceCidrBuilder
impl Clone for IpamDiscoveredResourceCidrBuilder
source§fn clone(&self) -> IpamDiscoveredResourceCidrBuilder
fn clone(&self) -> IpamDiscoveredResourceCidrBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for IpamDiscoveredResourceCidrBuilder
impl Default for IpamDiscoveredResourceCidrBuilder
source§fn default() -> IpamDiscoveredResourceCidrBuilder
fn default() -> IpamDiscoveredResourceCidrBuilder
source§impl PartialEq for IpamDiscoveredResourceCidrBuilder
impl PartialEq for IpamDiscoveredResourceCidrBuilder
source§fn eq(&self, other: &IpamDiscoveredResourceCidrBuilder) -> bool
fn eq(&self, other: &IpamDiscoveredResourceCidrBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IpamDiscoveredResourceCidrBuilder
Auto Trait Implementations§
impl Freeze for IpamDiscoveredResourceCidrBuilder
impl RefUnwindSafe for IpamDiscoveredResourceCidrBuilder
impl Send for IpamDiscoveredResourceCidrBuilder
impl Sync for IpamDiscoveredResourceCidrBuilder
impl Unpin for IpamDiscoveredResourceCidrBuilder
impl UnwindSafe for IpamDiscoveredResourceCidrBuilder
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