@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 |
getDescription()
A description for the security group rule that references this user ID group pair.
|
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 |
setDescription(String description)
A description for the security group rule that references this user ID group pair.
|
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 |
withDescription(String description)
A description for the security group rule that references this user ID group pair.
|
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 setDescription(String description)
A description for the security group rule that references this user ID group pair.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
description
- A description for the security group rule that references this user ID group pair.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$
public String getDescription()
A description for the security group rule that references this user ID group pair.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$
public UserIdGroupPair withDescription(String description)
A description for the security group rule that references this user ID group pair.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
description
- A description for the security group rule that references this user ID group pair.
Constraints: Up to 255 characters in length. Allowed characters are a-z, A-Z, 0-9, spaces, and ._-:/()#,@[]+=;{}!$*
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 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 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 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(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 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 void setUserId(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 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(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 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 String toString()
toString
in class Object
Object.toString()
public UserIdGroupPair clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.