com.amazonaws.services.ec2.model
Class UserIdGroupPair

java.lang.Object
  extended by com.amazonaws.services.ec2.model.UserIdGroupPair
All Implemented Interfaces:
java.io.Serializable

public class UserIdGroupPair
extends java.lang.Object
implements java.io.Serializable

Describes a security group and AWS account ID pair for EC2-Classic.

See Also:
Serialized Form

Constructor Summary
UserIdGroupPair()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getGroupId()
          The name of the security group in the specified AWS account.
 java.lang.String getGroupName()
          The ID of the security group owned by the specified AWS account.
 java.lang.String getUserId()
          The ID of an AWS account.
 int hashCode()
           
 void setGroupId(java.lang.String groupId)
          The name of the security group in the specified AWS account.
 void setGroupName(java.lang.String groupName)
          The ID of the security group owned by the specified AWS account.
 void setUserId(java.lang.String userId)
          The ID of an AWS account.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 UserIdGroupPair withGroupId(java.lang.String groupId)
          The name of the security group in the specified AWS account.
 UserIdGroupPair withGroupName(java.lang.String groupName)
          The ID of the security group owned by the specified AWS account.
 UserIdGroupPair withUserId(java.lang.String userId)
          The ID of an AWS account.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserIdGroupPair

public UserIdGroupPair()
Method Detail

getUserId

public java.lang.String getUserId()
The ID of an AWS account.

Returns:
The ID of an AWS account.

setUserId

public void setUserId(java.lang.String userId)
The ID of an AWS account.

Parameters:
userId - The ID of an AWS account.

withUserId

public UserIdGroupPair withUserId(java.lang.String userId)
The ID of an AWS account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
userId - The ID of an AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupName

public java.lang.String getGroupName()
The ID of the security group owned by the specified AWS account.

Returns:
The ID of the security group owned by the specified AWS account.

setGroupName

public void setGroupName(java.lang.String groupName)
The ID of the security group owned by the specified AWS account.

Parameters:
groupName - The ID of the security group owned by the specified AWS account.

withGroupName

public UserIdGroupPair withGroupName(java.lang.String groupName)
The ID of the security group owned by the specified AWS account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupName - The ID of the security group owned by the specified AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupId

public java.lang.String getGroupId()
The name of the security group in the specified AWS account.

Returns:
The name of the security group in the specified AWS account.

setGroupId

public void setGroupId(java.lang.String groupId)
The name of the security group in the specified AWS account.

Parameters:
groupId - The name of the security group in the specified AWS account.

withGroupId

public UserIdGroupPair withGroupId(java.lang.String groupId)
The name of the security group in the specified AWS account.

Returns a reference to this object so that method calls can be chained together.

Parameters:
groupId - The name of the security group in the specified AWS account.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.