public static final class NumberAttributeProps.Builder
extends java.lang.Object
NumberAttributeProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NumberAttributeProps |
build()
Builds the configured instance.
|
NumberAttributeProps.Builder |
max(java.lang.Number max)
Sets the value of
NumberAttributeConstraints.getMax() |
NumberAttributeProps.Builder |
min(java.lang.Number min)
Sets the value of
NumberAttributeConstraints.getMin() |
NumberAttributeProps.Builder |
mutable(java.lang.Boolean mutable)
Sets the value of
CustomAttributeProps.getMutable() |
public NumberAttributeProps.Builder max(java.lang.Number max)
NumberAttributeConstraints.getMax()
max
- Maximum value of this attribute.this
public NumberAttributeProps.Builder min(java.lang.Number min)
NumberAttributeConstraints.getMin()
min
- Minimum value of this attribute.this
public NumberAttributeProps.Builder mutable(java.lang.Boolean mutable)
CustomAttributeProps.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, 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.this
public NumberAttributeProps build()
NumberAttributeProps
java.lang.NullPointerException
- if any required attribute was not provided