Class KeepOriginalAttrs.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.KeepOriginalAttrs.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KeepOriginalAttrs>
- Enclosing interface:
KeepOriginalAttrs
@Stability(Stable)
public static final class KeepOriginalAttrs.Builder
extends Object
implements software.amazon.jsii.Builder<KeepOriginalAttrs>
A builder for
KeepOriginalAttrs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofKeepOriginalAttrs.getEmail()
Sets the value ofKeepOriginalAttrs.getPhone()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
email
Sets the value ofKeepOriginalAttrs.getEmail()
- Parameters:
email
- Whether the email address of the user should remain the original value until the new email address is verified.- Returns:
this
-
phone
Sets the value ofKeepOriginalAttrs.getPhone()
- Parameters:
phone
- Whether the phone number of the user should remain the original value until the new phone number is verified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<KeepOriginalAttrs>
- Returns:
- a new instance of
KeepOriginalAttrs
- Throws:
NullPointerException
- if any required attribute was not provided
-