Interface AwsEc2SubnetDetails.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AwsEc2SubnetDetails.Builder,
,AwsEc2SubnetDetails> SdkBuilder<AwsEc2SubnetDetails.Builder,
,AwsEc2SubnetDetails> SdkPojo
- Enclosing class:
AwsEc2SubnetDetails
-
Method Summary
Modifier and TypeMethodDescriptionassignIpv6AddressOnCreation
(Boolean assignIpv6AddressOnCreation) Whether to assign an IPV6 address to a network interface that is created in this subnet.availabilityZone
(String availabilityZone) The Availability Zone for the subnet.availabilityZoneId
(String availabilityZoneId) The identifier of the Availability Zone for the subnet.availableIpAddressCount
(Integer availableIpAddressCount) The number of available IPV4 addresses in the subnet.The IPV4 CIDR block that is assigned to the subnet.defaultForAz
(Boolean defaultForAz) Whether this subnet is the default subnet for the Availability Zone.ipv6CidrBlockAssociationSet
(Collection<Ipv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.ipv6CidrBlockAssociationSet
(Consumer<Ipv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.ipv6CidrBlockAssociationSet
(Ipv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.mapPublicIpOnLaunch
(Boolean mapPublicIpOnLaunch) Whether instances in this subnet receive a public IP address.The identifier of the Amazon Web Services account that owns the subnet.The current state of the subnet.The ARN of the subnet.The identifier of the subnet.The identifier of the VPC that contains the subnet.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
assignIpv6AddressOnCreation
Whether to assign an IPV6 address to a network interface that is created in this subnet.
- Parameters:
assignIpv6AddressOnCreation
- Whether to assign an IPV6 address to a network interface that is created in this subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
The Availability Zone for the subnet.
- Parameters:
availabilityZone
- The Availability Zone for the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZoneId
The identifier of the Availability Zone for the subnet.
- Parameters:
availabilityZoneId
- The identifier of the Availability Zone for the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availableIpAddressCount
The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.
- Parameters:
availableIpAddressCount
- The number of available IPV4 addresses in the subnet. Does not include addresses for stopped instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
cidrBlock
The IPV4 CIDR block that is assigned to the subnet.
- Parameters:
cidrBlock
- The IPV4 CIDR block that is assigned to the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
defaultForAz
Whether this subnet is the default subnet for the Availability Zone.
- Parameters:
defaultForAz
- Whether this subnet is the default subnet for the Availability Zone.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
mapPublicIpOnLaunch
Whether instances in this subnet receive a public IP address.
- Parameters:
mapPublicIpOnLaunch
- Whether instances in this subnet receive a public IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
The identifier of the Amazon Web Services account that owns the subnet.
- Parameters:
ownerId
- The identifier of the Amazon Web Services account that owns the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
The current state of the subnet. Valid values are
available
orpending
.- Parameters:
state
- The current state of the subnet. Valid values areavailable
orpending
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetArn
The ARN of the subnet.
- Parameters:
subnetArn
- The ARN of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The identifier of the subnet.
- Parameters:
subnetId
- The identifier of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The identifier of the VPC that contains the subnet.
- Parameters:
vpcId
- The identifier of the VPC that contains the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
AwsEc2SubnetDetails.Builder ipv6CidrBlockAssociationSet(Collection<Ipv6CidrBlockAssociation> ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.
- Parameters:
ipv6CidrBlockAssociationSet
- The IPV6 CIDR blocks that are associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
AwsEc2SubnetDetails.Builder ipv6CidrBlockAssociationSet(Ipv6CidrBlockAssociation... ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.
- Parameters:
ipv6CidrBlockAssociationSet
- The IPV6 CIDR blocks that are associated with the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipv6CidrBlockAssociationSet
AwsEc2SubnetDetails.Builder ipv6CidrBlockAssociationSet(Consumer<Ipv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet) The IPV6 CIDR blocks that are associated with the subnet.
This is a convenience method that creates an instance of theIpv6CidrBlockAssociation.Builder
avoiding the need to create one manually viaIpv6CidrBlockAssociation.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toipv6CidrBlockAssociationSet(List<Ipv6CidrBlockAssociation>)
.- Parameters:
ipv6CidrBlockAssociationSet
- a consumer that will call methods onIpv6CidrBlockAssociation.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-