#[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 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 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 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 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 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.
Appends an item to resource_tags
.
To override the contents of this collection use set_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 set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
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 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<IpamDiscoveredResourceCidrBuilder> for IpamDiscoveredResourceCidrBuilder
impl PartialEq<IpamDiscoveredResourceCidrBuilder> 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 ==
.