@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DBSecurityGroup extends Object implements Serializable, Cloneable
Contains the details for an Amazon RDS DB security group.
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 |
getDBSecurityGroupArn()
The Amazon Resource Name (ARN) for the DB security group.
|
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 Amazon Web Services ID of the owner of a specific DB security group.
|
String |
getVpcId()
Provides the VpcId of the DB security group.
|
int |
hashCode() |
void |
setDBSecurityGroupArn(String dBSecurityGroupArn)
The Amazon Resource Name (ARN) for the DB security group.
|
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 Amazon Web Services 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.
|
DBSecurityGroup |
withDBSecurityGroupArn(String dBSecurityGroupArn)
The Amazon Resource Name (ARN) for the DB security group.
|
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 Amazon Web Services ID of the owner of a specific DB security group.
|
DBSecurityGroup |
withVpcId(String vpcId)
Provides the VpcId of the DB security group.
|
public void setOwnerId(String ownerId)
Provides the Amazon Web Services ID of the owner of a specific DB security group.
ownerId
- Provides the Amazon Web Services ID of the owner of a specific DB security group.public String getOwnerId()
Provides the Amazon Web Services ID of the owner of a specific DB security group.
public DBSecurityGroup withOwnerId(String ownerId)
Provides the Amazon Web Services ID of the owner of a specific DB security group.
ownerId
- Provides the Amazon Web Services ID of the owner of a specific DB security group.public void setDBSecurityGroupName(String dBSecurityGroupName)
Specifies the name of the DB security group.
dBSecurityGroupName
- Specifies the name of the DB security group.public String getDBSecurityGroupName()
Specifies the name of the DB security group.
public DBSecurityGroup withDBSecurityGroupName(String dBSecurityGroupName)
Specifies the name of the DB security group.
dBSecurityGroupName
- Specifies the name of the DB security group.public void setDBSecurityGroupDescription(String dBSecurityGroupDescription)
Provides the description of the DB security group.
dBSecurityGroupDescription
- Provides the description of the DB security group.public String getDBSecurityGroupDescription()
Provides the description of the DB security group.
public DBSecurityGroup withDBSecurityGroupDescription(String dBSecurityGroupDescription)
Provides the description of the DB security group.
dBSecurityGroupDescription
- Provides the description of the DB security group.public void setVpcId(String vpcId)
Provides the VpcId of the DB security group.
vpcId
- Provides the VpcId of the DB security group.public String getVpcId()
Provides the VpcId of the DB security group.
public DBSecurityGroup withVpcId(String vpcId)
Provides the VpcId of the DB security group.
vpcId
- Provides the VpcId of the DB security group.public List<EC2SecurityGroup> getEC2SecurityGroups()
Contains a list of EC2SecurityGroup
elements.
EC2SecurityGroup
elements.public void setEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup
elements.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup
elements.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.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup
elements.public DBSecurityGroup withEC2SecurityGroups(Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup
elements.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup
elements.public List<IPRange> getIPRanges()
Contains a list of IPRange
elements.
IPRange
elements.public void setIPRanges(Collection<IPRange> iPRanges)
Contains a list of IPRange
elements.
iPRanges
- Contains a list of IPRange
elements.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.
iPRanges
- Contains a list of IPRange
elements.public DBSecurityGroup withIPRanges(Collection<IPRange> iPRanges)
Contains a list of IPRange
elements.
iPRanges
- Contains a list of IPRange
elements.public void setDBSecurityGroupArn(String dBSecurityGroupArn)
The Amazon Resource Name (ARN) for the DB security group.
dBSecurityGroupArn
- The Amazon Resource Name (ARN) for the DB security group.public String getDBSecurityGroupArn()
The Amazon Resource Name (ARN) for the DB security group.
public DBSecurityGroup withDBSecurityGroupArn(String dBSecurityGroupArn)
The Amazon Resource Name (ARN) for the DB security group.
dBSecurityGroupArn
- The Amazon Resource Name (ARN) for the DB security group.public String toString()
toString
in class Object
Object.toString()
public DBSecurityGroup clone()