Class UserPoolDomainOptions.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolDomainOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolDomainOptions>
- Enclosing interface:
UserPoolDomainOptions
@Stability(Stable)
public static final class UserPoolDomainOptions.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolDomainOptions>
A builder for
UserPoolDomainOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cognitoDomain(CognitoDomainOptions cognitoDomain) Sets the value ofUserPoolDomainOptions.getCognitoDomain()customDomain(CustomDomainOptions customDomain) Sets the value ofUserPoolDomainOptions.getCustomDomain()managedLoginVersion(ManagedLoginVersion managedLoginVersion) Sets the value ofUserPoolDomainOptions.getManagedLoginVersion()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cognitoDomain
@Stability(Stable) public UserPoolDomainOptions.Builder cognitoDomain(CognitoDomainOptions cognitoDomain) Sets the value ofUserPoolDomainOptions.getCognitoDomain()- Parameters:
cognitoDomain- Associate a cognito prefix domain with your user pool EithercustomDomainorcognitoDomainmust be specified.- Returns:
this
-
customDomain
@Stability(Stable) public UserPoolDomainOptions.Builder customDomain(CustomDomainOptions customDomain) Sets the value ofUserPoolDomainOptions.getCustomDomain()- Parameters:
customDomain- Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.- Returns:
this
-
managedLoginVersion
@Stability(Stable) public UserPoolDomainOptions.Builder managedLoginVersion(ManagedLoginVersion managedLoginVersion) Sets the value ofUserPoolDomainOptions.getManagedLoginVersion()- Parameters:
managedLoginVersion- A version that indicates the state of managed login. This choice applies to all app clients that host services at the domain.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserPoolDomainOptions>- Returns:
- a new instance of
UserPoolDomainOptions - Throws:
NullPointerException- if any required attribute was not provided
-