Class CfnUserPool.StringAttributeConstraintsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.StringAttributeConstraintsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.StringAttributeConstraintsProperty>
- Enclosing interface:
CfnUserPool.StringAttributeConstraintsProperty
@Stability(Stable)
public static final class CfnUserPool.StringAttributeConstraintsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.StringAttributeConstraintsProperty>
A builder for
CfnUserPool.StringAttributeConstraintsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserPool.StringAttributeConstraintsProperty.getMaxLength()
Sets the value ofCfnUserPool.StringAttributeConstraintsProperty.getMinLength()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxLength
@Stability(Stable) public CfnUserPool.StringAttributeConstraintsProperty.Builder maxLength(String maxLength) Sets the value ofCfnUserPool.StringAttributeConstraintsProperty.getMaxLength()
- Parameters:
maxLength
- The maximum length of a string attribute value. Must be a number less than or equal to2^1023
, represented as a string with a length of 131072 characters or fewer.- Returns:
this
-
minLength
@Stability(Stable) public CfnUserPool.StringAttributeConstraintsProperty.Builder minLength(String minLength) Sets the value ofCfnUserPool.StringAttributeConstraintsProperty.getMinLength()
- Parameters:
minLength
- The minimum length of a string attribute value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPool.StringAttributeConstraintsProperty>
- Returns:
- a new instance of
CfnUserPool.StringAttributeConstraintsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-