@Generated(value="software.amazon.awssdk:codegen") public final class CreateUserPoolRequest extends CognitoIdentityProviderRequest implements ToCopyableBuilder<CreateUserPoolRequest.Builder,CreateUserPoolRequest>
Represents the request to create a user pool.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateUserPoolRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
AccountRecoverySettingType |
accountRecoverySetting()
Use this setting to define which verified available method a user can use to recover their password when they
call
ForgotPassword. |
AdminCreateUserConfigType |
adminCreateUserConfig()
The configuration for
AdminCreateUser requests. |
List<AliasAttributeType> |
aliasAttributes()
Attributes supported as an alias for this user pool.
|
List<String> |
aliasAttributesAsStrings()
Attributes supported as an alias for this user pool.
|
List<VerifiedAttributeType> |
autoVerifiedAttributes()
The attributes to be auto-verified.
|
List<String> |
autoVerifiedAttributesAsStrings()
The attributes to be auto-verified.
|
static CreateUserPoolRequest.Builder |
builder() |
DeviceConfigurationType |
deviceConfiguration()
The device configuration.
|
EmailConfigurationType |
emailConfiguration()
The email configuration.
|
String |
emailVerificationMessage()
A string representing the email verification message.
|
String |
emailVerificationSubject()
A string representing the email verification subject.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAliasAttributes()
Returns true if the AliasAttributes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasAutoVerifiedAttributes()
Returns true if the AutoVerifiedAttributes property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasSchema()
Returns true if the Schema property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasUsernameAttributes()
Returns true if the UsernameAttributes property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasUserPoolTags()
Returns true if the UserPoolTags property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
LambdaConfigType |
lambdaConfig()
The Lambda trigger configuration information for the new user pool.
|
UserPoolMfaType |
mfaConfiguration()
Specifies MFA configuration details.
|
String |
mfaConfigurationAsString()
Specifies MFA configuration details.
|
UserPoolPolicyType |
policies()
The policies associated with the new user pool.
|
String |
poolName()
A string used to name the user pool.
|
List<SchemaAttributeType> |
schema()
An array of schema attributes for the new user pool.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateUserPoolRequest.Builder> |
serializableBuilderClass() |
String |
smsAuthenticationMessage()
A string representing the SMS authentication message.
|
SmsConfigurationType |
smsConfiguration()
The SMS configuration.
|
String |
smsVerificationMessage()
A string representing the SMS verification message.
|
CreateUserPoolRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
List<UsernameAttributeType> |
usernameAttributes()
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
|
List<String> |
usernameAttributesAsStrings()
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
|
UsernameConfigurationType |
usernameConfiguration()
You can choose to set case sensitivity on the username input for the selected sign-in option.
|
UserPoolAddOnsType |
userPoolAddOns()
Used to enable advanced security risk detection.
|
Map<String,String> |
userPoolTags()
The tag keys and values to assign to the user pool.
|
VerificationMessageTemplateType |
verificationMessageTemplate()
The template for the verification message that the user sees when the app requests permission to access the
user's information.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String poolName()
A string used to name the user pool.
public UserPoolPolicyType policies()
The policies associated with the new user pool.
public LambdaConfigType lambdaConfig()
The Lambda trigger configuration information for the new user pool.
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
In a push model, event sources (such as Amazon S3 and custom applications) need permission to invoke a function. So you will need to make an extra call to add permission for these event sources to invoke your Lambda function.
For more information on using the Lambda API to add permission, see AddPermission .
For adding permission using the AWS CLI, see add-permission .
public List<VerifiedAttributeType> autoVerifiedAttributes()
The attributes to be auto-verified. Possible values: email, phone_number.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAutoVerifiedAttributes() to see if a value was sent in this field.
public boolean hasAutoVerifiedAttributes()
public List<String> autoVerifiedAttributesAsStrings()
The attributes to be auto-verified. Possible values: email, phone_number.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAutoVerifiedAttributes() to see if a value was sent in this field.
public List<AliasAttributeType> aliasAttributes()
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAliasAttributes() to see if a value was sent in this field.
public boolean hasAliasAttributes()
public List<String> aliasAttributesAsStrings()
Attributes supported as an alias for this user pool. Possible values: phone_number, email, or preferred_username.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAliasAttributes() to see if a value was sent in this field.
public List<UsernameAttributeType> usernameAttributes()
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUsernameAttributes() to see if a value was sent in this field.
public boolean hasUsernameAttributes()
public List<String> usernameAttributesAsStrings()
Specifies whether email addresses or phone numbers can be specified as usernames when a user signs up.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUsernameAttributes() to see if a value was sent in this field.
public String smsVerificationMessage()
A string representing the SMS verification message.
public String emailVerificationMessage()
A string representing the email verification message.
public String emailVerificationSubject()
A string representing the email verification subject.
public VerificationMessageTemplateType verificationMessageTemplate()
The template for the verification message that the user sees when the app requests permission to access the user's information.
public String smsAuthenticationMessage()
A string representing the SMS authentication message.
public UserPoolMfaType mfaConfiguration()
Specifies MFA configuration details.
If the service returns an enum value that is not available in the current SDK version, mfaConfiguration
will return UserPoolMfaType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from mfaConfigurationAsString().
UserPoolMfaTypepublic String mfaConfigurationAsString()
Specifies MFA configuration details.
If the service returns an enum value that is not available in the current SDK version, mfaConfiguration
will return UserPoolMfaType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from mfaConfigurationAsString().
UserPoolMfaTypepublic DeviceConfigurationType deviceConfiguration()
The device configuration.
public EmailConfigurationType emailConfiguration()
The email configuration.
public SmsConfigurationType smsConfiguration()
The SMS configuration.
public boolean hasUserPoolTags()
public Map<String,String> userPoolTags()
The tag keys and values to assign to the user pool. A tag is a label that you can use to categorize and manage user pools in different ways, such as by purpose, owner, environment, or other criteria.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasUserPoolTags() to see if a value was sent in this field.
public AdminCreateUserConfigType adminCreateUserConfig()
The configuration for AdminCreateUser requests.
AdminCreateUser requests.public boolean hasSchema()
public List<SchemaAttributeType> schema()
An array of schema attributes for the new user pool. These attributes can be standard or custom attributes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasSchema() to see if a value was sent in this field.
public UserPoolAddOnsType userPoolAddOns()
Used to enable advanced security risk detection. Set the key AdvancedSecurityMode to the value
"AUDIT".
AdvancedSecurityMode to the
value "AUDIT".public UsernameConfigurationType usernameConfiguration()
You can choose to set case sensitivity on the username input for the selected sign-in option. For example, when
this is set to False, users will be able to sign in using either "username" or "Username". This
configuration is immutable once it has been set. For more information, see UsernameConfigurationType.
False, users will be able to sign in using either "username" or
"Username". This configuration is immutable once it has been set. For more information, see UsernameConfigurationType.public AccountRecoverySettingType accountRecoverySetting()
Use this setting to define which verified available method a user can use to recover their password when they
call ForgotPassword. It allows you to define a preferred method when a user has more than one method
available. With this setting, SMS does not qualify for a valid password recovery mechanism if the user also has
SMS MFA enabled. In the absence of this setting, Cognito uses the legacy behavior to determine the recovery
method where SMS is preferred over email.
ForgotPassword. It allows you to define a preferred method when a user has more
than one method available. With this setting, SMS does not qualify for a valid password recovery
mechanism if the user also has SMS MFA enabled. In the absence of this setting, Cognito uses the legacy
behavior to determine the recovery method where SMS is preferred over email.public CreateUserPoolRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateUserPoolRequest.Builder,CreateUserPoolRequest>toBuilder in class CognitoIdentityProviderRequestpublic static CreateUserPoolRequest.Builder builder()
public static Class<? extends CreateUserPoolRequest.Builder> serializableBuilderClass()
public int hashCode()
hashCode in class AwsRequestpublic boolean equals(Object obj)
equals in class AwsRequestpublic boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2020. All rights reserved.