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