com.amazonaws.services.ec2.model
Class UserIdGroupPair

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

public class UserIdGroupPair
extends Object
implements Serializable

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

See Also:
Serialized Form

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

Constructor Detail

UserIdGroupPair

public UserIdGroupPair()
Method Detail

getUserId

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

Returns:
The ID of an AWS account.

setUserId

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

Parameters:
userId - The ID of an AWS account.

withUserId

public UserIdGroupPair withUserId(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 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(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(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 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(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(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 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 © 2016. All rights reserved.