Struct aws_sdk_ec2::types::builders::IpamResourceCidrBuilder
source · #[non_exhaustive]pub struct IpamResourceCidrBuilder { /* private fields */ }
Expand description
A builder for IpamResourceCidr
.
Implementations§
source§impl IpamResourceCidrBuilder
impl IpamResourceCidrBuilder
sourcepub fn set_ipam_id(self, input: Option<String>) -> Self
pub fn set_ipam_id(self, input: Option<String>) -> Self
The IPAM ID for an IPAM resource.
sourcepub fn get_ipam_id(&self) -> &Option<String>
pub fn get_ipam_id(&self) -> &Option<String>
The IPAM ID for an IPAM resource.
sourcepub fn ipam_scope_id(self, input: impl Into<String>) -> Self
pub fn ipam_scope_id(self, input: impl Into<String>) -> Self
The scope ID for an IPAM resource.
sourcepub fn set_ipam_scope_id(self, input: Option<String>) -> Self
pub fn set_ipam_scope_id(self, input: Option<String>) -> Self
The scope ID for an IPAM resource.
sourcepub fn get_ipam_scope_id(&self) -> &Option<String>
pub fn get_ipam_scope_id(&self) -> &Option<String>
The scope ID for an IPAM resource.
sourcepub fn ipam_pool_id(self, input: impl Into<String>) -> Self
pub fn ipam_pool_id(self, input: impl Into<String>) -> Self
The pool ID for an IPAM resource.
sourcepub fn set_ipam_pool_id(self, input: Option<String>) -> Self
pub fn set_ipam_pool_id(self, input: Option<String>) -> Self
The pool ID for an IPAM resource.
sourcepub fn get_ipam_pool_id(&self) -> &Option<String>
pub fn get_ipam_pool_id(&self) -> &Option<String>
The pool ID for an IPAM resource.
sourcepub fn resource_region(self, input: impl Into<String>) -> Self
pub fn resource_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region for an IPAM resource.
sourcepub fn set_resource_region(self, input: Option<String>) -> Self
pub fn set_resource_region(self, input: Option<String>) -> Self
The Amazon Web Services Region for an IPAM resource.
sourcepub fn get_resource_region(&self) -> &Option<String>
pub fn get_resource_region(&self) -> &Option<String>
The Amazon Web Services Region for an IPAM resource.
sourcepub fn resource_owner_id(self, input: impl Into<String>) -> Self
pub fn resource_owner_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account number of the owner of an IPAM resource.
sourcepub fn set_resource_owner_id(self, input: Option<String>) -> Self
pub fn set_resource_owner_id(self, input: Option<String>) -> Self
The Amazon Web Services account number of the owner of an IPAM resource.
sourcepub fn get_resource_owner_id(&self) -> &Option<String>
pub fn get_resource_owner_id(&self) -> &Option<String>
The Amazon Web Services account number of the owner of an IPAM resource.
sourcepub fn resource_id(self, input: impl Into<String>) -> Self
pub fn resource_id(self, input: impl Into<String>) -> Self
The ID of an IPAM resource.
sourcepub fn set_resource_id(self, input: Option<String>) -> Self
pub fn set_resource_id(self, input: Option<String>) -> Self
The ID of an IPAM resource.
sourcepub fn get_resource_id(&self) -> &Option<String>
pub fn get_resource_id(&self) -> &Option<String>
The ID of an IPAM resource.
sourcepub fn resource_name(self, input: impl Into<String>) -> Self
pub fn resource_name(self, input: impl Into<String>) -> Self
The name of an IPAM resource.
sourcepub fn set_resource_name(self, input: Option<String>) -> Self
pub fn set_resource_name(self, input: Option<String>) -> Self
The name of an IPAM resource.
sourcepub fn get_resource_name(&self) -> &Option<String>
pub fn get_resource_name(&self) -> &Option<String>
The name of an IPAM resource.
sourcepub fn resource_cidr(self, input: impl Into<String>) -> Self
pub fn resource_cidr(self, input: impl Into<String>) -> Self
The CIDR for an IPAM resource.
sourcepub fn set_resource_cidr(self, input: Option<String>) -> Self
pub fn set_resource_cidr(self, input: Option<String>) -> Self
The CIDR for an IPAM resource.
sourcepub fn get_resource_cidr(&self) -> &Option<String>
pub fn get_resource_cidr(&self) -> &Option<String>
The CIDR for an IPAM resource.
sourcepub fn resource_type(self, input: IpamResourceType) -> Self
pub fn resource_type(self, input: IpamResourceType) -> Self
The type of IPAM resource.
sourcepub fn set_resource_type(self, input: Option<IpamResourceType>) -> Self
pub fn set_resource_type(self, input: Option<IpamResourceType>) -> Self
The type of IPAM resource.
sourcepub fn get_resource_type(&self) -> &Option<IpamResourceType>
pub fn get_resource_type(&self) -> &Option<IpamResourceType>
The type of IPAM resource.
Appends an item to resource_tags
.
To override the contents of this collection use set_resource_tags
.
The tags for an IPAM resource.
The tags for an IPAM resource.
The tags for an IPAM resource.
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 compliance_status(self, input: IpamComplianceStatus) -> Self
pub fn compliance_status(self, input: IpamComplianceStatus) -> Self
The compliance status of the IPAM resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn set_compliance_status(self, input: Option<IpamComplianceStatus>) -> Self
pub fn set_compliance_status(self, input: Option<IpamComplianceStatus>) -> Self
The compliance status of the IPAM resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn get_compliance_status(&self) -> &Option<IpamComplianceStatus>
pub fn get_compliance_status(&self) -> &Option<IpamComplianceStatus>
The compliance status of the IPAM resource. For more information on compliance statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn management_state(self, input: IpamManagementState) -> Self
pub fn management_state(self, input: IpamManagementState) -> Self
The management state of the resource. For more information about management states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn set_management_state(self, input: Option<IpamManagementState>) -> Self
pub fn set_management_state(self, input: Option<IpamManagementState>) -> Self
The management state of the resource. For more information about management states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn get_management_state(&self) -> &Option<IpamManagementState>
pub fn get_management_state(&self) -> &Option<IpamManagementState>
The management state of the resource. For more information about management states, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn overlap_status(self, input: IpamOverlapStatus) -> Self
pub fn overlap_status(self, input: IpamOverlapStatus) -> Self
The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn set_overlap_status(self, input: Option<IpamOverlapStatus>) -> Self
pub fn set_overlap_status(self, input: Option<IpamOverlapStatus>) -> Self
The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn get_overlap_status(&self) -> &Option<IpamOverlapStatus>
pub fn get_overlap_status(&self) -> &Option<IpamOverlapStatus>
The overlap status of an IPAM resource. The overlap status tells you if the CIDR for a resource overlaps with another CIDR in the scope. For more information on overlap statuses, see Monitor CIDR usage by resource in the Amazon VPC IPAM User Guide.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The ID of a VPC.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The ID of a VPC.
sourcepub fn build(self) -> IpamResourceCidr
pub fn build(self) -> IpamResourceCidr
Consumes the builder and constructs a IpamResourceCidr
.
Trait Implementations§
source§impl Clone for IpamResourceCidrBuilder
impl Clone for IpamResourceCidrBuilder
source§fn clone(&self) -> IpamResourceCidrBuilder
fn clone(&self) -> IpamResourceCidrBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IpamResourceCidrBuilder
impl Debug for IpamResourceCidrBuilder
source§impl Default for IpamResourceCidrBuilder
impl Default for IpamResourceCidrBuilder
source§fn default() -> IpamResourceCidrBuilder
fn default() -> IpamResourceCidrBuilder
source§impl PartialEq<IpamResourceCidrBuilder> for IpamResourceCidrBuilder
impl PartialEq<IpamResourceCidrBuilder> for IpamResourceCidrBuilder
source§fn eq(&self, other: &IpamResourceCidrBuilder) -> bool
fn eq(&self, other: &IpamResourceCidrBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.