Struct aws_sdk_ec2::operation::create_default_subnet::builders::CreateDefaultSubnetInputBuilder
source · #[non_exhaustive]pub struct CreateDefaultSubnetInputBuilder { /* private fields */ }
Expand description
A builder for CreateDefaultSubnetInput
.
Implementations§
source§impl CreateDefaultSubnetInputBuilder
impl CreateDefaultSubnetInputBuilder
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone in which to create the default subnet.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone in which to create the default subnet.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone in which to create the default subnet.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
Checks 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
Checks 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>
Checks 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 ipv6_native(self, input: bool) -> Self
pub fn ipv6_native(self, input: bool) -> Self
Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.
sourcepub fn set_ipv6_native(self, input: Option<bool>) -> Self
pub fn set_ipv6_native(self, input: Option<bool>) -> Self
Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.
sourcepub fn get_ipv6_native(&self) -> &Option<bool>
pub fn get_ipv6_native(&self) -> &Option<bool>
Indicates whether to create an IPv6 only subnet. If you already have a default subnet for this Availability Zone, you must delete it before you can create an IPv6 only subnet.
sourcepub fn build(self) -> Result<CreateDefaultSubnetInput, BuildError>
pub fn build(self) -> Result<CreateDefaultSubnetInput, BuildError>
Consumes the builder and constructs a CreateDefaultSubnetInput
.
source§impl CreateDefaultSubnetInputBuilder
impl CreateDefaultSubnetInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDefaultSubnetOutput, SdkError<CreateDefaultSubnetError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDefaultSubnetOutput, SdkError<CreateDefaultSubnetError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDefaultSubnetInputBuilder
impl Clone for CreateDefaultSubnetInputBuilder
source§fn clone(&self) -> CreateDefaultSubnetInputBuilder
fn clone(&self) -> CreateDefaultSubnetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDefaultSubnetInputBuilder
impl Default for CreateDefaultSubnetInputBuilder
source§fn default() -> CreateDefaultSubnetInputBuilder
fn default() -> CreateDefaultSubnetInputBuilder
source§impl PartialEq<CreateDefaultSubnetInputBuilder> for CreateDefaultSubnetInputBuilder
impl PartialEq<CreateDefaultSubnetInputBuilder> for CreateDefaultSubnetInputBuilder
source§fn eq(&self, other: &CreateDefaultSubnetInputBuilder) -> bool
fn eq(&self, other: &CreateDefaultSubnetInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.