java.lang.Object
software.amazon.awssdk.services.cognitoidentityprovider.model.NewDeviceMetadataType
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<NewDeviceMetadataType.Builder,NewDeviceMetadataType>

@Generated("software.amazon.awssdk:codegen") public final class NewDeviceMetadataType extends Object implements SdkPojo, Serializable, ToCopyableBuilder<NewDeviceMetadataType.Builder,NewDeviceMetadataType>

Information that your user pool responds with in AuthenticationResultwhen you configure it to remember devices and a user signs in with an unrecognized device. Amazon Cognito presents a new device key that you can use to set up device authentication in a "Remember me on this device" authentication model.

See Also:
  • Method Details

    • deviceKey

      public final String deviceKey()

      The device key, an identifier used in generating the DEVICE_PASSWORD_VERIFIER for device SRP authentication.

      Returns:
      The device key, an identifier used in generating the DEVICE_PASSWORD_VERIFIER for device SRP authentication.
    • deviceGroupKey

      public final String deviceGroupKey()

      The device group key, an identifier used in generating the DEVICE_PASSWORD_VERIFIER for device SRP authentication.

      Returns:
      The device group key, an identifier used in generating the DEVICE_PASSWORD_VERIFIER for device SRP authentication.
    • toBuilder

      public NewDeviceMetadataType.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<NewDeviceMetadataType.Builder,NewDeviceMetadataType>
    • builder

      public static NewDeviceMetadataType.Builder builder()
    • serializableBuilderClass

      public static Class<? extends NewDeviceMetadataType.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • 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.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo