Struct aws_sdk_ec2::operation::provision_public_ipv4_pool_cidr::builders::ProvisionPublicIpv4PoolCidrInputBuilder
source · #[non_exhaustive]pub struct ProvisionPublicIpv4PoolCidrInputBuilder { /* private fields */ }Expand description
A builder for ProvisionPublicIpv4PoolCidrInput.
Implementations§
source§impl ProvisionPublicIpv4PoolCidrInputBuilder
impl ProvisionPublicIpv4PoolCidrInputBuilder
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 would like to use to allocate this 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 you would like to use to allocate this 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 you would like to use to allocate this CIDR.
sourcepub fn pool_id(self, input: impl Into<String>) -> Self
pub fn pool_id(self, input: impl Into<String>) -> Self
The ID of the public IPv4 pool you would like to use for this CIDR.
This field is required.sourcepub fn set_pool_id(self, input: Option<String>) -> Self
pub fn set_pool_id(self, input: Option<String>) -> Self
The ID of the public IPv4 pool you would like to use for this CIDR.
sourcepub fn get_pool_id(&self) -> &Option<String>
pub fn get_pool_id(&self) -> &Option<String>
The ID of the public IPv4 pool you would like to use for this CIDR.
sourcepub fn netmask_length(self, input: i32) -> Self
pub fn netmask_length(self, input: i32) -> Self
The netmask length of the CIDR you would like to allocate to the public IPv4 pool. The least specific netmask length you can define is 24.
This field 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 would like to allocate to the public IPv4 pool. The least specific netmask length you can define is 24.
sourcepub fn get_netmask_length(&self) -> &Option<i32>
pub fn get_netmask_length(&self) -> &Option<i32>
The netmask length of the CIDR you would like to allocate to the public IPv4 pool. The least specific netmask length you can define is 24.
sourcepub fn network_border_group(self, input: impl Into<String>) -> Self
pub fn network_border_group(self, input: impl Into<String>) -> Self
The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. Defaults to an AZ network border group. For more information on available Local Zones, see Local Zone availability in the Amazon EC2 User Guide.
sourcepub fn set_network_border_group(self, input: Option<String>) -> Self
pub fn set_network_border_group(self, input: Option<String>) -> Self
The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. Defaults to an AZ network border group. For more information on available Local Zones, see Local Zone availability in the Amazon EC2 User Guide.
sourcepub fn get_network_border_group(&self) -> &Option<String>
pub fn get_network_border_group(&self) -> &Option<String>
The Availability Zone (AZ) or Local Zone (LZ) network border group that the resource that the IP address is assigned to is in. Defaults to an AZ network border group. For more information on available Local Zones, see Local Zone availability in the Amazon EC2 User Guide.
sourcepub fn build(self) -> Result<ProvisionPublicIpv4PoolCidrInput, BuildError>
pub fn build(self) -> Result<ProvisionPublicIpv4PoolCidrInput, BuildError>
Consumes the builder and constructs a ProvisionPublicIpv4PoolCidrInput.
source§impl ProvisionPublicIpv4PoolCidrInputBuilder
impl ProvisionPublicIpv4PoolCidrInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ProvisionPublicIpv4PoolCidrOutput, SdkError<ProvisionPublicIpv4PoolCidrError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ProvisionPublicIpv4PoolCidrOutput, SdkError<ProvisionPublicIpv4PoolCidrError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ProvisionPublicIpv4PoolCidrInputBuilder
impl Clone for ProvisionPublicIpv4PoolCidrInputBuilder
source§fn clone(&self) -> ProvisionPublicIpv4PoolCidrInputBuilder
fn clone(&self) -> ProvisionPublicIpv4PoolCidrInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for ProvisionPublicIpv4PoolCidrInputBuilder
impl Default for ProvisionPublicIpv4PoolCidrInputBuilder
source§fn default() -> ProvisionPublicIpv4PoolCidrInputBuilder
fn default() -> ProvisionPublicIpv4PoolCidrInputBuilder
source§impl PartialEq for ProvisionPublicIpv4PoolCidrInputBuilder
impl PartialEq for ProvisionPublicIpv4PoolCidrInputBuilder
source§fn eq(&self, other: &ProvisionPublicIpv4PoolCidrInputBuilder) -> bool
fn eq(&self, other: &ProvisionPublicIpv4PoolCidrInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ProvisionPublicIpv4PoolCidrInputBuilder
Auto Trait Implementations§
impl Freeze for ProvisionPublicIpv4PoolCidrInputBuilder
impl RefUnwindSafe for ProvisionPublicIpv4PoolCidrInputBuilder
impl Send for ProvisionPublicIpv4PoolCidrInputBuilder
impl Sync for ProvisionPublicIpv4PoolCidrInputBuilder
impl Unpin for ProvisionPublicIpv4PoolCidrInputBuilder
impl UnwindSafe for ProvisionPublicIpv4PoolCidrInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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