public class AddUserToGroupRequest extends AmazonWebServiceRequest implements Serializable
AddUserToGroup operation
.
Adds the specified user to the specified group.
Constructor and Description |
---|
AddUserToGroupRequest()
Default constructor for a new AddUserToGroupRequest object.
|
AddUserToGroupRequest(String groupName,
String userName)
Constructs a new AddUserToGroupRequest object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public AddUserToGroupRequest()
public AddUserToGroupRequest(String groupName, String userName)
groupName
- Name of the group to update.userName
- Name of the user to add.public String getGroupName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setGroupName(String groupName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
groupName
- Name of the group to update.public AddUserToGroupRequest withGroupName(String groupName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
groupName
- Name of the group to update.public String getUserName()
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
public void setUserName(String userName)
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user to add.public AddUserToGroupRequest withUserName(String userName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\w+=,.@-]*
userName
- Name of the user to add.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.