Interface Subnet.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Subnet.Builder,
,Subnet> SdkBuilder<Subnet.Builder,
,Subnet> SdkPojo
- Enclosing class:
Subnet
-
Method Summary
Modifier and TypeMethodDescriptiondefault Subnet.Builder
subnetAvailabilityZone
(Consumer<AvailabilityZone.Builder> subnetAvailabilityZone) Specifies the EC2 Availability Zone that the subnet is in.subnetAvailabilityZone
(AvailabilityZone subnetAvailabilityZone) Specifies the EC2 Availability Zone that the subnet is in.subnetIdentifier
(String subnetIdentifier) Specifies the identifier of the subnet.subnetStatus
(String subnetStatus) Specifies the status of 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
-
subnetIdentifier
Specifies the identifier of the subnet.
- Parameters:
subnetIdentifier
- Specifies the identifier of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetAvailabilityZone
Specifies the EC2 Availability Zone that the subnet is in.
- Parameters:
subnetAvailabilityZone
- Specifies the EC2 Availability Zone that the subnet is in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetAvailabilityZone
default Subnet.Builder subnetAvailabilityZone(Consumer<AvailabilityZone.Builder> subnetAvailabilityZone) Specifies the EC2 Availability Zone that the subnet is in.
This is a convenience method that creates an instance of theAvailabilityZone.Builder
avoiding the need to create one manually viaAvailabilityZone.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubnetAvailabilityZone(AvailabilityZone)
.- Parameters:
subnetAvailabilityZone
- 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:
-
subnetStatus
Specifies the status of the subnet.
- Parameters:
subnetStatus
- Specifies the status of the subnet.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-