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
-
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()
-
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 EithercustomDomain
orcognitoDomain
must 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 EithercustomDomain
orcognitoDomain
must be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<UserPoolDomainOptions>
- Returns:
- a new instance of
UserPoolDomainOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-