public class UserIdGroupPair
extends java.lang.Object
implements java.io.Serializable
Describes a security group and AWS account ID pair.
Constructor and Description |
---|
UserIdGroupPair() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getUserId()
[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 void setUserId(java.lang.String userId)
[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 UserIdGroupPair withUserId(java.lang.String userId)
[EC2-Classic] Required when adding or removing rules that reference a security group in another AWS account.
Returns a reference to this object so that method calls can be chained together.
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 getGroupName()
public void setGroupName(java.lang.String groupName)
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 UserIdGroupPair withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
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 getGroupId()
public void setGroupId(java.lang.String groupId)
groupId
- The ID of the security group.public UserIdGroupPair withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId
- The ID of the security group.public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId
- The ID of the VPC for the referenced security group, if applicable.public UserIdGroupPair withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId
- The ID of the VPC for the referenced security group, if applicable.public java.lang.String getVpcPeeringConnectionId()
public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public UserIdGroupPair withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
Returns a reference to this object so that method calls can be chained together.
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public java.lang.String getPeeringStatus()
public void setPeeringStatus(java.lang.String peeringStatus)
peeringStatus
- The status of a VPC peering connection, if applicable.public UserIdGroupPair withPeeringStatus(java.lang.String peeringStatus)
Returns a reference to this object so that method calls can be chained together.
peeringStatus
- The status of a VPC peering connection, if applicable.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.