@Generated(value="software.amazon.awssdk:codegen") public final class CreateGroupRequest extends CognitoIdentityProviderRequest implements ToCopyableBuilder<CreateGroupRequest.Builder,CreateGroupRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
CreateGroupRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateGroupRequest.Builder |
builder() |
String |
description()
A string containing the description of the group.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
groupName()
The name of the group.
|
int |
hashCode() |
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.
|
String |
roleArn()
The role Amazon Resource Name (ARN) for the group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateGroupRequest.Builder> |
serializableBuilderClass() |
CreateGroupRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
userPoolId()
The user pool ID for the user pool.
|
overrideConfiguration
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String groupName()
The name of the group. Must be unique.
public final String userPoolId()
The user pool ID for the user pool.
public final String description()
A string containing the description of the group.
public final String roleArn()
The role Amazon Resource Name (ARN) for the group.
public final 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 ornull 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.
Precedence
values take precedence over groups with higher ornull 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.
public CreateGroupRequest.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<CreateGroupRequest.Builder,CreateGroupRequest>
toBuilder
in class CognitoIdentityProviderRequest
public static CreateGroupRequest.Builder builder()
public static Class<? extends CreateGroupRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode
in class AwsRequest
public final boolean equals(Object obj)
equals
in class AwsRequest
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkRequest
Copyright © 2022. All rights reserved.