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