public class DeviceOperations
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
void |
forget()
Forget the current device.
|
void |
forget(Callback<java.lang.Void> callback)
Forget the current device.
|
void |
forget(java.lang.String deviceKey)
Forget the device identified by the deviceKey.
|
void |
forget(java.lang.String deviceKey,
Callback<java.lang.Void> callback)
Forget the device identified by the deviceKey.
|
Device |
get()
Retrieves the device information for this device.
|
void |
get(Callback<Device> callback)
Retrieves the device information for this device.
|
Device |
get(java.lang.String deviceId)
Retrieves the device information for the device id provided.
|
void |
get(java.lang.String deviceId,
Callback<Device> callback)
Retrieves the device information for the device id provided.
|
ListDevicesResult |
list()
Lists the devices attached to the user's account.
|
void |
list(Callback<ListDevicesResult> callback)
Lists the devices attached to the user's account.
|
ListDevicesResult |
list(java.lang.Integer limit,
java.lang.String paginationToken)
Lists the devices attached to the user's account.
|
void |
list(java.lang.Integer limit,
java.lang.String paginationToken,
Callback<ListDevicesResult> callback)
Lists the devices attached to the user's account.
|
void |
updateStatus(boolean rememberDevice)
Update this device status to be remembered or not remembered
|
void |
updateStatus(boolean rememberDevice,
Callback<java.lang.Void> callback)
Update this device status to be remembered or not remembered
|
void |
updateStatus(java.lang.String deviceKey,
boolean rememberDevice)
Update the device status to be remembered or not remembered
|
void |
updateStatus(java.lang.String deviceKey,
boolean rememberDevice,
Callback<java.lang.Void> callback) |
public Device get() throws java.lang.Exception
java.lang.Exception
public Device get(java.lang.String deviceId) throws java.lang.Exception
java.lang.Exception
public void get(java.lang.String deviceId, Callback<Device> callback)
public ListDevicesResult list() throws java.lang.Exception
java.lang.Exception
public void list(Callback<ListDevicesResult> callback)
public ListDevicesResult list(java.lang.Integer limit, java.lang.String paginationToken) throws java.lang.Exception
limit
- the number of devices to return per page. Max allows by service is 60.paginationToken
- the string returned by a previous list call to fetched the next
page of results.java.lang.Exception
public void list(java.lang.Integer limit, java.lang.String paginationToken, Callback<ListDevicesResult> callback)
limit
- the number of devices to return per page. Max allows by service is 60.paginationToken
- the string returned by a previous list call to fetched the next
page of results.public void updateStatus(boolean rememberDevice) throws java.lang.Exception
rememberDevice
- true to set the device as remembered, false otherwisejava.lang.Exception
public void updateStatus(boolean rememberDevice, Callback<java.lang.Void> callback)
rememberDevice
- true to set the device as remembered, false otherwisejava.lang.Exception
public void updateStatus(java.lang.String deviceKey, boolean rememberDevice) throws java.lang.Exception
rememberDevice
- true to set the device as remembered, false otherwisejava.lang.Exception
public void updateStatus(java.lang.String deviceKey, boolean rememberDevice, Callback<java.lang.Void> callback)
public void forget() throws java.lang.Exception
updateStatus(boolean)
after forget()
will fail.
The user needs to sign-out and sign-in again to be able to update the device status.java.lang.Exception
public void forget(Callback<java.lang.Void> callback)
updateStatus(boolean)
after forget()
will fail.
The user needs to sign-out and sign-in again to be able to update the device status.public void forget(java.lang.String deviceKey) throws java.lang.Exception
updateStatus(boolean)
after forget()
will fail.
The user needs to sign-out and sign-in again to be able to update the device status.deviceKey
- the device identifierjava.lang.Exception
public void forget(java.lang.String deviceKey, Callback<java.lang.Void> callback)
updateStatus(boolean)
after forget()
will fail.
The user needs to sign-out and sign-in again to be able to update the device status.deviceKey
- the device identifierCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.