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