public class UserIdGroupPair
extends java.lang.Object
implements java.io.Serializable
Describes a security group and AWS account ID pair for EC2-Classic.
| Constructor and Description |
|---|
UserIdGroupPair() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupId()
The name of the security group in the specified AWS account.
|
java.lang.String |
getGroupName()
The ID of the security group owned by the specified AWS account.
|
java.lang.String |
getUserId()
The ID of an AWS account.
|
int |
hashCode() |
void |
setGroupId(java.lang.String groupId)
The name of the security group in the specified AWS account.
|
void |
setGroupName(java.lang.String groupName)
The ID of the security group owned by the specified AWS account.
|
void |
setUserId(java.lang.String userId)
The ID of an AWS account.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserIdGroupPair |
withGroupId(java.lang.String groupId)
The name of the security group in the specified AWS account.
|
UserIdGroupPair |
withGroupName(java.lang.String groupName)
The ID of the security group owned by the specified AWS account.
|
UserIdGroupPair |
withUserId(java.lang.String userId)
The ID of an AWS account.
|
public java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId - The ID of an AWS account.public UserIdGroupPair withUserId(java.lang.String userId)
Returns a reference to this object so that method calls can be chained together.
userId - The ID of an AWS account.public java.lang.String getGroupName()
public void setGroupName(java.lang.String groupName)
groupName - The ID of the security group owned by the specified AWS account.public UserIdGroupPair withGroupName(java.lang.String groupName)
Returns a reference to this object so that method calls can be chained together.
groupName - The ID of the security group owned by the specified AWS account.public java.lang.String getGroupId()
public void setGroupId(java.lang.String groupId)
groupId - The name of the security group in the specified AWS account.public UserIdGroupPair withGroupId(java.lang.String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId - The name of the security group in the specified AWS account.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object