public static interface SubnetGroup.Builder extends CopyableBuilder<SubnetGroup.Builder,SubnetGroup>
Modifier and Type | Method and Description |
---|---|
SubnetGroup.Builder |
description(String description)
The description of the subnet group.
|
SubnetGroup.Builder |
subnetGroupName(String subnetGroupName)
The name of the subnet group.
|
SubnetGroup.Builder |
subnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
|
SubnetGroup.Builder |
subnets(Consumer<Subnet.Builder>... subnets)
A list of subnets associated with the subnet group.
|
SubnetGroup.Builder |
subnets(Subnet... subnets)
A list of subnets associated with the subnet group.
|
SubnetGroup.Builder |
vpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
|
copy
applyMutation, build
SubnetGroup.Builder subnetGroupName(String subnetGroupName)
The name of the subnet group.
subnetGroupName
- The name of the subnet group.SubnetGroup.Builder description(String description)
The description of the subnet group.
description
- The description of the subnet group.SubnetGroup.Builder vpcId(String vpcId)
The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.
vpcId
- The Amazon Virtual Private Cloud identifier (VPC ID) of the subnet group.SubnetGroup.Builder subnets(Collection<Subnet> subnets)
A list of subnets associated with the subnet group.
subnets
- A list of subnets associated with the subnet group.SubnetGroup.Builder subnets(Subnet... subnets)
A list of subnets associated with the subnet group.
subnets
- A list of subnets associated with the subnet group.SubnetGroup.Builder subnets(Consumer<Subnet.Builder>... subnets)
A list of subnets associated with the subnet group.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #subnets(List)
.subnets
- a consumer that will call methods on List.Builder
#subnets(List)
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.