#[non_exhaustive]pub struct AwsEc2SubnetDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsEc2SubnetDetails
.
Implementations§
source§impl AwsEc2SubnetDetailsBuilder
impl AwsEc2SubnetDetailsBuilder
sourcepub fn assign_ipv6_address_on_creation(self, input: bool) -> Self
pub fn assign_ipv6_address_on_creation(self, input: bool) -> Self
Whether to assign an IPV6 address to a network interface that is created in this subnet.
sourcepub fn set_assign_ipv6_address_on_creation(self, input: Option<bool>) -> Self
pub fn set_assign_ipv6_address_on_creation(self, input: Option<bool>) -> Self
Whether to assign an IPV6 address to a network interface that is created in this subnet.
sourcepub fn get_assign_ipv6_address_on_creation(&self) -> &Option<bool>
pub fn get_assign_ipv6_address_on_creation(&self) -> &Option<bool>
Whether to assign an IPV6 address to a network interface that is created in this subnet.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
The Availability Zone for the subnet.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
The Availability Zone for the subnet.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
The Availability Zone for the subnet.
sourcepub fn availability_zone_id(self, input: impl Into<String>) -> Self
pub fn availability_zone_id(self, input: impl Into<String>) -> Self
The identifier of the Availability Zone for the subnet.
sourcepub fn set_availability_zone_id(self, input: Option<String>) -> Self
pub fn set_availability_zone_id(self, input: Option<String>) -> Self
The identifier of the Availability Zone for the subnet.
sourcepub fn get_availability_zone_id(&self) -> &Option<String>
pub fn get_availability_zone_id(&self) -> &Option<String>
The identifier of the Availability Zone for the subnet.
sourcepub fn available_ip_address_count(self, input: i32) -> Self
pub fn available_ip_address_count(self, input: i32) -> Self
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
sourcepub fn set_available_ip_address_count(self, input: Option<i32>) -> Self
pub fn set_available_ip_address_count(self, input: Option<i32>) -> Self
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
sourcepub fn get_available_ip_address_count(&self) -> &Option<i32>
pub fn get_available_ip_address_count(&self) -> &Option<i32>
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
sourcepub fn cidr_block(self, input: impl Into<String>) -> Self
pub fn cidr_block(self, input: impl Into<String>) -> Self
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn set_cidr_block(self, input: Option<String>) -> Self
pub fn set_cidr_block(self, input: Option<String>) -> Self
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn get_cidr_block(&self) -> &Option<String>
pub fn get_cidr_block(&self) -> &Option<String>
The IPV4 CIDR block that is assigned to the subnet.
sourcepub fn default_for_az(self, input: bool) -> Self
pub fn default_for_az(self, input: bool) -> Self
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn set_default_for_az(self, input: Option<bool>) -> Self
pub fn set_default_for_az(self, input: Option<bool>) -> Self
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn get_default_for_az(&self) -> &Option<bool>
pub fn get_default_for_az(&self) -> &Option<bool>
Whether this subnet is the default subnet for the Availability Zone.
sourcepub fn map_public_ip_on_launch(self, input: bool) -> Self
pub fn map_public_ip_on_launch(self, input: bool) -> Self
Whether instances in this subnet receive a public IP address.
sourcepub fn set_map_public_ip_on_launch(self, input: Option<bool>) -> Self
pub fn set_map_public_ip_on_launch(self, input: Option<bool>) -> Self
Whether instances in this subnet receive a public IP address.
sourcepub fn get_map_public_ip_on_launch(&self) -> &Option<bool>
pub fn get_map_public_ip_on_launch(&self) -> &Option<bool>
Whether instances in this subnet receive a public IP address.
sourcepub fn owner_id(self, input: impl Into<String>) -> Self
pub fn owner_id(self, input: impl Into<String>) -> Self
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn set_owner_id(self, input: Option<String>) -> Self
pub fn set_owner_id(self, input: Option<String>) -> Self
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn get_owner_id(&self) -> &Option<String>
pub fn get_owner_id(&self) -> &Option<String>
The identifier of the Amazon Web Services account that owns the subnet.
sourcepub fn state(self, input: impl Into<String>) -> Self
pub fn state(self, input: impl Into<String>) -> Self
The current state of the subnet. Valid values are available
or pending
.
sourcepub fn set_state(self, input: Option<String>) -> Self
pub fn set_state(self, input: Option<String>) -> Self
The current state of the subnet. Valid values are available
or pending
.
sourcepub fn get_state(&self) -> &Option<String>
pub fn get_state(&self) -> &Option<String>
The current state of the subnet. Valid values are available
or pending
.
sourcepub fn subnet_arn(self, input: impl Into<String>) -> Self
pub fn subnet_arn(self, input: impl Into<String>) -> Self
The ARN of the subnet.
sourcepub fn set_subnet_arn(self, input: Option<String>) -> Self
pub fn set_subnet_arn(self, input: Option<String>) -> Self
The ARN of the subnet.
sourcepub fn get_subnet_arn(&self) -> &Option<String>
pub fn get_subnet_arn(&self) -> &Option<String>
The ARN of the subnet.
sourcepub fn set_subnet_id(self, input: Option<String>) -> Self
pub fn set_subnet_id(self, input: Option<String>) -> Self
The identifier of the subnet.
sourcepub fn get_subnet_id(&self) -> &Option<String>
pub fn get_subnet_id(&self) -> &Option<String>
The identifier of the subnet.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The identifier of the VPC that contains the subnet.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The identifier of the VPC that contains the subnet.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The identifier of the VPC that contains the subnet.
sourcepub fn ipv6_cidr_block_association_set(
self,
input: Ipv6CidrBlockAssociation
) -> Self
pub fn ipv6_cidr_block_association_set( self, input: Ipv6CidrBlockAssociation ) -> Self
Appends an item to ipv6_cidr_block_association_set
.
To override the contents of this collection use set_ipv6_cidr_block_association_set
.
The IPV6 CIDR blocks that are associated with the subnet.
sourcepub fn set_ipv6_cidr_block_association_set(
self,
input: Option<Vec<Ipv6CidrBlockAssociation>>
) -> Self
pub fn set_ipv6_cidr_block_association_set( self, input: Option<Vec<Ipv6CidrBlockAssociation>> ) -> Self
The IPV6 CIDR blocks that are associated with the subnet.
sourcepub fn get_ipv6_cidr_block_association_set(
&self
) -> &Option<Vec<Ipv6CidrBlockAssociation>>
pub fn get_ipv6_cidr_block_association_set( &self ) -> &Option<Vec<Ipv6CidrBlockAssociation>>
The IPV6 CIDR blocks that are associated with the subnet.
sourcepub fn build(self) -> AwsEc2SubnetDetails
pub fn build(self) -> AwsEc2SubnetDetails
Consumes the builder and constructs a AwsEc2SubnetDetails
.
Trait Implementations§
source§impl Clone for AwsEc2SubnetDetailsBuilder
impl Clone for AwsEc2SubnetDetailsBuilder
source§fn clone(&self) -> AwsEc2SubnetDetailsBuilder
fn clone(&self) -> AwsEc2SubnetDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AwsEc2SubnetDetailsBuilder
impl Debug for AwsEc2SubnetDetailsBuilder
source§impl Default for AwsEc2SubnetDetailsBuilder
impl Default for AwsEc2SubnetDetailsBuilder
source§fn default() -> AwsEc2SubnetDetailsBuilder
fn default() -> AwsEc2SubnetDetailsBuilder
source§impl PartialEq for AwsEc2SubnetDetailsBuilder
impl PartialEq for AwsEc2SubnetDetailsBuilder
source§fn eq(&self, other: &AwsEc2SubnetDetailsBuilder) -> bool
fn eq(&self, other: &AwsEc2SubnetDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.