Class DBSubnetGroup
- java.lang.Object
-
- com.amazonaws.services.rds.model.DBSubnetGroup
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DBSubnetGroup extends Object implements Serializable, Cloneable
Contains the result of a successful invocation of the following actions:
This data type is used as a response element in the DescribeDBSubnetGroups action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBSubnetGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBSubnetGroup
clone()
boolean
equals(Object obj)
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.String
getVpcId()
Provides the VpcId of the DB subnet group.int
hashCode()
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
setVpcId(String vpcId)
Provides the VpcId of the DB subnet group.String
toString()
Returns a string representation of this object; useful for testing and debugging.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(Subnet... subnets)
Contains a list of Subnet elements.DBSubnetGroup
withSubnets(Collection<Subnet> subnets)
Contains a list of Subnet elements.DBSubnetGroup
withVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
-
-
-
Method Detail
-
setDBSubnetGroupName
public void setDBSubnetGroupName(String dBSubnetGroupName)
The name of the DB subnet group.
- Parameters:
dBSubnetGroupName
- The name of the DB subnet group.
-
getDBSubnetGroupName
public String getDBSubnetGroupName()
The name of the DB subnet group.
- Returns:
- The name of the DB subnet group.
-
withDBSubnetGroupName
public DBSubnetGroup withDBSubnetGroupName(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.
-
setDBSubnetGroupDescription
public void setDBSubnetGroupDescription(String dBSubnetGroupDescription)
Provides the description of the DB subnet group.
- Parameters:
dBSubnetGroupDescription
- Provides the description of the DB subnet group.
-
getDBSubnetGroupDescription
public String getDBSubnetGroupDescription()
Provides the description of the DB subnet group.
- Returns:
- Provides the description of the DB subnet group.
-
withDBSubnetGroupDescription
public DBSubnetGroup withDBSubnetGroupDescription(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.
-
setVpcId
public void setVpcId(String vpcId)
Provides the VpcId of the DB subnet group.
- Parameters:
vpcId
- Provides the VpcId of the DB subnet group.
-
getVpcId
public String getVpcId()
Provides the VpcId of the DB subnet group.
- Returns:
- Provides the VpcId of the DB subnet group.
-
withVpcId
public DBSubnetGroup withVpcId(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.
-
setSubnetGroupStatus
public void setSubnetGroupStatus(String subnetGroupStatus)
Provides the status of the DB subnet group.
- Parameters:
subnetGroupStatus
- Provides the status of the DB subnet group.
-
getSubnetGroupStatus
public String getSubnetGroupStatus()
Provides the status of the DB subnet group.
- Returns:
- Provides the status of the DB subnet group.
-
withSubnetGroupStatus
public DBSubnetGroup withSubnetGroupStatus(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.
-
getSubnets
public List<Subnet> getSubnets()
Contains a list of Subnet elements.
- Returns:
- Contains a list of Subnet elements.
-
setSubnets
public void setSubnets(Collection<Subnet> subnets)
Contains a list of Subnet elements.
- Parameters:
subnets
- Contains a list of Subnet elements.
-
withSubnets
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)
orwithSubnets(java.util.Collection)
if you want to override the existing values.- Parameters:
subnets
- Contains a list of Subnet elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withSubnets
public DBSubnetGroup withSubnets(Collection<Subnet> subnets)
Contains a list of Subnet elements.
- Parameters:
subnets
- Contains a list of Subnet elements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DBSubnetGroup clone()
-
-