com.amazonaws.services.ec2.model
Class UserIdGroupPair

java.lang.Object
  extended by com.amazonaws.services.ec2.model.UserIdGroupPair

public class UserIdGroupPair
extends Object

An AWS user ID identifiying an AWS account, and the name of a security group within that account.


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

Constructor Detail

UserIdGroupPair

public UserIdGroupPair()
Method Detail

getUserId

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

Returns:
The AWS user ID of an account.

setUserId

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

Parameters:
userId - The AWS user ID of an account.

withUserId

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

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

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

getGroupName

public String getGroupName()
Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

Returns:
Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

setGroupName

public void setGroupName(String groupName)
Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

Parameters:
groupName - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

withGroupName

public UserIdGroupPair withGroupName(String groupName)
Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

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

Parameters:
groupName - Name of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupId

public String getGroupId()
ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

Returns:
ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

setGroupId

public void setGroupId(String groupId)
ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

Parameters:
groupId - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

withGroupId

public UserIdGroupPair withGroupId(String groupId)
ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.

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

Parameters:
groupId - ID of the security group in the specified AWS account. Cannot be used when specifying a CIDR IP address range.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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