@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateGroupRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateGroupRequest() |
Modifier and Type | Method and Description |
---|---|
CreateGroupRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getDescription()
A string containing the description of the group.
|
String |
getGroupName()
The name of the group.
|
Integer |
getPrecedence()
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool.
|
String |
getRoleArn()
The role Amazon Resource Name (ARN) for the group.
|
String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setDescription(String description)
A string containing the description of the group.
|
void |
setGroupName(String groupName)
The name of the group.
|
void |
setPrecedence(Integer precedence)
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool.
|
void |
setRoleArn(String roleArn)
The role Amazon Resource Name (ARN) for the group.
|
void |
setUserPoolId(String userPoolId)
The user pool ID for the user pool.
|
String |
toString()
Returns a string representation of this object.
|
CreateGroupRequest |
withDescription(String description)
A string containing the description of the group.
|
CreateGroupRequest |
withGroupName(String groupName)
The name of the group.
|
CreateGroupRequest |
withPrecedence(Integer precedence)
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool.
|
CreateGroupRequest |
withRoleArn(String roleArn)
The role Amazon Resource Name (ARN) for the group.
|
CreateGroupRequest |
withUserPoolId(String userPoolId)
The user pool ID for the user pool.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setGroupName(String groupName)
The name of the group. Must be unique.
groupName
- The name of the group. Must be unique.public String getGroupName()
The name of the group. Must be unique.
public CreateGroupRequest withGroupName(String groupName)
The name of the group. Must be unique.
groupName
- The name of the group. Must be unique.public void setUserPoolId(String userPoolId)
The user pool ID for the user pool.
userPoolId
- The user pool ID for the user pool.public String getUserPoolId()
The user pool ID for the user pool.
public CreateGroupRequest withUserPoolId(String userPoolId)
The user pool ID for the user pool.
userPoolId
- The user pool ID for the user pool.public void setDescription(String description)
A string containing the description of the group.
description
- A string containing the description of the group.public String getDescription()
A string containing the description of the group.
public CreateGroupRequest withDescription(String description)
A string containing the description of the group.
description
- A string containing the description of the group.public void setRoleArn(String roleArn)
The role Amazon Resource Name (ARN) for the group.
roleArn
- The role Amazon Resource Name (ARN) for the group.public String getRoleArn()
The role Amazon Resource Name (ARN) for the group.
public CreateGroupRequest withRoleArn(String roleArn)
The role Amazon Resource Name (ARN) for the group.
roleArn
- The role Amazon Resource Name (ARN) for the group.public void setPrecedence(Integer precedence)
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two
or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for
the cognito:roles
and cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes precedence over
the other. If two groups with the same Precedence
have the same role ARN, that role is used in the
cognito:preferred_role
claim in tokens for users in each group. If the two groups have different
role ARNs, the cognito:preferred_role
claim isn't set in users' tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
precedence
- A non-negative integer value that specifies the precedence of this group relative to the other groups that
a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower
Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose
role ARN is given in the user's tokens for the cognito:roles
and
cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes
precedence over the other. If two groups with the same Precedence
have the same role ARN,
that role is used in the cognito:preferred_role
claim in tokens for users in each group. If
the two groups have different role ARNs, the cognito:preferred_role
claim isn't set in users'
tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
public Integer getPrecedence()
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two
or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for
the cognito:roles
and cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes precedence over
the other. If two groups with the same Precedence
have the same role ARN, that role is used in the
cognito:preferred_role
claim in tokens for users in each group. If the two groups have different
role ARNs, the cognito:preferred_role
claim isn't set in users' tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose
role ARN is given in the user's tokens for the cognito:roles
and
cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes
precedence over the other. If two groups with the same Precedence
have the same role ARN,
that role is used in the cognito:preferred_role
claim in tokens for users in each group. If
the two groups have different role ARNs, the cognito:preferred_role
claim isn't set in
users' tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
public CreateGroupRequest withPrecedence(Integer precedence)
A non-negative integer value that specifies the precedence of this group relative to the other groups that a user
can belong to in the user pool. Zero is the highest precedence value. Groups with lower Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two
or more groups, it is the group with the lowest precedence value whose role ARN is given in the user's tokens for
the cognito:roles
and cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes precedence over
the other. If two groups with the same Precedence
have the same role ARN, that role is used in the
cognito:preferred_role
claim in tokens for users in each group. If the two groups have different
role ARNs, the cognito:preferred_role
claim isn't set in users' tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
precedence
- A non-negative integer value that specifies the precedence of this group relative to the other groups that
a user can belong to in the user pool. Zero is the highest precedence value. Groups with lower
Precedence
values take precedence over groups with higher or null Precedence
values. If a user belongs to two or more groups, it is the group with the lowest precedence value whose
role ARN is given in the user's tokens for the cognito:roles
and
cognito:preferred_role
claims.
Two groups can have the same Precedence
value. If this happens, neither group takes
precedence over the other. If two groups with the same Precedence
have the same role ARN,
that role is used in the cognito:preferred_role
claim in tokens for users in each group. If
the two groups have different role ARNs, the cognito:preferred_role
claim isn't set in users'
tokens.
The default Precedence
value is null. The maximum Precedence
value is
2^31-1
.
public String toString()
toString
in class Object
Object.toString()
public CreateGroupRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()