Struct aws_sdk_ec2::operation::provision_ipam_pool_cidr::builders::ProvisionIpamPoolCidrInputBuilder
source · #[non_exhaustive]pub struct ProvisionIpamPoolCidrInputBuilder { /* private fields */ }Expand description
A builder for ProvisionIpamPoolCidrInput.
Implementations§
source§impl ProvisionIpamPoolCidrInputBuilder
impl ProvisionIpamPoolCidrInputBuilder
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 to which you want to assign a CIDR.
This field is required.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 to which you want to assign a CIDR.
sourcepub fn get_ipam_pool_id(&self) -> &Option<String>
pub fn get_ipam_pool_id(&self) -> &Option<String>
The ID of the IPAM pool to which you want to assign a CIDR.
sourcepub fn cidr(self, input: impl Into<String>) -> Self
pub fn cidr(self, input: impl Into<String>) -> Self
The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or "Cidr" is required. This value will be null if you specify "NetmaskLength" and will be filled in during the provisioning process.
sourcepub fn set_cidr(self, input: Option<String>) -> Self
pub fn set_cidr(self, input: Option<String>) -> Self
The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or "Cidr" is required. This value will be null if you specify "NetmaskLength" and will be filled in during the provisioning process.
sourcepub fn get_cidr(&self) -> &Option<String>
pub fn get_cidr(&self) -> &Option<String>
The CIDR you want to assign to the IPAM pool. Either "NetmaskLength" or "Cidr" is required. This value will be null if you specify "NetmaskLength" and will be filled in during the provisioning process.
A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
A signed document that proves that you are authorized to bring a specified IP address range to Amazon using BYOIP. This option applies to public pools only.
sourcepub fn netmask_length(self, input: i32) -> Self
pub fn netmask_length(self, input: i32) -> Self
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. Either "NetmaskLength" or "Cidr" is required.
sourcepub fn set_netmask_length(self, input: Option<i32>) -> Self
pub fn set_netmask_length(self, input: Option<i32>) -> Self
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. Either "NetmaskLength" or "Cidr" is required.
sourcepub fn get_netmask_length(&self) -> &Option<i32>
pub fn get_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. Either "NetmaskLength" or "Cidr" is required.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring Idempotency.
sourcepub fn build(self) -> Result<ProvisionIpamPoolCidrInput, BuildError>
pub fn build(self) -> Result<ProvisionIpamPoolCidrInput, BuildError>
Consumes the builder and constructs a ProvisionIpamPoolCidrInput.
source§impl ProvisionIpamPoolCidrInputBuilder
impl ProvisionIpamPoolCidrInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<ProvisionIpamPoolCidrOutput, SdkError<ProvisionIpamPoolCidrError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<ProvisionIpamPoolCidrOutput, SdkError<ProvisionIpamPoolCidrError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ProvisionIpamPoolCidrInputBuilder
impl Clone for ProvisionIpamPoolCidrInputBuilder
source§fn clone(&self) -> ProvisionIpamPoolCidrInputBuilder
fn clone(&self) -> ProvisionIpamPoolCidrInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ProvisionIpamPoolCidrInputBuilder
impl Default for ProvisionIpamPoolCidrInputBuilder
source§fn default() -> ProvisionIpamPoolCidrInputBuilder
fn default() -> ProvisionIpamPoolCidrInputBuilder
source§impl PartialEq for ProvisionIpamPoolCidrInputBuilder
impl PartialEq for ProvisionIpamPoolCidrInputBuilder
source§fn eq(&self, other: &ProvisionIpamPoolCidrInputBuilder) -> bool
fn eq(&self, other: &ProvisionIpamPoolCidrInputBuilder) -> bool
self and other values to be equal, and is used
by ==.