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 |
getPeeringStatus()
The status of a VPC peering connection, if applicable.
|
String |
getUserId()
The ID of an AWS account.
|
String |
getVpcId()
The ID of the VPC for the referenced security group, if applicable.
|
String |
getVpcPeeringConnectionId()
The ID of the VPC peering connection, if applicable.
|
int |
hashCode() |
void |
setGroupId(String groupId)
The ID of the security group.
|
void |
setGroupName(String groupName)
The name of the security group.
|
void |
setPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
|
void |
setUserId(String userId)
The ID of an AWS account.
|
void |
setVpcId(String vpcId)
The ID of the VPC for the referenced security group, if applicable.
|
void |
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
|
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 |
withPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
|
UserIdGroupPair |
withUserId(String userId)
The ID of an AWS account.
|
UserIdGroupPair |
withVpcId(String vpcId)
The ID of the VPC for the referenced security group, if applicable.
|
UserIdGroupPair |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
|
public void setUserId(String userId)
The ID of an AWS account.
userId
- The ID of an AWS account.public String getUserId()
The ID of an AWS account.
public UserIdGroupPair withUserId(String userId)
The ID of an AWS account.
userId
- The ID of an AWS account.public void setGroupName(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 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 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 GroupId
.
GroupId
.public UserIdGroupPair withGroupName(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 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 void setGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public String getGroupId()
The ID of the security group.
public UserIdGroupPair withGroupId(String groupId)
The ID of the security group.
groupId
- The ID of the security group.public void setVpcId(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 String getVpcId()
The ID of the VPC for the referenced security group, if applicable.
public UserIdGroupPair withVpcId(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(String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public String getVpcPeeringConnectionId()
The ID of the VPC peering connection, if applicable.
public UserIdGroupPair withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection, if applicable.
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.public void setPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.public String getPeeringStatus()
The status of a VPC peering connection, if applicable.
public UserIdGroupPair withPeeringStatus(String peeringStatus)
The status of a VPC peering connection, if applicable.
peeringStatus
- The status of a VPC peering connection, if applicable.public String toString()
toString
in class Object
Object.toString()
public UserIdGroupPair clone()
Copyright © 2016. All rights reserved.