Class StandardAttribute.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.StandardAttribute.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StandardAttribute>
- Enclosing interface:
StandardAttribute
@Stability(Stable)
public static final class StandardAttribute.Builder
extends Object
implements software.amazon.jsii.Builder<StandardAttribute>
A builder for
StandardAttribute
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofStandardAttribute.getMutable()
Sets the value ofStandardAttribute.getRequired()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
mutable
Sets the value ofStandardAttribute.getMutable()
- Parameters:
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 totrue
. 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.- Returns:
this
-
required
Sets the value ofStandardAttribute.getRequired()
- Parameters:
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.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StandardAttribute>
- Returns:
- a new instance of
StandardAttribute
- Throws:
NullPointerException
- if any required attribute was not provided
-