Struct aws_sdk_securityhub::model::aws_ec2_subnet_details::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AwsEc2SubnetDetails
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 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 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 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 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 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 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 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 build(self) -> AwsEc2SubnetDetails
pub fn build(self) -> AwsEc2SubnetDetails
Consumes the builder and constructs a AwsEc2SubnetDetails
.