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:
  • Constructor Details

    • DBSubnetGroup

      public DBSubnetGroup()
  • Method Details

    • 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) or withSubnets(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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DBSubnetGroup clone()
      Overrides:
      clone in class Object