@Stability(value=Experimental) public static final class StandardAttribute.Builder extends Object implements software.amazon.jsii.Builder<StandardAttribute>
StandardAttribute
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StandardAttribute |
build()
Builds the configured instance.
|
StandardAttribute.Builder |
mutable(Boolean mutable)
Sets the value of
StandardAttribute.getMutable() |
StandardAttribute.Builder |
required(Boolean required)
Sets the value of
StandardAttribute.getRequired() |
@Stability(value=Experimental) public StandardAttribute.Builder mutable(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
@Stability(value=Experimental) public StandardAttribute.Builder required(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
@Stability(value=Experimental) public StandardAttribute build()
build
in interface software.amazon.jsii.Builder<StandardAttribute>
StandardAttribute
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.