public static final class StandardAttribute.Builder
extends java.lang.Object
StandardAttribute
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StandardAttribute |
build()
Builds the configured instance.
|
StandardAttribute.Builder |
mutable(java.lang.Boolean mutable)
Sets the value of
StandardAttribute.getMutable() |
StandardAttribute.Builder |
required(java.lang.Boolean required)
Sets the value of
StandardAttribute.getRequired() |
public StandardAttribute.Builder mutable(java.lang.Boolean mutable)
StandardAttribute.getMutable()
mutable
- Specifies whether the value of the attribute can be changed.
For any user pool attribute that's mapped to an identity provider attribute, this must be set 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.this
public StandardAttribute.Builder required(java.lang.Boolean required)
StandardAttribute.getRequired()
required
- Specifies whether the attribute is required upon user registration.
If the attribute is required and the user does not provide a value, registration or sign-in will fail.this
public StandardAttribute build()
StandardAttribute
java.lang.NullPointerException
- if any required attribute was not provided