Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.identitymanagement.model
Class AddUserToGroupRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.identitymanagement.model.AddUserToGroupRequest
All Implemented Interfaces:
Serializable

public class AddUserToGroupRequest
extends AmazonWebServiceRequest
implements Serializable

Container for the parameters to the AddUserToGroup operation.

Adds the specified user to the specified group.

See Also:
AmazonIdentityManagement.addUserToGroup(AddUserToGroupRequest), Serialized Form

Constructor Summary
AddUserToGroupRequest()
          Default constructor for a new AddUserToGroupRequest object.
AddUserToGroupRequest(String groupName, String userName)
          Constructs a new AddUserToGroupRequest object.
 
Method Summary
 boolean equals(Object obj)
           
 String getGroupName()
          Name of the group to update.
 String getUserName()
          Name of the user to add.
 int hashCode()
           
 void setGroupName(String groupName)
          Name of the group to update.
 void setUserName(String userName)
          Name of the user to add.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 AddUserToGroupRequest withGroupName(String groupName)
          Name of the group to update.
 AddUserToGroupRequest withUserName(String userName)
          Name of the user to add.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentials
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddUserToGroupRequest

public AddUserToGroupRequest()
Default constructor for a new AddUserToGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize this object after creating it.


AddUserToGroupRequest

public AddUserToGroupRequest(String groupName,
                             String userName)
Constructs a new AddUserToGroupRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
groupName - Name of the group to update.
userName - Name of the user to add.
Method Detail

getGroupName

public String getGroupName()
Name of the group to update.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the group to update.

setGroupName

public void setGroupName(String groupName)
Name of the group to update.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
groupName - Name of the group to update.

withGroupName

public AddUserToGroupRequest withGroupName(String groupName)
Name of the group to update.

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

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
groupName - Name of the group to update.
Returns:
A reference to this updated object so that method calls can be chained together.

getUserName

public String getUserName()
Name of the user to add.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Returns:
Name of the user to add.

setUserName

public void setUserName(String userName)
Name of the user to add.

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user to add.

withUserName

public AddUserToGroupRequest withUserName(String userName)
Name of the user to add.

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

Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*

Parameters:
userName - Name of the user to add.
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.