Class CfnUserPool.PoliciesProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.CfnUserPool.PoliciesProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnUserPool.PoliciesProperty>
- Enclosing interface:
- CfnUserPool.PoliciesProperty
@Stability(Stable)
public static final class CfnUserPool.PoliciesProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnUserPool.PoliciesProperty>
A builder for
CfnUserPool.PoliciesProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.passwordPolicy
(IResolvable passwordPolicy) Sets the value ofCfnUserPool.PoliciesProperty.getPasswordPolicy()
passwordPolicy
(CfnUserPool.PasswordPolicyProperty passwordPolicy) Sets the value ofCfnUserPool.PoliciesProperty.getPasswordPolicy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
passwordPolicy
@Stability(Stable) public CfnUserPool.PoliciesProperty.Builder passwordPolicy(IResolvable passwordPolicy) Sets the value ofCfnUserPool.PoliciesProperty.getPasswordPolicy()
- Parameters:
passwordPolicy
- The password policy.- Returns:
this
-
passwordPolicy
@Stability(Stable) public CfnUserPool.PoliciesProperty.Builder passwordPolicy(CfnUserPool.PasswordPolicyProperty passwordPolicy) Sets the value ofCfnUserPool.PoliciesProperty.getPasswordPolicy()
- Parameters:
passwordPolicy
- The password policy.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnUserPool.PoliciesProperty>
- Returns:
- a new instance of
CfnUserPool.PoliciesProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-