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
Constructors -
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.- Returns:
this
-
minLength
@Stability(Stable) public CfnUserPool.StringAttributeConstraintsProperty.Builder minLength(String minLength) Sets the value ofCfnUserPool.StringAttributeConstraintsProperty.getMinLength()- Parameters:
minLength- The minimum length.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.StringAttributeConstraintsProperty>- Returns:
- a new instance of
CfnUserPool.StringAttributeConstraintsProperty - Throws:
NullPointerException- if any required attribute was not provided
-