public static final class CustomAttributeConfig.Builder
extends java.lang.Object
CustomAttributeConfig
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CustomAttributeConfig |
build()
Builds the configured instance.
|
CustomAttributeConfig.Builder |
dataType(java.lang.String dataType)
Sets the value of
CustomAttributeConfig.getDataType() |
CustomAttributeConfig.Builder |
mutable(java.lang.Boolean mutable)
Sets the value of
CustomAttributeConfig.getMutable() |
CustomAttributeConfig.Builder |
numberConstraints(NumberAttributeConstraints numberConstraints)
Sets the value of
CustomAttributeConfig.getNumberConstraints() |
CustomAttributeConfig.Builder |
stringConstraints(StringAttributeConstraints stringConstraints)
Sets the value of
CustomAttributeConfig.getStringConstraints() |
public CustomAttributeConfig.Builder dataType(java.lang.String dataType)
CustomAttributeConfig.getDataType()
dataType
- The data type of the custom attribute. This parameter is required.this
public CustomAttributeConfig.Builder mutable(java.lang.Boolean mutable)
CustomAttributeConfig.getMutable()
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.this
public CustomAttributeConfig.Builder numberConstraints(NumberAttributeConstraints numberConstraints)
CustomAttributeConfig.getNumberConstraints()
numberConstraints
- The constraints for a custom attribute of the 'Number' data type.this
public CustomAttributeConfig.Builder stringConstraints(StringAttributeConstraints stringConstraints)
CustomAttributeConfig.getStringConstraints()
stringConstraints
- The constraints for a custom attribute of 'String' data type.this
public CustomAttributeConfig build()
CustomAttributeConfig
java.lang.NullPointerException
- if any required attribute was not provided