Class DBSecurityGroup

java.lang.Object
com.amazonaws.services.rds.model.DBSecurityGroup
All Implemented Interfaces:
Serializable, Cloneable

public class DBSecurityGroup 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 DescribeDBSecurityGroups action.

See Also:
  • Constructor Details

    • DBSecurityGroup

      public DBSecurityGroup()
  • Method Details

    • setOwnerId

      public void setOwnerId(String ownerId)

      Provides the AWS ID of the owner of a specific DB security group.

      Parameters:
      ownerId - Provides the AWS ID of the owner of a specific DB security group.
    • getOwnerId

      public String getOwnerId()

      Provides the AWS ID of the owner of a specific DB security group.

      Returns:
      Provides the AWS ID of the owner of a specific DB security group.
    • withOwnerId

      public DBSecurityGroup withOwnerId(String ownerId)

      Provides the AWS ID of the owner of a specific DB security group.

      Parameters:
      ownerId - Provides the AWS ID of the owner of a specific DB security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDBSecurityGroupName

      public void setDBSecurityGroupName(String dBSecurityGroupName)

      Specifies the name of the DB security group.

      Parameters:
      dBSecurityGroupName - Specifies the name of the DB security group.
    • getDBSecurityGroupName

      public String getDBSecurityGroupName()

      Specifies the name of the DB security group.

      Returns:
      Specifies the name of the DB security group.
    • withDBSecurityGroupName

      public DBSecurityGroup withDBSecurityGroupName(String dBSecurityGroupName)

      Specifies the name of the DB security group.

      Parameters:
      dBSecurityGroupName - Specifies the name of the DB security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDBSecurityGroupDescription

      public void setDBSecurityGroupDescription(String dBSecurityGroupDescription)

      Provides the description of the DB security group.

      Parameters:
      dBSecurityGroupDescription - Provides the description of the DB security group.
    • getDBSecurityGroupDescription

      public String getDBSecurityGroupDescription()

      Provides the description of the DB security group.

      Returns:
      Provides the description of the DB security group.
    • withDBSecurityGroupDescription

      public DBSecurityGroup withDBSecurityGroupDescription(String dBSecurityGroupDescription)

      Provides the description of the DB security group.

      Parameters:
      dBSecurityGroupDescription - Provides the description of the DB security 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 security group.

      Parameters:
      vpcId - Provides the VpcId of the DB security group.
    • getVpcId

      public String getVpcId()

      Provides the VpcId of the DB security group.

      Returns:
      Provides the VpcId of the DB security group.
    • withVpcId

      public DBSecurityGroup withVpcId(String vpcId)

      Provides the VpcId of the DB security group.

      Parameters:
      vpcId - Provides the VpcId of the DB security group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getEC2SecurityGroups

      public List<EC2SecurityGroup> getEC2SecurityGroups()

      Contains a list of EC2SecurityGroup elements.

      Returns:
      Contains a list of EC2SecurityGroup elements.
    • setEC2SecurityGroups

      public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)

      Contains a list of EC2SecurityGroup elements.

      Parameters:
      eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.
    • withEC2SecurityGroups

      public DBSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)

      Contains a list of EC2SecurityGroup elements.

      NOTE: This method appends the values to the existing list (if any). Use setEC2SecurityGroups(java.util.Collection) or withEC2SecurityGroups(java.util.Collection) if you want to override the existing values.

      Parameters:
      eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withEC2SecurityGroups

      public DBSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)

      Contains a list of EC2SecurityGroup elements.

      Parameters:
      eC2SecurityGroups - Contains a list of EC2SecurityGroup elements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getIPRanges

      public List<IPRange> getIPRanges()

      Contains a list of IPRange elements.

      Returns:
      Contains a list of IPRange elements.
    • setIPRanges

      public void setIPRanges(Collection<IPRange> iPRanges)

      Contains a list of IPRange elements.

      Parameters:
      iPRanges - Contains a list of IPRange elements.
    • withIPRanges

      public DBSecurityGroup withIPRanges(IPRange... iPRanges)

      Contains a list of IPRange elements.

      NOTE: This method appends the values to the existing list (if any). Use setIPRanges(java.util.Collection) or withIPRanges(java.util.Collection) if you want to override the existing values.

      Parameters:
      iPRanges - Contains a list of IPRange elements.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withIPRanges

      public DBSecurityGroup withIPRanges(Collection<IPRange> iPRanges)

      Contains a list of IPRange elements.

      Parameters:
      iPRanges - Contains a list of IPRange 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 DBSecurityGroup clone()
      Overrides:
      clone in class Object