Class CfnUserPool.RecoveryOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.RecoveryOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.RecoveryOptionProperty>
- Enclosing interface:
CfnUserPool.RecoveryOptionProperty
@Stability(Stable)
public static final class CfnUserPool.RecoveryOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.RecoveryOptionProperty>
A builder for
CfnUserPool.RecoveryOptionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnUserPool.RecoveryOptionProperty.getName()
Sets the value ofCfnUserPool.RecoveryOptionProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnUserPool.RecoveryOptionProperty.getName()
- Parameters:
name
- Specifies the recovery method for a user.- Returns:
this
-
priority
Sets the value ofCfnUserPool.RecoveryOptionProperty.getPriority()
- Parameters:
priority
- A positive integer specifying priority of a method with 1 being the highest priority.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPool.RecoveryOptionProperty>
- Returns:
- a new instance of
CfnUserPool.RecoveryOptionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-