@Generated(value="software.amazon.awssdk:codegen") public final class SchemaAttributeType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<SchemaAttributeType.Builder,SchemaAttributeType>
Contains information about the schema attribute.
| Modifier and Type | Class and Description |
|---|---|
static interface |
SchemaAttributeType.Builder |
| Modifier and Type | Method and Description |
|---|---|
AttributeDataType |
attributeDataType()
The attribute data type.
|
String |
attributeDataTypeAsString()
The attribute data type.
|
static SchemaAttributeType.Builder |
builder() |
Boolean |
developerOnlyAttribute()
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
mutable()
Specifies whether the value of the attribute can be changed.
|
String |
name()
A schema attribute of the name type.
|
NumberAttributeConstraintsType |
numberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
|
Boolean |
required()
Specifies whether a user pool attribute is required.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends SchemaAttributeType.Builder> |
serializableBuilderClass() |
StringAttributeConstraintsType |
stringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
|
SchemaAttributeType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String name()
A schema attribute of the name type.
public AttributeDataType attributeDataType()
The attribute data type.
If the service returns an enum value that is not available in the current SDK version, attributeDataType
will return AttributeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from attributeDataTypeAsString().
AttributeDataTypepublic String attributeDataTypeAsString()
The attribute data type.
If the service returns an enum value that is not available in the current SDK version, attributeDataType
will return AttributeDataType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from attributeDataTypeAsString().
AttributeDataTypepublic Boolean developerOnlyAttribute()
We recommend that you 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 will not be able to modify this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes but cannot be updated using
UpdateUserAttributes.
We recommend that you 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 will not be able to modify this attribute using their access token. For example,
DeveloperOnlyAttribute can be modified using AdminUpdateUserAttributes but cannot be updated
using UpdateUserAttributes.
public Boolean mutable()
Specifies whether the value of the attribute can be changed.
For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter to
true. Amazon Cognito updates mapped attributes when users sign in to your application through an
identity provider. 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.
For any user pool attribute that's mapped to an identity provider attribute, you must set this parameter
to true. Amazon Cognito updates mapped attributes when users sign in to your application
through an identity provider. 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 Boolean required()
Specifies whether a user pool attribute is required. If the attribute is required and the user does not provide a value, registration or sign-in will fail.
public NumberAttributeConstraintsType numberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
public StringAttributeConstraintsType stringAttributeConstraints()
Specifies the constraints for an attribute of the string type.
public SchemaAttributeType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<SchemaAttributeType.Builder,SchemaAttributeType>public static SchemaAttributeType.Builder builder()
public static Class<? extends SchemaAttributeType.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.