Interface AwsEc2SubnetDetails.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AwsEc2SubnetDetails.Builder,AwsEc2SubnetDetails>,SdkBuilder<AwsEc2SubnetDetails.Builder,AwsEc2SubnetDetails>,SdkPojo
- Enclosing class:
- AwsEc2SubnetDetails
public static interface AwsEc2SubnetDetails.Builder extends SdkPojo, CopyableBuilder<AwsEc2SubnetDetails.Builder,AwsEc2SubnetDetails>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AwsEc2SubnetDetails.BuilderassignIpv6AddressOnCreation(Boolean assignIpv6AddressOnCreation)Whether to assign an IPV6 address to a network interface that is created in this subnet.AwsEc2SubnetDetails.BuilderavailabilityZone(String availabilityZone)The Availability Zone for the subnet.AwsEc2SubnetDetails.BuilderavailabilityZoneId(String availabilityZoneId)The identifier of the Availability Zone for the subnet.AwsEc2SubnetDetails.BuilderavailableIpAddressCount(Integer availableIpAddressCount)The number of available IPV4 addresses in the subnet.AwsEc2SubnetDetails.BuildercidrBlock(String cidrBlock)The IPV4 CIDR block that is assigned to the subnet.AwsEc2SubnetDetails.BuilderdefaultForAz(Boolean defaultForAz)Whether this subnet is the default subnet for the Availability Zone.AwsEc2SubnetDetails.Builderipv6CidrBlockAssociationSet(Collection<Ipv6CidrBlockAssociation> ipv6CidrBlockAssociationSet)The IPV6 CIDR blocks that are associated with the subnet.AwsEc2SubnetDetails.Builderipv6CidrBlockAssociationSet(Consumer<Ipv6CidrBlockAssociation.Builder>... ipv6CidrBlockAssociationSet)The IPV6 CIDR blocks that are associated with the subnet.AwsEc2SubnetDetails.Builderipv6CidrBlockAssociationSet(Ipv6CidrBlockAssociation... ipv6CidrBlockAssociationSet)The IPV6 CIDR blocks that are associated with the subnet.AwsEc2SubnetDetails.BuildermapPublicIpOnLaunch(Boolean mapPublicIpOnLaunch)Whether instances in this subnet receive a public IP address.AwsEc2SubnetDetails.BuilderownerId(String ownerId)The identifier of the Amazon Web Services account that owns the subnet.AwsEc2SubnetDetails.Builderstate(String state)The current state of the subnet.AwsEc2SubnetDetails.BuildersubnetArn(String subnetArn)The ARN of the subnet.AwsEc2SubnetDetails.BuildersubnetId(String subnetId)The identifier of the subnet.AwsEc2SubnetDetails.BuildervpcId(String vpcId)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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
assignIpv6AddressOnCreation
AwsEc2SubnetDetails.Builder assignIpv6AddressOnCreation(Boolean 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
AwsEc2SubnetDetails.Builder availabilityZone(String 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
AwsEc2SubnetDetails.Builder availabilityZoneId(String 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
AwsEc2SubnetDetails.Builder availableIpAddressCount(Integer 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
AwsEc2SubnetDetails.Builder cidrBlock(String 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
AwsEc2SubnetDetails.Builder defaultForAz(Boolean 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
AwsEc2SubnetDetails.Builder mapPublicIpOnLaunch(Boolean 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
AwsEc2SubnetDetails.Builder ownerId(String 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
AwsEc2SubnetDetails.Builder state(String state)
The current state of the subnet. Valid values are
availableorpending.- Parameters:
state- The current state of the subnet. Valid values areavailableorpending.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetArn
AwsEc2SubnetDetails.Builder subnetArn(String 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
AwsEc2SubnetDetails.Builder subnetId(String 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
AwsEc2SubnetDetails.Builder vpcId(String 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.Builderavoiding the need to create one manually viaIpv6CidrBlockAssociation.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#ipv6CidrBlockAssociationSet(List.) - 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:
#ipv6CidrBlockAssociationSet(java.util.Collection)
-
-