public class AdminAddUserToGroupRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Adds the specified user to the specified group.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
AdminAddUserToGroupRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getGroupName()
The group name.
|
java.lang.String |
getUsername()
The username for the user.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setGroupName(java.lang.String groupName)
The group name.
|
void |
setUsername(java.lang.String username)
The username for the user.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AdminAddUserToGroupRequest |
withGroupName(java.lang.String groupName)
The group name.
|
AdminAddUserToGroupRequest |
withUsername(java.lang.String username)
The username for the user.
|
AdminAddUserToGroupRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getUserPoolId()
The user pool ID for the user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID for the user pool.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool.
public AdminAddUserToGroupRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID for the user pool.
public java.lang.String getUsername()
The username for the user.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The username for the user.
public void setUsername(java.lang.String username)
The username for the user.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The username for the user.
public AdminAddUserToGroupRequest withUsername(java.lang.String username)
The username for the user.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
username - The username for the user.
public java.lang.String getGroupName()
The group name.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The group name.
public void setGroupName(java.lang.String groupName)
The group name.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
groupName - The group name.
public AdminAddUserToGroupRequest withGroupName(java.lang.String groupName)
The group name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
groupName - The group name.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object