Interface Subnet.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Subnet.Builder,Subnet>,SdkBuilder<Subnet.Builder,Subnet>,SdkPojo
- Enclosing class:
- Subnet
public static interface Subnet.Builder extends SdkPojo, CopyableBuilder<Subnet.Builder,Subnet>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Subnet.BuilderavailabilityZone(Consumer<AvailabilityZone.Builder> availabilityZone)The Availability Zone where the subnet residesSubnet.BuilderavailabilityZone(AvailabilityZone availabilityZone)The Availability Zone where the subnet residesSubnet.Builderidentifier(String identifier)The unique identifier for 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
-
identifier
Subnet.Builder identifier(String identifier)
The unique identifier for the subnet.
- Parameters:
identifier- The unique identifier for the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
Subnet.Builder availabilityZone(AvailabilityZone availabilityZone)
The Availability Zone where the subnet resides
- Parameters:
availabilityZone- The Availability Zone where the subnet resides- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
default Subnet.Builder availabilityZone(Consumer<AvailabilityZone.Builder> availabilityZone)
The Availability Zone where the subnet resides
This is a convenience method that creates an instance of theAvailabilityZone.Builderavoiding the need to create one manually viaAvailabilityZone.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toavailabilityZone(AvailabilityZone).- Parameters:
availabilityZone- a consumer that will call methods onAvailabilityZone.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
availabilityZone(AvailabilityZone)
-
-