Interface SubnetGroup.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<SubnetGroup.Builder,
,SubnetGroup> SdkBuilder<SubnetGroup.Builder,
,SubnetGroup> SdkPojo
- Enclosing class:
SubnetGroup
-
Method Summary
Modifier and TypeMethodDescriptionThe ARN (Amazon Resource Name) of the subnet group.description
(String description) A description of the subnet groupThe name of the subnet groupsubnets
(Collection<Subnet> subnets) A list of subnets associated with the subnet group.subnets
(Consumer<Subnet.Builder>... subnets) A list of subnets associated with the subnet group.A list of subnets associated with the subnet group.supportedNetworkTypes
(Collection<NetworkType> supportedNetworkTypes) The network types supported by this subnet group.supportedNetworkTypes
(NetworkType... supportedNetworkTypes) The network types supported by this subnet group.supportedNetworkTypesWithStrings
(String... supportedNetworkTypes) The network types supported by this subnet group.supportedNetworkTypesWithStrings
(Collection<String> supportedNetworkTypes) The network types supported by this subnet group.The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.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
-
name
The name of the subnet group
- Parameters:
name
- The name of the subnet group- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the subnet group
- Parameters:
description
- A description of the subnet group- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
- Parameters:
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
A list of subnets associated with the subnet group.
- Parameters:
subnets
- A list of subnets associated with the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
A list of subnets associated with the subnet group.
- Parameters:
subnets
- A list of subnets associated with the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
A list of subnets associated with the subnet group.
This is a convenience method that creates an instance of theSubnet.Builder
avoiding the need to create one manually viaSubnet.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosubnets(List<Subnet>)
.- Parameters:
subnets
- a consumer that will call methods onSubnet.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
arn
The ARN (Amazon Resource Name) of the subnet group.
- Parameters:
arn
- The ARN (Amazon Resource Name) of the subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypesWithStrings
The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypesWithStrings
The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypes
The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypes
The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.
- Parameters:
supportedNetworkTypes
- The network types supported by this subnet group. Returns an array of strings that can include 'ipv4', 'ipv6', or both, indicating the IP address types that can be used for clusters deployed in this subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-