Interface DBSubnetGroup.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<DBSubnetGroup.Builder,DBSubnetGroup>,SdkBuilder<DBSubnetGroup.Builder,DBSubnetGroup>,SdkPojo
- Enclosing class:
- DBSubnetGroup
public static interface DBSubnetGroup.Builder extends SdkPojo, CopyableBuilder<DBSubnetGroup.Builder,DBSubnetGroup>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DBSubnetGroup.BuilderdbSubnetGroupArn(String dbSubnetGroupArn)The Amazon Resource Name (ARN) for the DB subnet group.DBSubnetGroup.BuilderdbSubnetGroupDescription(String dbSubnetGroupDescription)Provides the description of the DB subnet group.DBSubnetGroup.BuilderdbSubnetGroupName(String dbSubnetGroupName)The name of the DB subnet group.DBSubnetGroup.BuildersubnetGroupStatus(String subnetGroupStatus)Provides the status of the DB subnet group.DBSubnetGroup.Buildersubnets(Collection<Subnet> subnets)Contains a list ofSubnetelements.DBSubnetGroup.Buildersubnets(Consumer<Subnet.Builder>... subnets)Contains a list ofSubnetelements.DBSubnetGroup.Buildersubnets(Subnet... subnets)Contains a list ofSubnetelements.DBSubnetGroup.BuildersupportedNetworkTypes(String... supportedNetworkTypes)The network type of the DB subnet group.DBSubnetGroup.BuildersupportedNetworkTypes(Collection<String> supportedNetworkTypes)The network type of the DB subnet group.DBSubnetGroup.BuildervpcId(String vpcId)Provides the VpcId of the DB 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 Detail
-
dbSubnetGroupName
DBSubnetGroup.Builder dbSubnetGroupName(String dbSubnetGroupName)
The name of the DB subnet group.
- Parameters:
dbSubnetGroupName- The name of the DB subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dbSubnetGroupDescription
DBSubnetGroup.Builder dbSubnetGroupDescription(String dbSubnetGroupDescription)
Provides the description of the DB subnet group.
- Parameters:
dbSubnetGroupDescription- Provides the description of the DB subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
DBSubnetGroup.Builder vpcId(String vpcId)
Provides the VpcId of the DB subnet group.
- Parameters:
vpcId- Provides the VpcId of the DB subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetGroupStatus
DBSubnetGroup.Builder subnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
- Parameters:
subnetGroupStatus- Provides the status of the DB subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
DBSubnetGroup.Builder subnets(Collection<Subnet> subnets)
Contains a list of
Subnetelements.- Parameters:
subnets- Contains a list ofSubnetelements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
DBSubnetGroup.Builder subnets(Subnet... subnets)
Contains a list of
Subnetelements.- Parameters:
subnets- Contains a list ofSubnetelements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
DBSubnetGroup.Builder subnets(Consumer<Subnet.Builder>... subnets)
Contains a list of
This is a convenience method that creates an instance of theSubnetelements.Subnet.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)
-
dbSubnetGroupArn
DBSubnetGroup.Builder dbSubnetGroupArn(String dbSubnetGroupArn)
The Amazon Resource Name (ARN) for the DB subnet group.
- Parameters:
dbSubnetGroupArn- The Amazon Resource Name (ARN) for the DB subnet group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
supportedNetworkTypes
DBSubnetGroup.Builder supportedNetworkTypes(Collection<String> supportedNetworkTypes)
The network type of the DB subnet group.
Valid values:
-
IPV4 -
DUAL
A
DBSubnetGroupcan support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.
- Parameters:
supportedNetworkTypes- The network type of the DB subnet group.Valid values:
-
IPV4 -
DUAL
A
DBSubnetGroupcan support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
supportedNetworkTypes
DBSubnetGroup.Builder supportedNetworkTypes(String... supportedNetworkTypes)
The network type of the DB subnet group.
Valid values:
-
IPV4 -
DUAL
A
DBSubnetGroupcan support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.
- Parameters:
supportedNetworkTypes- The network type of the DB subnet group.Valid values:
-
IPV4 -
DUAL
A
DBSubnetGroupcan support only the IPv4 protocol or the IPv4 and the IPv6 protocols (DUAL).For more information, see Working with a DB instance in a VPC in the Amazon RDS User Guide.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
-