@Generated(value="software.amazon.awssdk:codegen") public final class DeviceConfigurationType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DeviceConfigurationType.Builder,DeviceConfigurationType>
The device-remembering configuration for a user pool. A null value indicates that you have deactivated device remembering in your user pool.
When you provide a value for any DeviceConfiguration field, you activate the Amazon Cognito
device-remembering feature.
| Modifier and Type | Class and Description |
|---|---|
static interface |
DeviceConfigurationType.Builder |
| Modifier and Type | Method and Description |
|---|---|
static DeviceConfigurationType.Builder |
builder() |
Boolean |
challengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor
authentication (MFA).
|
Boolean |
deviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends DeviceConfigurationType.Builder> |
serializableBuilderClass() |
DeviceConfigurationType.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean challengeRequiredOnNewDevice()
When true, device authentication can replace SMS and time-based one-time password (TOTP) factors for multi-factor authentication (MFA).
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
Regardless of the value of this field, users that sign in with new devices that have not been confirmed or remembered must provide a second factor if your user pool requires MFA.
public final Boolean deviceOnlyRememberedOnUserPrompt()
When true, Amazon Cognito doesn't remember newly-confirmed devices. Users who want to authenticate with their device can instead opt in to remembering their device. To collect a choice from your user, create an input prompt in your app and return the value that the user chooses in an UpdateDeviceStatus API request.
public DeviceConfigurationType.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<DeviceConfigurationType.Builder,DeviceConfigurationType>public static DeviceConfigurationType.Builder builder()
public static Class<? extends DeviceConfigurationType.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.