Class RecoveryOptionType
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<RecoveryOptionType.Builder,RecoveryOptionType>
A recovery option for a user. The AccountRecoverySettingType data type is an array of this object. Each
RecoveryOptionType has a priority property that determines whether it is a primary or secondary option.
For example, if verified_email has a priority of 1 and verified_phone_number
has a priority of 2, your user pool sends account-recovery messages to a verified email address but
falls back to an SMS message if the user has a verified phone number. The admin_only option prevents
self-service account recovery.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RecoveryOptionType.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final RecoveryOptionNameTypename()The recovery method that this object sets a recovery option for.final StringThe recovery method that this object sets a recovery option for.final Integerpriority()Your priority preference for using the specified attribute in account recovery.static Class<? extends RecoveryOptionType.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
priority
Your priority preference for using the specified attribute in account recovery. The highest priority is
1.- Returns:
- Your priority preference for using the specified attribute in account recovery. The highest priority is
1.
-
name
The recovery method that this object sets a recovery option for.
If the service returns an enum value that is not available in the current SDK version,
namewill returnRecoveryOptionNameType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The recovery method that this object sets a recovery option for.
- See Also:
-
nameAsString
The recovery method that this object sets a recovery option for.
If the service returns an enum value that is not available in the current SDK version,
namewill returnRecoveryOptionNameType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnameAsString().- Returns:
- The recovery method that this object sets a recovery option for.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<RecoveryOptionType.Builder,RecoveryOptionType>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-