@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DBSubnetGroup extends Object implements Serializable, Cloneable
Contains the details of an Amazon RDS DB subnet group.
This data type is used as a response element in the DescribeDBSubnetGroups
action.
Constructor and Description |
---|
DBSubnetGroup() |
Modifier and Type | Method and Description |
---|---|
DBSubnetGroup |
clone() |
boolean |
equals(Object obj) |
String |
getDBSubnetGroupArn()
The Amazon Resource Name (ARN) for the DB subnet group.
|
String |
getDBSubnetGroupDescription()
Provides the description of the DB subnet group.
|
String |
getDBSubnetGroupName()
The name of the DB subnet group.
|
String |
getSubnetGroupStatus()
Provides the status of the DB subnet group.
|
List<Subnet> |
getSubnets()
Contains a list of
Subnet elements. |
List<String> |
getSupportedNetworkTypes()
The network type of the DB subnet group.
|
String |
getVpcId()
Provides the VpcId of the DB subnet group.
|
int |
hashCode() |
void |
setDBSubnetGroupArn(String dBSubnetGroupArn)
The Amazon Resource Name (ARN) for the DB subnet group.
|
void |
setDBSubnetGroupDescription(String dBSubnetGroupDescription)
Provides the description of the DB subnet group.
|
void |
setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group.
|
void |
setSubnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
|
void |
setSubnets(Collection<Subnet> subnets)
Contains a list of
Subnet elements. |
void |
setSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
The network type of the DB subnet group.
|
void |
setVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
|
String |
toString()
Returns a string representation of this object.
|
DBSubnetGroup |
withDBSubnetGroupArn(String dBSubnetGroupArn)
The Amazon Resource Name (ARN) for the DB subnet group.
|
DBSubnetGroup |
withDBSubnetGroupDescription(String dBSubnetGroupDescription)
Provides the description of the DB subnet group.
|
DBSubnetGroup |
withDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group.
|
DBSubnetGroup |
withSubnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
|
DBSubnetGroup |
withSubnets(Collection<Subnet> subnets)
Contains a list of
Subnet elements. |
DBSubnetGroup |
withSubnets(Subnet... subnets)
Contains a list of
Subnet elements. |
DBSubnetGroup |
withSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
The network type of the DB subnet group.
|
DBSubnetGroup |
withSupportedNetworkTypes(String... supportedNetworkTypes)
The network type of the DB subnet group.
|
DBSubnetGroup |
withVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
|
public void setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group.
dBSubnetGroupName
- The name of the DB subnet group.public String getDBSubnetGroupName()
The name of the DB subnet group.
public DBSubnetGroup withDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group.
dBSubnetGroupName
- The name of the DB subnet group.public void setDBSubnetGroupDescription(String dBSubnetGroupDescription)
Provides the description of the DB subnet group.
dBSubnetGroupDescription
- Provides the description of the DB subnet group.public String getDBSubnetGroupDescription()
Provides the description of the DB subnet group.
public DBSubnetGroup withDBSubnetGroupDescription(String dBSubnetGroupDescription)
Provides the description of the DB subnet group.
dBSubnetGroupDescription
- Provides the description of the DB subnet group.public void setVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
vpcId
- Provides the VpcId of the DB subnet group.public String getVpcId()
Provides the VpcId of the DB subnet group.
public DBSubnetGroup withVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
vpcId
- Provides the VpcId of the DB subnet group.public void setSubnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
subnetGroupStatus
- Provides the status of the DB subnet group.public String getSubnetGroupStatus()
Provides the status of the DB subnet group.
public DBSubnetGroup withSubnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
subnetGroupStatus
- Provides the status of the DB subnet group.public List<Subnet> getSubnets()
Contains a list of Subnet
elements.
Subnet
elements.public void setSubnets(Collection<Subnet> subnets)
Contains a list of Subnet
elements.
subnets
- Contains a list of Subnet
elements.public DBSubnetGroup withSubnets(Subnet... subnets)
Contains a list of Subnet
elements.
NOTE: This method appends the values to the existing list (if any). Use
setSubnets(java.util.Collection)
or withSubnets(java.util.Collection)
if you want to override
the existing values.
subnets
- Contains a list of Subnet
elements.public DBSubnetGroup withSubnets(Collection<Subnet> subnets)
Contains a list of Subnet
elements.
subnets
- Contains a list of Subnet
elements.public void setDBSubnetGroupArn(String dBSubnetGroupArn)
The Amazon Resource Name (ARN) for the DB subnet group.
dBSubnetGroupArn
- The Amazon Resource Name (ARN) for the DB subnet group.public String getDBSubnetGroupArn()
The Amazon Resource Name (ARN) for the DB subnet group.
public DBSubnetGroup withDBSubnetGroupArn(String dBSubnetGroupArn)
The Amazon Resource Name (ARN) for the DB subnet group.
dBSubnetGroupArn
- The Amazon Resource Name (ARN) for the DB subnet group.public List<String> getSupportedNetworkTypes()
The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
public void setSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
supportedNetworkTypes
- The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
public DBSubnetGroup withSupportedNetworkTypes(String... supportedNetworkTypes)
The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
NOTE: This method appends the values to the existing list (if any). Use
setSupportedNetworkTypes(java.util.Collection)
or
withSupportedNetworkTypes(java.util.Collection)
if you want to override the existing values.
supportedNetworkTypes
- The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
public DBSubnetGroup withSupportedNetworkTypes(Collection<String> supportedNetworkTypes)
The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
supportedNetworkTypes
- The network type of the DB subnet group.
Valid values:
IPV4
DUAL
A DBSubnetGroup
can 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.
public String toString()
toString
in class Object
Object.toString()
public DBSubnetGroup clone()