#[non_exhaustive]pub struct ModifyIpamPoolInputBuilder { /* private fields */ }
Expand description
A builder for ModifyIpamPoolInput
.
Implementations§
source§impl ModifyIpamPoolInputBuilder
impl ModifyIpamPoolInputBuilder
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
A check for whether you have the required permissions for the action without actually making the request and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn ipam_pool_id(self, input: impl Into<String>) -> Self
pub fn ipam_pool_id(self, input: impl Into<String>) -> Self
The ID of the IPAM pool you want to modify.
sourcepub fn set_ipam_pool_id(self, input: Option<String>) -> Self
pub fn set_ipam_pool_id(self, input: Option<String>) -> Self
The ID of the IPAM pool you want to modify.
sourcepub fn get_ipam_pool_id(&self) -> &Option<String>
pub fn get_ipam_pool_id(&self) -> &Option<String>
The ID of the IPAM pool you want to modify.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the IPAM pool you want to modify.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the IPAM pool you want to modify.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the IPAM pool you want to modify.
sourcepub fn auto_import(self, input: bool) -> Self
pub fn auto_import(self, input: bool) -> Self
If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
sourcepub fn set_auto_import(self, input: Option<bool>) -> Self
pub fn set_auto_import(self, input: Option<bool>) -> Self
If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
sourcepub fn get_auto_import(&self) -> &Option<bool>
pub fn get_auto_import(&self) -> &Option<bool>
If true, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. The CIDRs that will be allocated for these resources must not already be allocated to other resources in order for the import to succeed. IPAM will import a CIDR regardless of its compliance with the pool's allocation rules, so a resource might be imported and subsequently marked as noncompliant. If IPAM discovers multiple CIDRs that overlap, IPAM will import the largest CIDR only. If IPAM discovers multiple CIDRs with matching CIDRs, IPAM will randomly import one of them only.
A locale must be set on the pool for this feature to work.
sourcepub fn allocation_min_netmask_length(self, input: i32) -> Self
pub fn allocation_min_netmask_length(self, input: i32) -> Self
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
sourcepub fn set_allocation_min_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_min_netmask_length(self, input: Option<i32>) -> Self
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
sourcepub fn get_allocation_min_netmask_length(&self) -> &Option<i32>
pub fn get_allocation_min_netmask_length(&self) -> &Option<i32>
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128. The minimum netmask length must be less than the maximum netmask length.
sourcepub fn allocation_max_netmask_length(self, input: i32) -> Self
pub fn allocation_max_netmask_length(self, input: i32) -> Self
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
sourcepub fn set_allocation_max_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_max_netmask_length(self, input: Option<i32>) -> Self
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
sourcepub fn get_allocation_max_netmask_length(&self) -> &Option<i32>
pub fn get_allocation_max_netmask_length(&self) -> &Option<i32>
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. Possible netmask lengths for IPv4 addresses are 0 - 32. Possible netmask lengths for IPv6 addresses are 0 - 128.The maximum netmask length must be greater than the minimum netmask length.
sourcepub fn allocation_default_netmask_length(self, input: i32) -> Self
pub fn allocation_default_netmask_length(self, input: i32) -> Self
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
sourcepub fn set_allocation_default_netmask_length(self, input: Option<i32>) -> Self
pub fn set_allocation_default_netmask_length(self, input: Option<i32>) -> Self
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
sourcepub fn get_allocation_default_netmask_length(&self) -> &Option<i32>
pub fn get_allocation_default_netmask_length(&self) -> &Option<i32>
The default netmask length for allocations added to this pool. If, for example, the CIDR assigned to this pool is 10.0.0.0/8 and you enter 16 here, new allocations will default to 10.0.0.0/16.
sourcepub fn clear_allocation_default_netmask_length(self, input: bool) -> Self
pub fn clear_allocation_default_netmask_length(self, input: bool) -> Self
Clear the default netmask length allocation rule for this pool.
sourcepub fn set_clear_allocation_default_netmask_length(
self,
input: Option<bool>
) -> Self
pub fn set_clear_allocation_default_netmask_length( self, input: Option<bool> ) -> Self
Clear the default netmask length allocation rule for this pool.
sourcepub fn get_clear_allocation_default_netmask_length(&self) -> &Option<bool>
pub fn get_clear_allocation_default_netmask_length(&self) -> &Option<bool>
Clear the default netmask length allocation rule for this pool.
Appends an item to add_allocation_resource_tags
.
To override the contents of this collection use set_add_allocation_resource_tags
.
Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Add tag allocation rules to a pool. For more information about allocation rules, see Create a top-level pool in the Amazon VPC IPAM User Guide.
Appends an item to remove_allocation_resource_tags
.
To override the contents of this collection use set_remove_allocation_resource_tags
.
Remove tag allocation rules from a pool.
Remove tag allocation rules from a pool.
Remove tag allocation rules from a pool.
sourcepub fn build(self) -> Result<ModifyIpamPoolInput, BuildError>
pub fn build(self) -> Result<ModifyIpamPoolInput, BuildError>
Consumes the builder and constructs a ModifyIpamPoolInput
.
source§impl ModifyIpamPoolInputBuilder
impl ModifyIpamPoolInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ModifyIpamPoolOutput, SdkError<ModifyIpamPoolError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ModifyIpamPoolOutput, SdkError<ModifyIpamPoolError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyIpamPoolInputBuilder
impl Clone for ModifyIpamPoolInputBuilder
source§fn clone(&self) -> ModifyIpamPoolInputBuilder
fn clone(&self) -> ModifyIpamPoolInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ModifyIpamPoolInputBuilder
impl Debug for ModifyIpamPoolInputBuilder
source§impl Default for ModifyIpamPoolInputBuilder
impl Default for ModifyIpamPoolInputBuilder
source§fn default() -> ModifyIpamPoolInputBuilder
fn default() -> ModifyIpamPoolInputBuilder
source§impl PartialEq<ModifyIpamPoolInputBuilder> for ModifyIpamPoolInputBuilder
impl PartialEq<ModifyIpamPoolInputBuilder> for ModifyIpamPoolInputBuilder
source§fn eq(&self, other: &ModifyIpamPoolInputBuilder) -> bool
fn eq(&self, other: &ModifyIpamPoolInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.