Class AuthFlow.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.AuthFlow.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<AuthFlow>
- Enclosing interface:
AuthFlow
@Stability(Stable)
public static final class AuthFlow.Builder
extends Object
implements software.amazon.jsii.Builder<AuthFlow>
A builder for
AuthFlow
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadminUserPassword
(Boolean adminUserPassword) Sets the value ofAuthFlow.getAdminUserPassword()
build()
Builds the configured instance.Sets the value ofAuthFlow.getCustom()
userPassword
(Boolean userPassword) Sets the value ofAuthFlow.getUserPassword()
Sets the value ofAuthFlow.getUserSrp()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adminUserPassword
Sets the value ofAuthFlow.getAdminUserPassword()
- Parameters:
adminUserPassword
- Enable admin based user password authentication flow.- Returns:
this
-
custom
Sets the value ofAuthFlow.getCustom()
- Parameters:
custom
- Enable custom authentication flow.- Returns:
this
-
userPassword
Sets the value ofAuthFlow.getUserPassword()
- Parameters:
userPassword
- Enable auth using username & password.- Returns:
this
-
userSrp
Sets the value ofAuthFlow.getUserSrp()
- Parameters:
userSrp
- Enable SRP based authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<AuthFlow>
- Returns:
- a new instance of
AuthFlow
- Throws:
NullPointerException
- if any required attribute was not provided
-