public class SchemaAttributeType
extends java.lang.Object
implements java.io.Serializable
A list of the user attributes and their properties in your user pool. The
attribute schema contains standard attributes, custom attributes with a
custom: prefix, and developer attributes with a
dev: prefix. For more information, see User pool attributes.
Developer-only attributes are a legacy feature of user pools, are read-only to all app clients. You can create and update developer-only attributes only with IAM-authenticated API operations. Use app client read/write permissions instead.
| Constructor and Description |
|---|
SchemaAttributeType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAttributeDataType()
The data format of the values for your attribute.
|
java.lang.Boolean |
getDeveloperOnlyAttribute()
|
java.lang.Boolean |
getMutable()
Specifies whether the value of the attribute can be changed.
|
java.lang.String |
getName()
The name of your user pool attribute, for example
username
or custom:costcenter. |
NumberAttributeConstraintsType |
getNumberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
|
java.lang.Boolean |
getRequired()
Specifies whether a user pool attribute is required.
|
StringAttributeConstraintsType |
getStringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
|
int |
hashCode() |
java.lang.Boolean |
isDeveloperOnlyAttribute()
|
java.lang.Boolean |
isMutable()
Specifies whether the value of the attribute can be changed.
|
java.lang.Boolean |
isRequired()
Specifies whether a user pool attribute is required.
|
void |
setAttributeDataType(AttributeDataType attributeDataType)
The data format of the values for your attribute.
|
void |
setAttributeDataType(java.lang.String attributeDataType)
The data format of the values for your attribute.
|
void |
setDeveloperOnlyAttribute(java.lang.Boolean developerOnlyAttribute)
|
void |
setMutable(java.lang.Boolean mutable)
Specifies whether the value of the attribute can be changed.
|
void |
setName(java.lang.String name)
The name of your user pool attribute, for example
username
or custom:costcenter. |
void |
setNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
|
void |
setRequired(java.lang.Boolean required)
Specifies whether a user pool attribute is required.
|
void |
setStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SchemaAttributeType |
withAttributeDataType(AttributeDataType attributeDataType)
The data format of the values for your attribute.
|
SchemaAttributeType |
withAttributeDataType(java.lang.String attributeDataType)
The data format of the values for your attribute.
|
SchemaAttributeType |
withDeveloperOnlyAttribute(java.lang.Boolean developerOnlyAttribute)
|
SchemaAttributeType |
withMutable(java.lang.Boolean mutable)
Specifies whether the value of the attribute can be changed.
|
SchemaAttributeType |
withName(java.lang.String name)
The name of your user pool attribute, for example
username
or custom:costcenter. |
SchemaAttributeType |
withNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
|
SchemaAttributeType |
withRequired(java.lang.Boolean required)
Specifies whether a user pool attribute is required.
|
SchemaAttributeType |
withStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
|
public java.lang.String getName()
The name of your user pool attribute, for example username
or custom:costcenter.
Constraints:
Length: 1 - 20
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
The name of your user pool attribute, for example
username or custom:costcenter.
public void setName(java.lang.String name)
The name of your user pool attribute, for example username
or custom:costcenter.
Constraints:
Length: 1 - 20
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
name -
The name of your user pool attribute, for example
username or custom:costcenter.
public SchemaAttributeType withName(java.lang.String name)
The name of your user pool attribute, for example username
or custom:costcenter.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 20
Pattern: [\p{L}\p{M}\p{S}\p{N}\p{P}]+
name -
The name of your user pool attribute, for example
username or custom:costcenter.
public java.lang.String getAttributeDataType()
The data format of the values for your attribute.
Constraints:
Allowed Values: String, Number, DateTime, Boolean
The data format of the values for your attribute.
AttributeDataTypepublic void setAttributeDataType(java.lang.String attributeDataType)
The data format of the values for your attribute.
Constraints:
Allowed Values: String, Number, DateTime, Boolean
attributeDataType - The data format of the values for your attribute.
AttributeDataTypepublic SchemaAttributeType withAttributeDataType(java.lang.String attributeDataType)
The data format of the values for your attribute.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: String, Number, DateTime, Boolean
attributeDataType - The data format of the values for your attribute.
AttributeDataTypepublic void setAttributeDataType(AttributeDataType attributeDataType)
The data format of the values for your attribute.
Constraints:
Allowed Values: String, Number, DateTime, Boolean
attributeDataType - The data format of the values for your attribute.
AttributeDataTypepublic SchemaAttributeType withAttributeDataType(AttributeDataType attributeDataType)
The data format of the values for your attribute.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: String, Number, DateTime, Boolean
attributeDataType - The data format of the values for your attribute.
AttributeDataTypepublic java.lang.Boolean isDeveloperOnlyAttribute()
You should use WriteAttributes in the user pool client to control how attributes
can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This attribute
can only be modified by an administrator. Users won't be able to modify
this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using
AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
You should use WriteAttributes in the user pool client to control how
attributes can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This
attribute can only be modified by an administrator. Users won't
be able to modify this attribute using their access token. For
example, DeveloperOnlyAttribute can be modified
using AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
public java.lang.Boolean getDeveloperOnlyAttribute()
You should use WriteAttributes in the user pool client to control how attributes
can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This attribute
can only be modified by an administrator. Users won't be able to modify
this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using
AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
You should use WriteAttributes in the user pool client to control how
attributes can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This
attribute can only be modified by an administrator. Users won't
be able to modify this attribute using their access token. For
example, DeveloperOnlyAttribute can be modified
using AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
public void setDeveloperOnlyAttribute(java.lang.Boolean developerOnlyAttribute)
You should use WriteAttributes in the user pool client to control how attributes
can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This attribute
can only be modified by an administrator. Users won't be able to modify
this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using
AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
developerOnlyAttribute -
You should use WriteAttributes in the user pool client to control how
attributes can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This
attribute can only be modified by an administrator. Users
won't be able to modify this attribute using their access
token. For example, DeveloperOnlyAttribute can be
modified using AdminUpdateUserAttributes but can't be updated
using UpdateUserAttributes.
public SchemaAttributeType withDeveloperOnlyAttribute(java.lang.Boolean developerOnlyAttribute)
You should use WriteAttributes in the user pool client to control how attributes
can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This attribute
can only be modified by an administrator. Users won't be able to modify
this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using
AdminUpdateUserAttributes but can't be updated using
UpdateUserAttributes.
Returns a reference to this object so that method calls can be chained together.
developerOnlyAttribute -
You should use WriteAttributes in the user pool client to control how
attributes can be mutated for new use cases instead of using
DeveloperOnlyAttribute.
Specifies whether the attribute type is developer only. This
attribute can only be modified by an administrator. Users
won't be able to modify this attribute using their access
token. For example, DeveloperOnlyAttribute can be
modified using AdminUpdateUserAttributes but can't be updated
using UpdateUserAttributes.
public java.lang.Boolean isMutable()
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute must be
mutable, with a parameter value of true. Amazon Cognito
updates mapped attributes when users sign in to your application through
an IdP. If an attribute is immutable, Amazon Cognito throws an error when
it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute
must be mutable, with a parameter value of true.
Amazon Cognito updates mapped attributes when users sign in to
your application through an IdP. If an attribute is immutable,
Amazon Cognito throws an error when it attempts to update the
attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User
Pool.
public java.lang.Boolean getMutable()
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute must be
mutable, with a parameter value of true. Amazon Cognito
updates mapped attributes when users sign in to your application through
an IdP. If an attribute is immutable, Amazon Cognito throws an error when
it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute
must be mutable, with a parameter value of true.
Amazon Cognito updates mapped attributes when users sign in to
your application through an IdP. If an attribute is immutable,
Amazon Cognito throws an error when it attempts to update the
attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User
Pool.
public void setMutable(java.lang.Boolean mutable)
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute must be
mutable, with a parameter value of true. Amazon Cognito
updates mapped attributes when users sign in to your application through
an IdP. If an attribute is immutable, Amazon Cognito throws an error when
it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
mutable - Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP
attribute must be mutable, with a parameter value of
true. Amazon Cognito updates mapped attributes
when users sign in to your application through an IdP. If an
attribute is immutable, Amazon Cognito throws an error when it
attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User
Pool.
public SchemaAttributeType withMutable(java.lang.Boolean mutable)
Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP attribute must be
mutable, with a parameter value of true. Amazon Cognito
updates mapped attributes when users sign in to your application through
an IdP. If an attribute is immutable, Amazon Cognito throws an error when
it attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User Pool.
Returns a reference to this object so that method calls can be chained together.
mutable - Specifies whether the value of the attribute can be changed.
Any user pool attribute whose value you map from an IdP
attribute must be mutable, with a parameter value of
true. Amazon Cognito updates mapped attributes
when users sign in to your application through an IdP. If an
attribute is immutable, Amazon Cognito throws an error when it
attempts to update the attribute. For more information, see Specifying Identity Provider Attribute Mappings for Your User
Pool.
public java.lang.Boolean isRequired()
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
public java.lang.Boolean getRequired()
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
public void setRequired(java.lang.Boolean required)
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
required - Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
public SchemaAttributeType withRequired(java.lang.Boolean required)
Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
Returns a reference to this object so that method calls can be chained together.
required - Specifies whether a user pool attribute is required. If the attribute is required and the user doesn't provide a value, registration or sign-in will fail.
public NumberAttributeConstraintsType getNumberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
Specifies the constraints for an attribute of the number type.
public void setNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
numberAttributeConstraints - Specifies the constraints for an attribute of the number type.
public SchemaAttributeType withNumberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
Returns a reference to this object so that method calls can be chained together.
numberAttributeConstraints - Specifies the constraints for an attribute of the number type.
public StringAttributeConstraintsType getStringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
Specifies the constraints for an attribute of the string type.
public void setStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
stringAttributeConstraints - Specifies the constraints for an attribute of the string type.
public SchemaAttributeType withStringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
Returns a reference to this object so that method calls can be chained together.
stringAttributeConstraints - Specifies the constraints for an attribute of the string type.
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