public class GroupType
extends java.lang.Object
implements java.io.Serializable
The group type.
| Constructor and Description |
|---|
GroupType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCreationDate()
The date and time, in ISO
8601 format, when the item was created.
|
java.lang.String |
getDescription()
A string containing the description of the group.
|
java.lang.String |
getGroupName()
The name of the group.
|
java.util.Date |
getLastModifiedDate()
The date and time, in ISO
8601 format, when the item was modified.
|
java.lang.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.
|
java.lang.String |
getRoleArn()
The role Amazon Resource Name (ARN) for the group.
|
java.lang.String |
getUserPoolId()
The user pool ID for the user pool.
|
int |
hashCode() |
void |
setCreationDate(java.util.Date creationDate)
The date and time, in ISO
8601 format, when the item was created.
|
void |
setDescription(java.lang.String description)
A string containing the description of the group.
|
void |
setGroupName(java.lang.String groupName)
The name of the group.
|
void |
setLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
void |
setPrecedence(java.lang.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(java.lang.String roleArn)
The 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.
|
GroupType |
withCreationDate(java.util.Date creationDate)
The date and time, in ISO
8601 format, when the item was created.
|
GroupType |
withDescription(java.lang.String description)
A string containing the description of the group.
|
GroupType |
withGroupName(java.lang.String groupName)
The name of the group.
|
GroupType |
withLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO
8601 format, when the item was modified.
|
GroupType |
withPrecedence(java.lang.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.
|
GroupType |
withRoleArn(java.lang.String roleArn)
The role Amazon Resource Name (ARN) for the group.
|
GroupType |
withUserPoolId(java.lang.String userPoolId)
The user pool ID for the user pool.
|
public 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 GroupType 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 GroupType 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 description of the group.
Constraints:
Length: - 2048
A string containing the description of the group.
public void setDescription(java.lang.String description)
A string containing the description of the group.
Constraints:
Length: - 2048
description - A string containing the description of the group.
public GroupType withDescription(java.lang.String description)
A string containing the 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 description of the group.
public java.lang.String getRoleArn()
The role Amazon Resource Name (ARN) for the group.
Constraints:
Length: 20 - 2048
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=
/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
The role Amazon Resource Name (ARN) for the group.
public void setRoleArn(java.lang.String roleArn)
The role Amazon Resource Name (ARN) for the group.
Constraints:
Length: 20 - 2048
Pattern:
arn:[\w+=/,.@-]+:[\w+=/,.@-]+:([\w+=/,.@-]*)?:[0-9]+:[\w+=
/,.@-]+(:[\w+=/,.@-]+)?(:[\w+=/,.@-]+)?
roleArn - The role Amazon Resource Name (ARN) for the group.
public GroupType withRoleArn(java.lang.String roleArn)
The role Amazon Resource Name (ARN) for the group.
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 role Amazon Resource Name (ARN) for the group.
public java.lang.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
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.
Constraints:
Range: 0 -
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.
public void setPrecedence(java.lang.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.
Constraints:
Range: 0 -
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.
public GroupType withPrecedence(java.lang.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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
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.
public java.util.Date getLastModifiedDate()
The date and time, in ISO 8601 format, when the item was modified.
The date and time, in ISO 8601 format, when the item was modified.
public void setLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
lastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public GroupType withLastModifiedDate(java.util.Date lastModifiedDate)
The date and time, in ISO 8601 format, when the item was modified.
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date and time, in ISO 8601 format, when the item was modified.
public java.util.Date getCreationDate()
The date and time, in ISO 8601 format, when the item was created.
The date and time, in ISO 8601 format, when the item was created.
public void setCreationDate(java.util.Date creationDate)
The date and time, in ISO 8601 format, when the item was created.
creationDate - The date and time, in ISO 8601 format, when the item was created.
public GroupType withCreationDate(java.util.Date creationDate)
The date and time, in ISO 8601 format, when the item was created.
Returns a reference to this object so that method calls can be chained together.
creationDate - The date and time, in ISO 8601 format, when the item was created.
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