public final class Device
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Android Management API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Device() |
Modifier and Type | Method and Description |
---|---|
Device |
clone() |
java.lang.Integer |
getApiLevel()
The API level of the Android platform version running on the device.
|
java.util.List<ApplicationReport> |
getApplicationReports()
Reports for apps installed on the device.
|
java.lang.String |
getAppliedPolicyName()
The name of the policy currently applied to the device.
|
java.lang.Long |
getAppliedPolicyVersion()
The version of the policy currently applied to the device.
|
java.lang.String |
getAppliedState()
The state currently applied to the device.
|
DeviceSettings |
getDeviceSettings()
Device settings information.
|
UserFacingMessage |
getDisabledReason()
If the device state is DISABLED, an optional message that is displayed on the device indicating
the reason the device is disabled.
|
java.util.List<Display> |
getDisplays()
Detailed information about displays on the device.
|
java.lang.String |
getEnrollmentTime()
The time of device enrollment.
|
java.lang.String |
getEnrollmentTokenData()
If the device was enrolled with an enrollment token with additional data provided, this field
contains that data.
|
java.lang.String |
getEnrollmentTokenName()
If the device was enrolled with an enrollment token, this field contains the name of the token.
|
HardwareInfo |
getHardwareInfo()
Detailed information about the device hardware.
|
java.util.List<HardwareStatus> |
getHardwareStatusSamples()
Hardware status samples in chronological order.
|
java.lang.String |
getLastPolicyComplianceReportTime()
Deprecated.
|
java.lang.String |
getLastPolicySyncTime()
The last time the device fetched its policy.
|
java.lang.String |
getLastStatusReportTime()
The last time the device sent a status report.
|
java.lang.String |
getManagementMode()
The type of management mode Android Device Policy takes on the device.
|
java.util.List<MemoryEvent> |
getMemoryEvents()
Events related to memory and storage measurements in chronological order.
|
MemoryInfo |
getMemoryInfo()
Memory information.
|
java.lang.String |
getName()
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
|
NetworkInfo |
getNetworkInfo()
Device network information.
|
java.util.List<NonComplianceDetail> |
getNonComplianceDetails()
Details about policy settings that the device is not compliant with.
|
java.lang.Boolean |
getPolicyCompliant()
Whether the device is compliant with its policy.
|
java.lang.String |
getPolicyName()
The name of the policy applied to the device, in the form
enterprises/{enterpriseId}/policies/{policyId}.
|
java.util.List<PowerManagementEvent> |
getPowerManagementEvents()
Power management events on the device in chronological order.
|
java.util.List<java.lang.String> |
getPreviousDeviceNames()
If the same physical device has been enrolled multiple times, this field contains its previous
device names.
|
SecurityPosture |
getSecurityPosture()
Device's security posture value that reflects how secure the device is.
|
SoftwareInfo |
getSoftwareInfo()
Detailed information about the device software.
|
java.lang.String |
getState()
The state to be applied to the device.
|
java.util.Map<java.lang.String,java.lang.String> |
getSystemProperties()
Map of selected system properties name and value related to the device.
|
User |
getUser()
The user who owns the device.
|
java.lang.String |
getUserName()
The resource name of the user that owns this device in the form
enterprises/{enterpriseId}/users/{userId}.
|
Device |
set(java.lang.String fieldName,
java.lang.Object value) |
Device |
setApiLevel(java.lang.Integer apiLevel)
The API level of the Android platform version running on the device.
|
Device |
setApplicationReports(java.util.List<ApplicationReport> applicationReports)
Reports for apps installed on the device.
|
Device |
setAppliedPolicyName(java.lang.String appliedPolicyName)
The name of the policy currently applied to the device.
|
Device |
setAppliedPolicyVersion(java.lang.Long appliedPolicyVersion)
The version of the policy currently applied to the device.
|
Device |
setAppliedState(java.lang.String appliedState)
The state currently applied to the device.
|
Device |
setDeviceSettings(DeviceSettings deviceSettings)
Device settings information.
|
Device |
setDisabledReason(UserFacingMessage disabledReason)
If the device state is DISABLED, an optional message that is displayed on the device indicating
the reason the device is disabled.
|
Device |
setDisplays(java.util.List<Display> displays)
Detailed information about displays on the device.
|
Device |
setEnrollmentTime(java.lang.String enrollmentTime)
The time of device enrollment.
|
Device |
setEnrollmentTokenData(java.lang.String enrollmentTokenData)
If the device was enrolled with an enrollment token with additional data provided, this field
contains that data.
|
Device |
setEnrollmentTokenName(java.lang.String enrollmentTokenName)
If the device was enrolled with an enrollment token, this field contains the name of the token.
|
Device |
setHardwareInfo(HardwareInfo hardwareInfo)
Detailed information about the device hardware.
|
Device |
setHardwareStatusSamples(java.util.List<HardwareStatus> hardwareStatusSamples)
Hardware status samples in chronological order.
|
Device |
setLastPolicyComplianceReportTime(java.lang.String lastPolicyComplianceReportTime)
Deprecated.
|
Device |
setLastPolicySyncTime(java.lang.String lastPolicySyncTime)
The last time the device fetched its policy.
|
Device |
setLastStatusReportTime(java.lang.String lastStatusReportTime)
The last time the device sent a status report.
|
Device |
setManagementMode(java.lang.String managementMode)
The type of management mode Android Device Policy takes on the device.
|
Device |
setMemoryEvents(java.util.List<MemoryEvent> memoryEvents)
Events related to memory and storage measurements in chronological order.
|
Device |
setMemoryInfo(MemoryInfo memoryInfo)
Memory information.
|
Device |
setName(java.lang.String name)
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
|
Device |
setNetworkInfo(NetworkInfo networkInfo)
Device network information.
|
Device |
setNonComplianceDetails(java.util.List<NonComplianceDetail> nonComplianceDetails)
Details about policy settings that the device is not compliant with.
|
Device |
setPolicyCompliant(java.lang.Boolean policyCompliant)
Whether the device is compliant with its policy.
|
Device |
setPolicyName(java.lang.String policyName)
The name of the policy applied to the device, in the form
enterprises/{enterpriseId}/policies/{policyId}.
|
Device |
setPowerManagementEvents(java.util.List<PowerManagementEvent> powerManagementEvents)
Power management events on the device in chronological order.
|
Device |
setPreviousDeviceNames(java.util.List<java.lang.String> previousDeviceNames)
If the same physical device has been enrolled multiple times, this field contains its previous
device names.
|
Device |
setSecurityPosture(SecurityPosture securityPosture)
Device's security posture value that reflects how secure the device is.
|
Device |
setSoftwareInfo(SoftwareInfo softwareInfo)
Detailed information about the device software.
|
Device |
setState(java.lang.String state)
The state to be applied to the device.
|
Device |
setSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties)
Map of selected system properties name and value related to the device.
|
Device |
setUser(User user)
The user who owns the device.
|
Device |
setUserName(java.lang.String userName)
The resource name of the user that owns this device in the form
enterprises/{enterpriseId}/users/{userId}.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Integer getApiLevel()
null
for nonepublic Device setApiLevel(java.lang.Integer apiLevel)
apiLevel
- apiLevel or null
for nonepublic java.util.List<ApplicationReport> getApplicationReports()
null
for nonepublic Device setApplicationReports(java.util.List<ApplicationReport> applicationReports)
applicationReports
- applicationReports or null
for nonepublic java.lang.String getAppliedPolicyName()
null
for nonepublic Device setAppliedPolicyName(java.lang.String appliedPolicyName)
appliedPolicyName
- appliedPolicyName or null
for nonepublic java.lang.Long getAppliedPolicyVersion()
null
for nonepublic Device setAppliedPolicyVersion(java.lang.Long appliedPolicyVersion)
appliedPolicyVersion
- appliedPolicyVersion or null
for nonepublic java.lang.String getAppliedState()
null
for nonepublic Device setAppliedState(java.lang.String appliedState)
appliedState
- appliedState or null
for nonepublic DeviceSettings getDeviceSettings()
null
for nonepublic Device setDeviceSettings(DeviceSettings deviceSettings)
deviceSettings
- deviceSettings or null
for nonepublic UserFacingMessage getDisabledReason()
null
for nonepublic Device setDisabledReason(UserFacingMessage disabledReason)
disabledReason
- disabledReason or null
for nonepublic java.util.List<Display> getDisplays()
null
for nonepublic Device setDisplays(java.util.List<Display> displays)
displays
- displays or null
for nonepublic java.lang.String getEnrollmentTime()
null
for nonepublic Device setEnrollmentTime(java.lang.String enrollmentTime)
enrollmentTime
- enrollmentTime or null
for nonepublic java.lang.String getEnrollmentTokenData()
null
for nonepublic Device setEnrollmentTokenData(java.lang.String enrollmentTokenData)
enrollmentTokenData
- enrollmentTokenData or null
for nonepublic java.lang.String getEnrollmentTokenName()
null
for nonepublic Device setEnrollmentTokenName(java.lang.String enrollmentTokenName)
enrollmentTokenName
- enrollmentTokenName or null
for nonepublic HardwareInfo getHardwareInfo()
null
for nonepublic Device setHardwareInfo(HardwareInfo hardwareInfo)
hardwareInfo
- hardwareInfo or null
for nonepublic java.util.List<HardwareStatus> getHardwareStatusSamples()
null
for nonepublic Device setHardwareStatusSamples(java.util.List<HardwareStatus> hardwareStatusSamples)
hardwareStatusSamples
- hardwareStatusSamples or null
for nonepublic java.lang.String getLastPolicyComplianceReportTime()
null
for nonepublic Device setLastPolicyComplianceReportTime(java.lang.String lastPolicyComplianceReportTime)
lastPolicyComplianceReportTime
- lastPolicyComplianceReportTime or null
for nonepublic java.lang.String getLastPolicySyncTime()
null
for nonepublic Device setLastPolicySyncTime(java.lang.String lastPolicySyncTime)
lastPolicySyncTime
- lastPolicySyncTime or null
for nonepublic java.lang.String getLastStatusReportTime()
null
for nonepublic Device setLastStatusReportTime(java.lang.String lastStatusReportTime)
lastStatusReportTime
- lastStatusReportTime or null
for nonepublic java.lang.String getManagementMode()
null
for nonepublic Device setManagementMode(java.lang.String managementMode)
managementMode
- managementMode or null
for nonepublic java.util.List<MemoryEvent> getMemoryEvents()
null
for nonepublic Device setMemoryEvents(java.util.List<MemoryEvent> memoryEvents)
memoryEvents
- memoryEvents or null
for nonepublic MemoryInfo getMemoryInfo()
null
for nonepublic Device setMemoryInfo(MemoryInfo memoryInfo)
memoryInfo
- memoryInfo or null
for nonepublic java.lang.String getName()
null
for nonepublic Device setName(java.lang.String name)
name
- name or null
for nonepublic NetworkInfo getNetworkInfo()
null
for nonepublic Device setNetworkInfo(NetworkInfo networkInfo)
networkInfo
- networkInfo or null
for nonepublic java.util.List<NonComplianceDetail> getNonComplianceDetails()
null
for nonepublic Device setNonComplianceDetails(java.util.List<NonComplianceDetail> nonComplianceDetails)
nonComplianceDetails
- nonComplianceDetails or null
for nonepublic java.lang.Boolean getPolicyCompliant()
null
for nonepublic Device setPolicyCompliant(java.lang.Boolean policyCompliant)
policyCompliant
- policyCompliant or null
for nonepublic java.lang.String getPolicyName()
null
for nonepublic Device setPolicyName(java.lang.String policyName)
policyName
- policyName or null
for nonepublic java.util.List<PowerManagementEvent> getPowerManagementEvents()
null
for nonepublic Device setPowerManagementEvents(java.util.List<PowerManagementEvent> powerManagementEvents)
powerManagementEvents
- powerManagementEvents or null
for nonepublic java.util.List<java.lang.String> getPreviousDeviceNames()
null
for nonepublic Device setPreviousDeviceNames(java.util.List<java.lang.String> previousDeviceNames)
previousDeviceNames
- previousDeviceNames or null
for nonepublic SecurityPosture getSecurityPosture()
null
for nonepublic Device setSecurityPosture(SecurityPosture securityPosture)
securityPosture
- securityPosture or null
for nonepublic SoftwareInfo getSoftwareInfo()
null
for nonepublic Device setSoftwareInfo(SoftwareInfo softwareInfo)
softwareInfo
- softwareInfo or null
for nonepublic java.lang.String getState()
null
for nonepublic Device setState(java.lang.String state)
state
- state or null
for nonepublic java.util.Map<java.lang.String,java.lang.String> getSystemProperties()
null
for nonepublic Device setSystemProperties(java.util.Map<java.lang.String,java.lang.String> systemProperties)
systemProperties
- systemProperties or null
for nonepublic User getUser()
null
for nonepublic Device setUser(User user)
user
- user or null
for nonepublic java.lang.String getUserName()
null
for nonepublic Device setUserName(java.lang.String userName)
userName
- userName or null
for nonepublic Device set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Device clone()
clone
in class com.google.api.client.json.GenericJson