Interface SubnetGroup.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<SubnetGroup.Builder,SubnetGroup>,SdkBuilder<SubnetGroup.Builder,SubnetGroup>,SdkPojo
- Enclosing class:
- SubnetGroup
public static interface SubnetGroup.Builder extends SdkPojo, CopyableBuilder<SubnetGroup.Builder,SubnetGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubnetGroup.Builderarn(String arn)The ARN (Amazon Resource Name) of the subnet group.SubnetGroup.Builderdescription(String description)A description of the subnet groupSubnetGroup.Buildername(String name)The name of the subnet groupSubnetGroup.Buildersubnets(Collection<Subnet> subnets)A list of subnets associated with the subnet group.SubnetGroup.Buildersubnets(Consumer<Subnet.Builder>... subnets)A list of subnets associated with the subnet group.SubnetGroup.Buildersubnets(Subnet... subnets)A list of subnets associated with the subnet group.SubnetGroup.BuildervpcId(String vpcId)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, sdkFields
-
-
-
-
Method Detail
-
name
SubnetGroup.Builder name(String 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
SubnetGroup.Builder description(String 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
SubnetGroup.Builder vpcId(String 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
SubnetGroup.Builder subnets(Collection<Subnet> 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
SubnetGroup.Builder subnets(Subnet... 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
SubnetGroup.Builder subnets(Consumer<Subnet.Builder>... subnets)
A list of subnets associated with the subnet group.
This is a convenience method that creates an instance of theSubnet.Builderavoiding the need to create one manually viaSubnet.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#subnets(List.) - 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:
#subnets(java.util.Collection)
-
arn
SubnetGroup.Builder arn(String 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.
-
-