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 DBSecurityGroup
clone()
boolean
equals(Object obj)
String
getDBSecurityGroupDescription()
Provides the description of the DB security group.String
getDBSecurityGroupName()
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.String
getOwnerId()
Provides the AWS ID of the owner of a specific DB security group.String
getVpcId()
Provides the VpcId of the DB security group.int
hashCode()
void
setDBSecurityGroupDescription(String dBSecurityGroupDescription)
Provides the description of the DB security group.void
setDBSecurityGroupName(String dBSecurityGroupName)
Specifies the name of the DB security group.void
setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.void
setIPRanges(Collection<IPRange> iPRanges)
Contains a list of IPRange elements.void
setOwnerId(String ownerId)
Provides the AWS ID of the owner of a specific DB security group.void
setVpcId(String vpcId)
Provides the VpcId of the DB security group.String
toString()
Returns a string representation of this object; useful for testing and debugging.DBSecurityGroup
withDBSecurityGroupDescription(String dBSecurityGroupDescription)
Provides the description of the DB security group.DBSecurityGroup
withDBSecurityGroupName(String dBSecurityGroupName)
Specifies the name of the DB security group.DBSecurityGroup
withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.DBSecurityGroup
withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.DBSecurityGroup
withIPRanges(IPRange... iPRanges)
Contains a list of IPRange elements.DBSecurityGroup
withIPRanges(Collection<IPRange> iPRanges)
Contains a list of IPRange elements.DBSecurityGroup
withOwnerId(String ownerId)
Provides the AWS ID of the owner of a specific DB security group.DBSecurityGroup
withVpcId(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DBSecurityGroup clone()
-
-