Class SetUserPoolMfaConfigRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.CognitoIdentityProviderRequest
-
- software.amazon.awssdk.services.cognitoidentityprovider.model.SetUserPoolMfaConfigRequest
-
- All Implemented Interfaces:
SdkPojo
,ToCopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetUserPoolMfaConfigRequest extends CognitoIdentityProviderRequest implements ToCopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SetUserPoolMfaConfigRequest.Builder
-
Method Summary
-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
userPoolId
public final String userPoolId()
The user pool ID.
- Returns:
- The user pool ID.
-
smsMfaConfiguration
public final SmsMfaConfigType smsMfaConfiguration()
Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
- Returns:
- Configures user pool SMS messages for MFA. Sets the message template and the SMS message sending configuration for Amazon SNS.
-
softwareTokenMfaConfiguration
public final SoftwareTokenMfaConfigType softwareTokenMfaConfiguration()
Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
- Returns:
- Configures a user pool for time-based one-time password (TOTP) MFA. Enables or disables TOTP.
-
emailMfaConfiguration
public final EmailMfaConfigType emailMfaConfiguration()
Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.
- Returns:
- Configures user pool email messages for MFA. Sets the subject and body of the email message template for MFA messages. To activate this setting, advanced security features must be active in your user pool.
-
mfaConfiguration
public final UserPoolMfaType mfaConfiguration()
The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFF
MFA won't be used for any users. -
ON
MFA is required for all users to sign in. -
OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
If the service returns an enum value that is not available in the current SDK version,
mfaConfiguration
will returnUserPoolMfaType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommfaConfigurationAsString()
.- Returns:
- The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA
factor can sign in. To learn more, see Adding
Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFF
MFA won't be used for any users. -
ON
MFA is required for all users to sign in. -
OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
-
- See Also:
UserPoolMfaType
-
-
mfaConfigurationAsString
public final String mfaConfigurationAsString()
The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA factor can sign in. To learn more, see Adding Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFF
MFA won't be used for any users. -
ON
MFA is required for all users to sign in. -
OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
If the service returns an enum value that is not available in the current SDK version,
mfaConfiguration
will returnUserPoolMfaType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available frommfaConfigurationAsString()
.- Returns:
- The MFA configuration. If you set the MfaConfiguration value to ‘ON’, only users who have set up an MFA
factor can sign in. To learn more, see Adding
Multi-Factor Authentication (MFA) to a user pool. Valid values include:
-
OFF
MFA won't be used for any users. -
ON
MFA is required for all users to sign in. -
OPTIONAL
MFA will be required only for individual users who have an MFA factor activated.
-
- See Also:
UserPoolMfaType
-
-
webAuthnConfiguration
public final WebAuthnConfigurationType webAuthnConfiguration()
The configuration of your user pool for passkey, or webauthN, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.
- Returns:
- The configuration of your user pool for passkey, or webauthN, authentication and registration. You can set this configuration independent of the MFA configuration options in this operation.
-
toBuilder
public SetUserPoolMfaConfigRequest.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>
- Specified by:
toBuilder
in classCognitoIdentityProviderRequest
-
builder
public static SetUserPoolMfaConfigRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetUserPoolMfaConfigRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCode
in classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equals
in classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForField
in classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-