Example usage for com.amazonaws.services.cognitoidp.model DeviceType getDeviceCreateDate

List of usage examples for com.amazonaws.services.cognitoidp.model DeviceType getDeviceCreateDate

Introduction

In this page you can find the example usage for com.amazonaws.services.cognitoidp.model DeviceType getDeviceCreateDate.

Prototype


public java.util.Date getDeviceCreateDate() 

Source Link

Document

The creation date of the device.

Usage

From source file:io.fineo.client.auth.cognito.CognitoDevice.java

License:Open Source License

/**
 * Constructs a {@link CognitoDevice} object with {@link DeviceType} object.
 *
 * @param device                    REQUIRED: A {@link DeviceType} object.
 * @param user                      REQUIRED: The {@link CognitoUser} this device is linked to.
 *//*from  www  .ja  va  2s .  c om*/
public CognitoDevice(DeviceType device, CognitoUser user) {
    this.deviceKey = device.getDeviceKey();
    this.deviceAttributes = new CognitoUserAttributes(device.getDeviceAttributes());
    this.createDate = device.getDeviceCreateDate();
    this.lastModifiedDate = device.getDeviceLastModifiedDate();
    this.lastAccessedDate = device.getDeviceLastModifiedDate();
    this.user = user;
}