public class UserIdGroupPair extends Object implements Serializable, Cloneable
Describes a security group and AWS account ID pair.
| Constructor and Description |
|---|
UserIdGroupPair() |
| Modifier and Type | Method and Description |
|---|---|
UserIdGroupPair |
clone() |
boolean |
equals(Object obj) |
String |
getGroupId()
The ID of the security group.
|
String |
getGroupName()
The name of the security group.
|
String |
getUserId()
The ID of an AWS account.
|
int |
hashCode() |
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
The name of the security group.
|
void |
setUserId(String userId)
The ID of an AWS account.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UserIdGroupPair |
withGroupId(String groupId)
The ID of the security group.
|
UserIdGroupPair |
withGroupName(String groupName)
The name of the security group.
|
UserIdGroupPair |
withUserId(String userId)
The ID of an AWS account.
|
public String getUserId()
public void setUserId(String userId)
userId - The ID of an AWS account. EC2-Classic only.public UserIdGroupPair withUserId(String userId)
Returns a reference to this object so that method calls can be chained together.
userId - The ID of an AWS account. EC2-Classic only.public String getGroupName()
GroupId.GroupId.public void setGroupName(String groupName)
GroupId.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 GroupId.public UserIdGroupPair withGroupName(String groupName)
GroupId.
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 GroupId.public String getGroupId()
public void setGroupId(String groupId)
groupId - The ID of the security group.public UserIdGroupPair withGroupId(String groupId)
Returns a reference to this object so that method calls can be chained together.
groupId - The ID of the security group.public String toString()
toString in class ObjectObject.toString()public UserIdGroupPair clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.