Class GroupType
- java.lang.Object
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.GroupType
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<GroupType.Builder,GroupType>
@Generated("software.amazon.awssdk:codegen") public final class GroupType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<GroupType.Builder,GroupType>
The group type.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGroupType.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GroupType.Builderbuilder()InstantcreationDate()The date and time when the item was created.Stringdescription()A string containing the description of the group.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)StringgroupName()The name of the group.inthashCode()InstantlastModifiedDate()The date and time when the item was modified.Integerprecedence()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.StringroleArn()The role Amazon Resource Name (ARN) for the group.List<SdkField<?>>sdkFields()static Class<? extends GroupType.Builder>serializableBuilderClass()GroupType.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserPoolId()The user pool ID for the user pool.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
groupName
public final String groupName()
The name of the group.
- Returns:
- The name of the group.
-
userPoolId
public final String userPoolId()
The user pool ID for the user pool.
- Returns:
- The user pool ID for the user pool.
-
description
public final String description()
A string containing the description of the group.
- Returns:
- A string containing the description of the group.
-
roleArn
public final String roleArn()
The role Amazon Resource Name (ARN) for the group.
- Returns:
- The role Amazon Resource Name (ARN) for the group.
-
precedence
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
Precedencevalues take precedence over groups with higher ornullPrecedencevalues. 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 thecognito:rolesandcognito:preferred_roleclaims.Two groups can have the same
Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the samePrecedencehave the same role ARN, that role is used in thecognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, thecognito:preferred_roleclaim isn't set in users' tokens.The default
Precedencevalue is null.- Returns:
- 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
Precedencevalues take precedence over groups with higher ornullPrecedencevalues. 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 thecognito:rolesandcognito:preferred_roleclaims.Two groups can have the same
Precedencevalue. If this happens, neither group takes precedence over the other. If two groups with the samePrecedencehave the same role ARN, that role is used in thecognito:preferred_roleclaim in tokens for users in each group. If the two groups have different role ARNs, thecognito:preferred_roleclaim isn't set in users' tokens.The default
Precedencevalue is null.
-
lastModifiedDate
public final Instant lastModifiedDate()
The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Dateobject.- Returns:
- The date and time when the item was modified. Amazon Cognito returns this timestamp in UNIX epoch time
format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Dateobject.
-
creationDate
public final Instant creationDate()
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Dateobject.- Returns:
- The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time
format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java
Dateobject.
-
toBuilder
public GroupType.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<GroupType.Builder,GroupType>
-
builder
public static GroupType.Builder builder()
-
serializableBuilderClass
public static Class<? extends GroupType.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-