Class UserPoolDomainProps.Builder
java.lang.Object
software.amazon.awscdk.services.cognito.UserPoolDomainProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<UserPoolDomainProps>
- Enclosing interface:
- UserPoolDomainProps
@Stability(Stable)
public static final class UserPoolDomainProps.Builder
extends Object
implements software.amazon.jsii.Builder<UserPoolDomainProps>
A builder for
UserPoolDomainProps-
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()Sets the value ofUserPoolDomainProps.getUserPool()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
userPool
Sets the value ofUserPoolDomainProps.getUserPool()- Parameters:
userPool- The user pool to which this domain should be associated. This parameter is required.- Returns:
this
-
cognitoDomain
@Stability(Stable) public UserPoolDomainProps.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 UserPoolDomainProps.Builder customDomain(CustomDomainOptions customDomain) Sets the value ofUserPoolDomainOptions.getCustomDomain()- Parameters:
customDomain- Associate a custom domain with your user pool EithercustomDomainorcognitoDomainmust be specified.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<UserPoolDomainProps>- Returns:
- a new instance of
UserPoolDomainProps - Throws:
NullPointerException- if any required attribute was not provided
-