public static interface SchemaAttributeType.Builder extends SdkPojo, CopyableBuilder<SchemaAttributeType.Builder,SchemaAttributeType>
| Modifier and Type | Method and Description |
|---|---|
SchemaAttributeType.Builder |
attributeDataType(AttributeDataType attributeDataType)
The attribute data type.
|
SchemaAttributeType.Builder |
attributeDataType(String attributeDataType)
The attribute data type.
|
SchemaAttributeType.Builder |
developerOnlyAttribute(Boolean developerOnlyAttribute)
|
SchemaAttributeType.Builder |
mutable(Boolean mutable)
Specifies whether the value of the attribute can be changed.
|
SchemaAttributeType.Builder |
name(String name)
A schema attribute of the name type.
|
default SchemaAttributeType.Builder |
numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
|
SchemaAttributeType.Builder |
numberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
|
SchemaAttributeType.Builder |
required(Boolean required)
Specifies whether a user pool attribute is required.
|
default SchemaAttributeType.Builder |
stringAttributeConstraints(Consumer<StringAttributeConstraintsType.Builder> stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
|
SchemaAttributeType.Builder |
stringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSchemaAttributeType.Builder name(String name)
A schema attribute of the name type.
name - A schema attribute of the name type.SchemaAttributeType.Builder attributeDataType(String attributeDataType)
The attribute data type.
attributeDataType - The attribute data type.AttributeDataType,
AttributeDataTypeSchemaAttributeType.Builder attributeDataType(AttributeDataType attributeDataType)
The attribute data type.
attributeDataType - The attribute data type.AttributeDataType,
AttributeDataTypeSchemaAttributeType.Builder developerOnlyAttribute(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.
SchemaAttributeType.Builder mutable(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.
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.
SchemaAttributeType.Builder required(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.SchemaAttributeType.Builder numberAttributeConstraints(NumberAttributeConstraintsType numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
numberAttributeConstraints - Specifies the constraints for an attribute of the number type.default SchemaAttributeType.Builder numberAttributeConstraints(Consumer<NumberAttributeConstraintsType.Builder> numberAttributeConstraints)
Specifies the constraints for an attribute of the number type.
This is a convenience method that creates an instance of theNumberAttributeConstraintsType.Builder
avoiding the need to create one manually via NumberAttributeConstraintsType.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to numberAttributeConstraints(NumberAttributeConstraintsType).numberAttributeConstraints - a consumer that will call methods on NumberAttributeConstraintsType.BuildernumberAttributeConstraints(NumberAttributeConstraintsType)SchemaAttributeType.Builder stringAttributeConstraints(StringAttributeConstraintsType stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
stringAttributeConstraints - Specifies the constraints for an attribute of the string type.default SchemaAttributeType.Builder stringAttributeConstraints(Consumer<StringAttributeConstraintsType.Builder> stringAttributeConstraints)
Specifies the constraints for an attribute of the string type.
This is a convenience method that creates an instance of theStringAttributeConstraintsType.Builder
avoiding the need to create one manually via StringAttributeConstraintsType.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to stringAttributeConstraints(StringAttributeConstraintsType).stringAttributeConstraints - a consumer that will call methods on StringAttributeConstraintsType.BuilderstringAttributeConstraints(StringAttributeConstraintsType)Copyright © 2022. All rights reserved.