Class CfnUserPool.UserAttributeUpdateSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.UserAttributeUpdateSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.UserAttributeUpdateSettingsProperty>
- Enclosing interface:
- CfnUserPool.UserAttributeUpdateSettingsProperty
@Stability(Stable)
public static final class CfnUserPool.UserAttributeUpdateSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.UserAttributeUpdateSettingsProperty>
A builder for
CfnUserPool.UserAttributeUpdateSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributesRequireVerificationBeforeUpdate(List<String> attributesRequireVerificationBeforeUpdate) build()Builds the configured instance.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
attributesRequireVerificationBeforeUpdate
@Stability(Stable) public CfnUserPool.UserAttributeUpdateSettingsProperty.Builder attributesRequireVerificationBeforeUpdate(List<String> attributesRequireVerificationBeforeUpdate) Sets the value ofCfnUserPool.UserAttributeUpdateSettingsProperty.getAttributesRequireVerificationBeforeUpdate()- Parameters:
attributesRequireVerificationBeforeUpdate- Requires that your user verifies their email address, phone number, or both before Amazon Cognito updates the value of that attribute. This parameter is required. When you update a user attribute that has this option activated, Amazon Cognito sends a verification message to the new phone number or email address. Amazon Cognito doesn’t change the value of the attribute until your user responds to the verification message and confirms the new value.You can verify an updated email address or phone number with a VerifyUserAttribute API request. You can also call the AdminUpdateUserAttributes API and set
email_verifiedorphone_number_verifiedto true.When
AttributesRequireVerificationBeforeUpdateis false, your user pool doesn't require that your users verify attribute changes before Amazon Cognito updates them. In a user pool whereAttributesRequireVerificationBeforeUpdateis false, API operations that change attribute values can immediately update a user’semailorphone_numberattribute.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.UserAttributeUpdateSettingsProperty>- Returns:
- a new instance of
CfnUserPool.UserAttributeUpdateSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-