@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UserIdGroupPair extends Object implements Serializable, Cloneable
Describes a security group and Amazon Web Services 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()
[Default VPC] The name of the security group.
|
String |
getPeeringStatus()
The status of a VPC peering connection, if applicable.
|
String |
getUserId()
The ID of an Amazon Web Services 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)
[Default VPC] 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 Amazon Web Services 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.
|
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)
[Default VPC] 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 Amazon Web Services 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)
[Default VPC] The name of the security group. For a security group in a nondefault VPC, use the security group ID.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
groupName
- [Default VPC] The name of the security group. For a security group in a nondefault VPC, use the security
group ID.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
public String getGroupName()
[Default VPC] The name of the security group. For a security group in a nondefault VPC, use the security group ID.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
public UserIdGroupPair withGroupName(String groupName)
[Default VPC] The name of the security group. For a security group in a nondefault VPC, use the security group ID.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
groupName
- [Default VPC] The name of the security group. For a security group in a nondefault VPC, use the security
group ID.
For a referenced security group in another VPC, this value is not returned if the referenced security group is deleted.
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 Amazon Web Services account.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
userId
- The ID of an Amazon Web Services account.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
public String getUserId()
The ID of an Amazon Web Services account.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
public UserIdGroupPair withUserId(String userId)
The ID of an Amazon Web Services account.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
userId
- The ID of an Amazon Web Services account.
For a referenced security group in another VPC, the account ID of the referenced security group is returned in the response. If the referenced security group is deleted, this value is not returned.
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()