Class UserIdGroupPair
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a security group and AWS account ID pair.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The ID of the security group.The name of the security group.The status of a VPC peering connection, if applicable.The ID of an AWS account.getVpcId()
The ID of the VPC for the referenced security group, if applicable.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
The ID of an AWS account.void
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.toString()
Returns a string representation of this object; useful for testing and debugging.withGroupId
(String groupId) The ID of the security group.withGroupName
(String groupName) The name of the security group.withPeeringStatus
(String peeringStatus) The status of a VPC peering connection, if applicable.withUserId
(String userId) The ID of an AWS account.The ID of the VPC for the referenced security group, if applicable.withVpcPeeringConnectionId
(String vpcPeeringConnectionId) The ID of the VPC peering connection, if applicable.
-
Constructor Details
-
UserIdGroupPair
public UserIdGroupPair()
-
-
Method Details
-
setUserId
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withUserId
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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupName
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.
- Parameters:
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.
-
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.
- Returns:
- 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.
-
withGroupName
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setGroupId
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.
-
getGroupId
The ID of the security group.
- Returns:
- The ID of the security group.
-
withGroupId
The ID of the security group.
- Parameters:
groupId
- The ID of the security group.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
The ID of the VPC for the referenced security group, if applicable.
- Parameters:
vpcId
- The ID of the VPC for the referenced security group, if applicable.
-
getVpcId
The ID of the VPC for the referenced security group, if applicable.
- Returns:
- The ID of the VPC for the referenced security group, if applicable.
-
withVpcId
The ID of the VPC for the referenced security group, if applicable.
- Parameters:
vpcId
- The ID of the VPC for the referenced security group, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcPeeringConnectionId
The ID of the VPC peering connection, if applicable.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.
-
getVpcPeeringConnectionId
The ID of the VPC peering connection, if applicable.
- Returns:
- The ID of the VPC peering connection, if applicable.
-
withVpcPeeringConnectionId
The ID of the VPC peering connection, if applicable.
- Parameters:
vpcPeeringConnectionId
- The ID of the VPC peering connection, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPeeringStatus
The status of a VPC peering connection, if applicable.
- Parameters:
peeringStatus
- The status of a VPC peering connection, if applicable.
-
getPeeringStatus
The status of a VPC peering connection, if applicable.
- Returns:
- The status of a VPC peering connection, if applicable.
-
withPeeringStatus
The status of a VPC peering connection, if applicable.
- Parameters:
peeringStatus
- The status of a VPC peering connection, if applicable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-