public class UpdateGroupRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Updates the specified group with the specified attributes.
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 |
|---|
UpdateGroupRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDescription()
A string containing the new description of the group.
|
java.lang.String |
getGroupName()
The name of the group.
|
java.lang.Integer |
getPrecedence()
The new precedence value for the group.
|
java.lang.String |
getRoleArn()
The new role Amazon Resource Name (ARN) for the group.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setDescription(java.lang.String description)
A string containing the new description of the group.
|
void |
setGroupName(java.lang.String groupName)
The name of the group.
|
void |
setPrecedence(java.lang.Integer precedence)
The new precedence value for the group.
|
void |
setRoleArn(java.lang.String roleArn)
The new role Amazon Resource Name (ARN) for the group.
|
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.
|
UpdateGroupRequest |
withDescription(java.lang.String description)
A string containing the new description of the group.
|
UpdateGroupRequest |
withGroupName(java.lang.String groupName)
The name of the group.
|
UpdateGroupRequest |
withPrecedence(java.lang.Integer precedence)
The new precedence value for the group.
|
UpdateGroupRequest |
withRoleArn(java.lang.String roleArn)
The new role Amazon Resource Name (ARN) for the group.
|
UpdateGroupRequest |
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 getGroupName()
The name of the group.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The name of the group.
public void setGroupName(java.lang.String groupName)
The name of the group.
Constraints:
Length: 1 - 128
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
groupName - The name of the group.
public UpdateGroupRequest withGroupName(java.lang.String groupName)
The name of the group.
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 name of the group.
public 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 UpdateGroupRequest 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 getDescription()
A string containing the new description of the group.
Constraints:
Length: - 2048
A string containing the new description of the group.
public void setDescription(java.lang.String description)
A string containing the new description of the group.
Constraints:
Length: - 2048
description - A string containing the new description of the group.
public UpdateGroupRequest withDescription(java.lang.String description)
A string containing the new description of the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 2048
description - A string containing the new description of the group.
public java.lang.String getRoleArn()
The new role Amazon Resource Name (ARN) for the group. This is used for
setting the cognito:roles and
cognito:preferred_role claims in the token.
Constraints:
Length: 20 - 2048
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=
/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
The new role Amazon Resource Name (ARN) for the group. This is
used for setting the cognito:roles and
cognito:preferred_role claims in the token.
public void setRoleArn(java.lang.String roleArn)
The new role Amazon Resource Name (ARN) for the group. This is used for
setting the cognito:roles and
cognito:preferred_role claims in the token.
Constraints:
Length: 20 - 2048
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=
/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
roleArn -
The new role Amazon Resource Name (ARN) for the group. This is
used for setting the cognito:roles and
cognito:preferred_role claims in the token.
public UpdateGroupRequest withRoleArn(java.lang.String roleArn)
The new role Amazon Resource Name (ARN) for the group. This is used for
setting the cognito:roles and
cognito:preferred_role claims in the token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=
/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
roleArn -
The new role Amazon Resource Name (ARN) for the group. This is
used for setting the cognito:roles and
cognito:preferred_role claims in the token.
public java.lang.Integer getPrecedence()
The new precedence value for the group. For more information about this parameter, see CreateGroup.
Constraints:
Range: 0 -
The new precedence value for the group. For more information about this parameter, see CreateGroup.
public void setPrecedence(java.lang.Integer precedence)
The new precedence value for the group. For more information about this parameter, see CreateGroup.
Constraints:
Range: 0 -
precedence - The new precedence value for the group. For more information about this parameter, see CreateGroup.
public UpdateGroupRequest withPrecedence(java.lang.Integer precedence)
The new precedence value for the group. For more information about this parameter, see CreateGroup.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
precedence - The new precedence value for the group. For more information about this parameter, see CreateGroup.
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