public class AndroidEnterprise.Devices.GetState extends AndroidEnterpriseRequest<DeviceState>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
GetState(String enterpriseId,
String userId,
String deviceId)
Retrieves whether a device's access to Google services is enabled or disabled.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getDeviceId()
The ID of the device.
|
String |
getEnterpriseId()
The ID of the enterprise.
|
String |
getUserId()
The ID of the user.
|
AndroidEnterprise.Devices.GetState |
set(String parameterName,
Object value) |
AndroidEnterprise.Devices.GetState |
setAlt(String alt)
Data format for the response.
|
AndroidEnterprise.Devices.GetState |
setDeviceId(String deviceId)
The ID of the device.
|
AndroidEnterprise.Devices.GetState |
setEnterpriseId(String enterpriseId)
The ID of the enterprise.
|
AndroidEnterprise.Devices.GetState |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
AndroidEnterprise.Devices.GetState |
setKey(String key)
API key.
|
AndroidEnterprise.Devices.GetState |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
AndroidEnterprise.Devices.GetState |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
AndroidEnterprise.Devices.GetState |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
AndroidEnterprise.Devices.GetState |
setUserId(String userId)
The ID of the user.
|
AndroidEnterprise.Devices.GetState |
setUserIp(String userIp)
Deprecated.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected GetState(String enterpriseId, String userId, String deviceId)
AbstractGoogleClientRequest.execute() method to invoke the remote
operation. AndroidEnterprise.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
enterpriseId - The ID of the enterprise.userId - The ID of the user.deviceId - The ID of the device.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<DeviceState>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<DeviceState>IOExceptionpublic AndroidEnterprise.Devices.GetState setAlt(String alt)
AndroidEnterpriseRequestsetAlt in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setFields(String fields)
AndroidEnterpriseRequestsetFields in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setKey(String key)
AndroidEnterpriseRequestsetKey in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setOauthToken(String oauthToken)
AndroidEnterpriseRequestsetOauthToken in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setPrettyPrint(Boolean prettyPrint)
AndroidEnterpriseRequestsetPrettyPrint in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setQuotaUser(String quotaUser)
AndroidEnterpriseRequestsetQuotaUser in class AndroidEnterpriseRequest<DeviceState>public AndroidEnterprise.Devices.GetState setUserIp(String userIp)
AndroidEnterpriseRequestsetUserIp in class AndroidEnterpriseRequest<DeviceState>public String getEnterpriseId()
public AndroidEnterprise.Devices.GetState setEnterpriseId(String enterpriseId)
public String getUserId()
public AndroidEnterprise.Devices.GetState setUserId(String userId)
public String getDeviceId()
public AndroidEnterprise.Devices.GetState setDeviceId(String deviceId)
public AndroidEnterprise.Devices.GetState set(String parameterName, Object value)
set in class AndroidEnterpriseRequest<DeviceState>Copyright © 2011–2018 Google. All rights reserved.