Class StringAttributeConstraints.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.StringAttributeConstraints.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<StringAttributeConstraints>
- Enclosing interface:
StringAttributeConstraints
@Stability(Stable)
public static final class StringAttributeConstraints.Builder
extends Object
implements software.amazon.jsii.Builder<StringAttributeConstraints>
A builder for
StringAttributeConstraints
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofStringAttributeConstraints.getMaxLen()
Sets the value ofStringAttributeConstraints.getMinLen()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxLen
Sets the value ofStringAttributeConstraints.getMaxLen()
- Parameters:
maxLen
- Maximum length of this attribute.- Returns:
this
-
minLen
Sets the value ofStringAttributeConstraints.getMinLen()
- Parameters:
minLen
- Minimum length of this attribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<StringAttributeConstraints>
- Returns:
- a new instance of
StringAttributeConstraints
- Throws:
NullPointerException
- if any required attribute was not provided
-