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
availabilityZone
(Consumer<AvailabilityZone.Builder> availabilityZone) The Availability Zone where the subnet residesavailabilityZone
(AvailabilityZone availabilityZone) The Availability Zone where the subnet residesidentifier
(String identifier) The unique identifier for the subnet.supportedNetworkTypes
(Collection<NetworkType> supportedNetworkTypes) The network types supported by this subnet.supportedNetworkTypes
(NetworkType... supportedNetworkTypes) The network types supported by this subnet.supportedNetworkTypesWithStrings
(String... supportedNetworkTypes) The network types supported by this subnet.supportedNetworkTypesWithStrings
(Collection<String> supportedNetworkTypes) The network types supported by this 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 Details
-
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
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
The Availability Zone where the subnet resides
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 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:
-
supportedNetworkTypesWithStrings
The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypesWithStrings
The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypes
The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypes
The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating whether the subnet supports IPv4 only, IPv6 only, or dual-stack deployments.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-