public class CreateUserPoolDomainRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a new domain for a user pool.
Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy.
Learn more
| Constructor and Description |
|---|
CreateUserPoolDomainRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
CustomDomainConfigType |
getCustomDomainConfig()
The configuration for a custom domain that hosts the sign-up and sign-in
webpages for your application.
|
java.lang.String |
getDomain()
The domain string.
|
java.lang.String |
getUserPoolId()
The user pool ID.
|
int |
hashCode() |
void |
setCustomDomainConfig(CustomDomainConfigType customDomainConfig)
The configuration for a custom domain that hosts the sign-up and sign-in
webpages for your application.
|
void |
setDomain(java.lang.String domain)
The domain string.
|
void |
setUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateUserPoolDomainRequest |
withCustomDomainConfig(CustomDomainConfigType customDomainConfig)
The configuration for a custom domain that hosts the sign-up and sign-in
webpages for your application.
|
CreateUserPoolDomainRequest |
withDomain(java.lang.String domain)
The domain string.
|
CreateUserPoolDomainRequest |
withUserPoolId(java.lang.String userPoolId)
The user pool ID.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getDomain()
The domain string. For custom domains, this is the fully-qualified domain
name, such as auth.example.com. For Amazon Cognito prefix
domains, this is the prefix alone, such as auth.
Constraints:
Length: 1 - 63
Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
The domain string. For custom domains, this is the
fully-qualified domain name, such as
auth.example.com. For Amazon Cognito prefix domains,
this is the prefix alone, such as auth.
public void setDomain(java.lang.String domain)
The domain string. For custom domains, this is the fully-qualified domain
name, such as auth.example.com. For Amazon Cognito prefix
domains, this is the prefix alone, such as auth.
Constraints:
Length: 1 - 63
Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
domain -
The domain string. For custom domains, this is the
fully-qualified domain name, such as
auth.example.com. For Amazon Cognito prefix
domains, this is the prefix alone, such as auth.
public CreateUserPoolDomainRequest withDomain(java.lang.String domain)
The domain string. For custom domains, this is the fully-qualified domain
name, such as auth.example.com. For Amazon Cognito prefix
domains, this is the prefix alone, such as auth.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 63
Pattern: ^[a-z0-9](?:[a-z0-9\-]{0,61}[a-z0-9])?$
domain -
The domain string. For custom domains, this is the
fully-qualified domain name, such as
auth.example.com. For Amazon Cognito prefix
domains, this is the prefix alone, such as auth.
public java.lang.String getUserPoolId()
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
The user pool ID.
public void setUserPoolId(java.lang.String userPoolId)
The user pool ID.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public CreateUserPoolDomainRequest withUserPoolId(java.lang.String userPoolId)
The user pool ID.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 55
Pattern: [\w-]+_[0-9a-zA-Z]+
userPoolId - The user pool ID.
public CustomDomainConfigType getCustomDomainConfig()
The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
public void setCustomDomainConfig(CustomDomainConfigType customDomainConfig)
The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
customDomainConfig - The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
public CreateUserPoolDomainRequest withCustomDomainConfig(CustomDomainConfigType customDomainConfig)
The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
Returns a reference to this object so that method calls can be chained together.
customDomainConfig - The configuration for a custom domain that hosts the sign-up and sign-in webpages for your application.
Provide this parameter only if you want to use a custom domain for your user pool. Otherwise, you can exclude this parameter and use the Amazon Cognito hosted domain instead.
For more information about the hosted domain and custom domains, see Configuring a User Pool Domain.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object