public class UserIdGroupPair
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a security group and AWS account ID pair.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
groupId
The ID of the security group.
|
private java.lang.String |
groupName
The name of the security group.
|
private java.lang.String |
peeringStatus
The status of a VPC peering connection, if applicable.
|
private java.lang.String |
userId
The ID of an AWS account.
|
private java.lang.String |
vpcId
The ID of the VPC for the referenced security group, if applicable.
|
private java.lang.String |
vpcPeeringConnectionId
The ID of the VPC peering connection, if applicable.
|
Constructor and Description |
---|
UserIdGroupPair() |
Modifier and Type | Method and Description |
---|---|
UserIdGroupPair |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupId()
The ID of the security group.
|
java.lang.String |
getGroupName()
The name of the security group.
|
java.lang.String |
getPeeringStatus()
The status of a VPC peering connection, if applicable.
|
java.lang.String |
getUserId()
The ID of an AWS account.
|
java.lang.String |
getVpcId()
The ID of the VPC for the referenced security group, if applicable.
|
java.lang.String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection, if applicable.
|
int |
hashCode() |
void |
setGroupId(java.lang.String groupId)
The ID of the security group.
|
void |
setGroupName(java.lang.String groupName)
The name of the security group.
|
void |
setPeeringStatus(java.lang.String peeringStatus)
The status of a VPC peering connection, if applicable.
|
void |
setUserId(java.lang.String userId)
The ID of an AWS account.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC for the referenced security group, if applicable.
|
void |
setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserIdGroupPair |
withGroupId(java.lang.String groupId)
The ID of the security group.
|
UserIdGroupPair |
withGroupName(java.lang.String groupName)
The name of the security group.
|
UserIdGroupPair |
withPeeringStatus(java.lang.String peeringStatus)
The status of a VPC peering connection, if applicable.
|
UserIdGroupPair |
withUserId(java.lang.String userId)
The ID of an AWS account.
|
UserIdGroupPair |
withVpcId(java.lang.String vpcId)
The ID of the VPC for the referenced security group, if applicable.
|
UserIdGroupPair |
withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
|
private java.lang.String userId
The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
private java.lang.String groupName
The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.
private java.lang.String groupId
The ID of the security group.
private java.lang.String vpcId
The ID of the VPC for the referenced security group, if applicable.
private java.lang.String vpcPeeringConnectionId
The ID of the VPC peering connection, if applicable.
private java.lang.String peeringStatus
The status of a VPC peering connection, if applicable.
public void setUserId(java.lang.String userId)
The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
userId
- The ID of an AWS account. For a referenced security group in
another VPC, the account ID of the referenced security group is
returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
public java.lang.String getUserId()
The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
public UserIdGroupPair withUserId(java.lang.String userId)
The ID of an AWS account. For a referenced security group in another VPC, the account ID of the referenced security group is returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
userId
- The ID of an AWS account. For a referenced security group in
another VPC, the account ID of the referenced security group is
returned.
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
public void setGroupName(java.lang.String groupName)
The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.
groupName
- The name of the security group. In a request, use this parameter
for a security group in EC2-Classic or a default VPC only. For a
security group in a nondefault VPC, use the security group ID.public java.lang.String getGroupName()
The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.
public UserIdGroupPair withGroupName(java.lang.String groupName)
The name of the security group. In a request, use this parameter for a security group in EC2-Classic or a default VPC only. For a security group in a nondefault VPC, use the security group ID.
groupName
- The name of the security group. In a request, use this parameter
for a security group in EC2-Classic or a default VPC only. For a
security group in a nondefault VPC, use the security group ID.public void setGroupId(java.lang.String groupId)
The ID of the security group.
groupId
- The ID of the security group.public java.lang.String getGroupId()
The ID of the security group.
public UserIdGroupPair withGroupId(java.lang.String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setVpcId(java.lang.String vpcId)
The ID of the VPC for the referenced security group, if applicable.
vpcId
- The ID of the VPC for the referenced security group, if
applicable.public java.lang.String getVpcId()
The ID of the VPC for the referenced security group, if applicable.
public UserIdGroupPair withVpcId(java.lang.String vpcId)
The ID of the VPC for the referenced security group, if applicable.
vpcId
- The ID of the VPC for the referenced security group, if
applicable.public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection, if applicable.
public UserIdGroupPair withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public void setPeeringStatus(java.lang.String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.public java.lang.String getPeeringStatus()
The status of a VPC peering connection, if applicable.
public UserIdGroupPair withPeeringStatus(java.lang.String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.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 UserIdGroupPair clone()
clone
in class java.lang.Object