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- The recovery method that this object sets a recovery option for.- Returns:
 this
 - 
priority
Sets the value ofCfnUserPool.RecoveryOptionProperty.getPriority()- Parameters:
 priority- Your priority preference for using the specified attribute in account recovery. The highest priority is1.- Returns:
 this
 - 
build
Builds the configured instance.- Specified by:
 buildin interfacesoftware.amazon.jsii.Builder<CfnUserPool.RecoveryOptionProperty>- Returns:
 - a new instance of 
CfnUserPool.RecoveryOptionProperty - Throws:
 NullPointerException- if any required attribute was not provided
 
 -