public class DBSecurityGroup
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
dBSecurityGroupDescription
Provides the description of the DB security group.
|
private java.lang.String |
dBSecurityGroupName
Specifies the name of the DB security group.
|
private SdkInternalList<EC2SecurityGroup> |
eC2SecurityGroups
Contains a list of EC2SecurityGroup elements.
|
private SdkInternalList<IPRange> |
iPRanges
Contains a list of IPRange elements.
|
private java.lang.String |
ownerId
Provides the AWS ID of the owner of a specific DB security group.
|
private java.lang.String |
vpcId
Provides the VpcId of the DB security group.
|
Constructor and Description |
---|
DBSecurityGroup() |
Modifier and Type | Method and Description |
---|---|
DBSecurityGroup |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDBSecurityGroupDescription()
Provides the description of the DB security group.
|
java.lang.String |
getDBSecurityGroupName()
Specifies the name of the DB security group.
|
java.util.List<EC2SecurityGroup> |
getEC2SecurityGroups()
Contains a list of EC2SecurityGroup elements.
|
java.util.List<IPRange> |
getIPRanges()
Contains a list of IPRange elements.
|
java.lang.String |
getOwnerId()
Provides the AWS ID of the owner of a specific DB security group.
|
java.lang.String |
getVpcId()
Provides the VpcId of the DB security group.
|
int |
hashCode() |
void |
setDBSecurityGroupDescription(java.lang.String dBSecurityGroupDescription)
Provides the description of the DB security group.
|
void |
setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
Specifies the name of the DB security group.
|
void |
setEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
|
void |
setIPRanges(java.util.Collection<IPRange> iPRanges)
Contains a list of IPRange elements.
|
void |
setOwnerId(java.lang.String ownerId)
Provides the AWS ID of the owner of a specific DB security group.
|
void |
setVpcId(java.lang.String vpcId)
Provides the VpcId of the DB security group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DBSecurityGroup |
withDBSecurityGroupDescription(java.lang.String dBSecurityGroupDescription)
Provides the description of the DB security group.
|
DBSecurityGroup |
withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
Specifies the name of the DB security group.
|
DBSecurityGroup |
withEC2SecurityGroups(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
|
DBSecurityGroup |
withEC2SecurityGroups(EC2SecurityGroup... eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
|
DBSecurityGroup |
withIPRanges(java.util.Collection<IPRange> iPRanges)
Contains a list of IPRange elements.
|
DBSecurityGroup |
withIPRanges(IPRange... iPRanges)
Contains a list of IPRange elements.
|
DBSecurityGroup |
withOwnerId(java.lang.String ownerId)
Provides the AWS ID of the owner of a specific DB security group.
|
DBSecurityGroup |
withVpcId(java.lang.String vpcId)
Provides the VpcId of the DB security group.
|
private java.lang.String ownerId
Provides the AWS ID of the owner of a specific DB security group.
private java.lang.String dBSecurityGroupName
Specifies the name of the DB security group.
private java.lang.String dBSecurityGroupDescription
Provides the description of the DB security group.
private java.lang.String vpcId
Provides the VpcId of the DB security group.
private SdkInternalList<EC2SecurityGroup> eC2SecurityGroups
Contains a list of EC2SecurityGroup elements.
private SdkInternalList<IPRange> iPRanges
Contains a list of IPRange elements.
public void setOwnerId(java.lang.String ownerId)
Provides the AWS ID of the owner of a specific DB security group.
ownerId
- Provides the AWS ID of the owner of a specific DB security group.public java.lang.String getOwnerId()
Provides the AWS ID of the owner of a specific DB security group.
public DBSecurityGroup withOwnerId(java.lang.String ownerId)
Provides the AWS ID of the owner of a specific DB security group.
ownerId
- Provides the AWS ID of the owner of a specific DB security group.public void setDBSecurityGroupName(java.lang.String dBSecurityGroupName)
Specifies the name of the DB security group.
dBSecurityGroupName
- Specifies the name of the DB security group.public java.lang.String getDBSecurityGroupName()
Specifies the name of the DB security group.
public DBSecurityGroup withDBSecurityGroupName(java.lang.String dBSecurityGroupName)
Specifies the name of the DB security group.
dBSecurityGroupName
- Specifies the name of the DB security group.public void setDBSecurityGroupDescription(java.lang.String dBSecurityGroupDescription)
Provides the description of the DB security group.
dBSecurityGroupDescription
- Provides the description of the DB security group.public java.lang.String getDBSecurityGroupDescription()
Provides the description of the DB security group.
public DBSecurityGroup withDBSecurityGroupDescription(java.lang.String dBSecurityGroupDescription)
Provides the description of the DB security group.
dBSecurityGroupDescription
- Provides the description of the DB security group.public void setVpcId(java.lang.String vpcId)
Provides the VpcId of the DB security group.
vpcId
- Provides the VpcId of the DB security group.public java.lang.String getVpcId()
Provides the VpcId of the DB security group.
public DBSecurityGroup withVpcId(java.lang.String vpcId)
Provides the VpcId of the DB security group.
vpcId
- Provides the VpcId of the DB security group.public java.util.List<EC2SecurityGroup> getEC2SecurityGroups()
Contains a list of EC2SecurityGroup elements.
public void setEC2SecurityGroups(java.util.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(java.util.Collection<EC2SecurityGroup> eC2SecurityGroups)
Contains a list of EC2SecurityGroup elements.
eC2SecurityGroups
- Contains a list of EC2SecurityGroup elements.public java.util.List<IPRange> getIPRanges()
Contains a list of IPRange elements.
public void setIPRanges(java.util.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(java.util.Collection<IPRange> iPRanges)
Contains a list of IPRange elements.
iPRanges
- Contains a list of IPRange elements.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DBSecurityGroup clone()
clone
in class java.lang.Object