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 interfaceSetUserPoolMfaConfigRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SetUserPoolMfaConfigRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()UserPoolMfaTypemfaConfiguration()The MFA configuration.StringmfaConfigurationAsString()The MFA configuration.List<SdkField<?>>sdkFields()static Class<? extends SetUserPoolMfaConfigRequest.Builder>serializableBuilderClass()SmsMfaConfigTypesmsMfaConfiguration()The SMS text message MFA configuration.SoftwareTokenMfaConfigTypesoftwareTokenMfaConfiguration()The software token MFA configuration.SetUserPoolMfaConfigRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringuserPoolId()The user pool ID.-
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()
The SMS text message MFA configuration.
- Returns:
- The SMS text message MFA configuration.
-
softwareTokenMfaConfiguration
public final SoftwareTokenMfaConfigType softwareTokenMfaConfiguration()
The software token MFA configuration.
- Returns:
- The software token MFA configuration.
-
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:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA 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,
mfaConfigurationwill 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:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA 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:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA 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,
mfaConfigurationwill 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:
-
OFFMFA won't be used for any users. -
ONMFA is required for all users to sign in. -
OPTIONALMFA will be required only for individual users who have an MFA factor activated.
-
- See Also:
UserPoolMfaType
-
-
toBuilder
public SetUserPoolMfaConfigRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetUserPoolMfaConfigRequest.Builder,SetUserPoolMfaConfigRequest>- Specified by:
toBuilderin classCognitoIdentityProviderRequest
-
builder
public static SetUserPoolMfaConfigRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetUserPoolMfaConfigRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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:
getValueForFieldin classSdkRequest
-
-