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:
- DescribeDBSecurityGroups
- AuthorizeDBSecurityGroupIngress
- CreateDBSecurityGroup
- RevokeDBSecurityGroupIngress
This data type is used as a response element in the DescribeDBSecurityGroups action.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DBSecurityGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DBSecurityGroupclone()booleanequals(Object obj)StringgetDBSecurityGroupDescription()Provides the description of the DB security group.StringgetDBSecurityGroupName()Specifies the name of the DB security group.List<EC2SecurityGroup>getEC2SecurityGroups()Contains a list of EC2SecurityGroup elements.List<IPRange>getIPRanges()Contains a list of IPRange elements.StringgetOwnerId()Provides the AWS ID of the owner of a specific DB security group.StringgetVpcId()Provides the VpcId of the DB security group.inthashCode()voidsetDBSecurityGroupDescription(String dBSecurityGroupDescription)Provides the description of the DB security group.voidsetDBSecurityGroupName(String dBSecurityGroupName)Specifies the name of the DB security group.voidsetEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)Contains a list of EC2SecurityGroup elements.voidsetIPRanges(Collection<IPRange> iPRanges)Contains a list of IPRange elements.voidsetOwnerId(String ownerId)Provides the AWS ID of the owner of a specific DB security group.voidsetVpcId(String vpcId)Provides the VpcId of the DB security group.StringtoString()Returns a string representation of this object; useful for testing and debugging.DBSecurityGroupwithDBSecurityGroupDescription(String dBSecurityGroupDescription)Provides the description of the DB security group.DBSecurityGroupwithDBSecurityGroupName(String dBSecurityGroupName)Specifies the name of the DB security group.DBSecurityGroupwithEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)Contains a list of EC2SecurityGroup elements.DBSecurityGroupwithEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)Contains a list of EC2SecurityGroup elements.DBSecurityGroupwithIPRanges(IPRange... iPRanges)Contains a list of IPRange elements.DBSecurityGroupwithIPRanges(Collection<IPRange> iPRanges)Contains a list of IPRange elements.DBSecurityGroupwithOwnerId(String ownerId)Provides the AWS ID of the owner of a specific DB security group.DBSecurityGroupwithVpcId(String vpcId)Provides the VpcId of the DB security group.
-
-
-
Method Detail
-
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)orwithEC2SecurityGroups(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)orwithIPRanges(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DBSecurityGroup clone()
-
-