@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 final String name()
A schema attribute of the name type.
public final 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 final 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 final 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.
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 final Boolean mutable()
Specifies whether the value of the attribute can be changed.
For any user pool attribute that is mapped to an IdP attribute, you must set this parameter to 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.
For any user pool attribute that is mapped to an IdP attribute, you must set this parameter to
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 final 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.
public final NumberAttributeConstraintsType numberAttributeConstraints()
Specifies the constraints for an attribute of the number type.
public final 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 final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.