Class CfnUserPoolPropsMixin.RecoveryOptionProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.cognito.mixins.CfnUserPoolPropsMixin.RecoveryOptionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPoolPropsMixin.RecoveryOptionProperty>
- Enclosing interface:
CfnUserPoolPropsMixin.RecoveryOptionProperty
@Stability(Stable)
public static final class CfnUserPoolPropsMixin.RecoveryOptionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPoolPropsMixin.RecoveryOptionProperty>
A builder for
CfnUserPoolPropsMixin.RecoveryOptionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnUserPoolPropsMixin.RecoveryOptionProperty.getName()Sets the value ofCfnUserPoolPropsMixin.RecoveryOptionProperty.getPriority()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnUserPoolPropsMixin.RecoveryOptionProperty.getName()- Parameters:
name- The recovery method that this object sets a recovery option for.- Returns:
this
-
priority
@Stability(Stable) public CfnUserPoolPropsMixin.RecoveryOptionProperty.Builder priority(Number priority) Sets the value ofCfnUserPoolPropsMixin.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<CfnUserPoolPropsMixin.RecoveryOptionProperty>- Returns:
- a new instance of
CfnUserPoolPropsMixin.RecoveryOptionProperty - Throws:
NullPointerException- if any required attribute was not provided
-