public static final class StringAttribute.Builder
extends java.lang.Object
StringAttribute
.Modifier and Type | Method and Description |
---|---|
StringAttribute |
build() |
static StringAttribute.Builder |
create() |
StringAttribute.Builder |
maxLen(java.lang.Number maxLen)
Maximum length of this attribute.
|
StringAttribute.Builder |
minLen(java.lang.Number minLen)
Minimum length of this attribute.
|
StringAttribute.Builder |
mutable(java.lang.Boolean mutable)
Specifies whether the value of the attribute can be changed.
|
public static StringAttribute.Builder create()
StringAttribute.Builder
.public StringAttribute.Builder maxLen(java.lang.Number maxLen)
Default: 2048
maxLen
- Maximum length of this attribute. This parameter is required.this
public StringAttribute.Builder minLen(java.lang.Number minLen)
Default: 0
minLen
- Minimum length of this attribute. This parameter is required.this
public StringAttribute.Builder mutable(java.lang.Boolean mutable)
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.
Default: false
mutable
- Specifies whether the value of the attribute can be changed. This parameter is required.this
public StringAttribute build()