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.
Constructor and Description |
---|
DBSecurityGroup() |
Modifier and Type | Method and 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(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
|
DBSecurityGroup |
withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
|
DBSecurityGroup |
withIPRanges(Collection<IPRange> iPRanges)
Contains a list of IPRange elements.
|
DBSecurityGroup |
withIPRanges(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.
|
public String getOwnerId()
public void setOwnerId(String ownerId)
ownerId
- Provides the AWS ID of the owner of a specific DB security group.public DBSecurityGroup withOwnerId(String ownerId)
Returns a reference to this object so that method calls can be chained together.
ownerId
- Provides the AWS ID of the owner of a specific DB security group.public String getDBSecurityGroupName()
public void setDBSecurityGroupName(String dBSecurityGroupName)
dBSecurityGroupName
- Specifies the name of the DB security group.public DBSecurityGroup withDBSecurityGroupName(String dBSecurityGroupName)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroupName
- Specifies the name of the DB security group.public String getDBSecurityGroupDescription()
public void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
dBSecurityGroupDescription
- Provides the description of the DB security group.public DBSecurityGroup withDBSecurityGroupDescription(String dBSecurityGroupDescription)
Returns a reference to this object so that method calls can be chained together.
dBSecurityGroupDescription
- Provides the description of the DB security group.public String getVpcId()
public void setVpcId(String vpcId)
vpcId
- Provides the VpcId of the DB security group.public DBSecurityGroup withVpcId(String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- Provides the VpcId of the DB security group.public List<EC2SecurityGroup> getEC2SecurityGroups()
public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
eC2SecurityGroups
- Contains a list of EC2SecurityGroup elements.public DBSecurityGroup withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
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.
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup elements.public DBSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Returns a reference to this object so that method calls can be chained together.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup elements.public List<IPRange> getIPRanges()
public void setIPRanges(Collection<IPRange> iPRanges)
iPRanges
- Contains a list of IPRange elements.public DBSecurityGroup withIPRanges(IPRange... iPRanges)
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.
Returns a reference to this object so that method calls can be chained together.
iPRanges
- Contains a list of IPRange elements.public DBSecurityGroup withIPRanges(Collection<IPRange> iPRanges)
Returns a reference to this object so that method calls can be chained together.
iPRanges
- Contains a list of IPRange elements.public String toString()
toString
in class Object
Object.toString()
public DBSecurityGroup clone()
Copyright © 2015. All rights reserved.