public final class Policy
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 Google Play EMM 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 |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
Policy |
clone() |
java.lang.String |
getAutoUpdatePolicy()
The auto-update policy for apps installed on the device.
|
java.lang.String |
getDeviceReportPolicy()
Whether the device reports app states to the EMM.
|
MaintenanceWindow |
getMaintenanceWindow()
The maintenance window defining when apps running in the foreground should be updated.
|
java.lang.String |
getProductAvailabilityPolicy()
The availability granted to the device for the specified products.
|
java.util.List<ProductPolicy> |
getProductPolicy()
The list of product policies.
|
Policy |
set(java.lang.String fieldName,
java.lang.Object value) |
Policy |
setAutoUpdatePolicy(java.lang.String autoUpdatePolicy)
The auto-update policy for apps installed on the device.
|
Policy |
setDeviceReportPolicy(java.lang.String deviceReportPolicy)
Whether the device reports app states to the EMM.
|
Policy |
setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
The maintenance window defining when apps running in the foreground should be updated.
|
Policy |
setProductAvailabilityPolicy(java.lang.String productAvailabilityPolicy)
The availability granted to the device for the specified products.
|
Policy |
setProductPolicy(java.util.List<ProductPolicy> productPolicy)
The list of product policies.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAutoUpdatePolicy()
null
for nonepublic Policy setAutoUpdatePolicy(java.lang.String autoUpdatePolicy)
autoUpdatePolicy
- autoUpdatePolicy or null
for nonepublic java.lang.String getDeviceReportPolicy()
null
for nonepublic Policy setDeviceReportPolicy(java.lang.String deviceReportPolicy)
deviceReportPolicy
- deviceReportPolicy or null
for nonepublic MaintenanceWindow getMaintenanceWindow()
null
for nonepublic Policy setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
maintenanceWindow
- maintenanceWindow or null
for nonepublic java.lang.String getProductAvailabilityPolicy()
null
for nonepublic Policy setProductAvailabilityPolicy(java.lang.String productAvailabilityPolicy)
productAvailabilityPolicy
- productAvailabilityPolicy or null
for nonepublic java.util.List<ProductPolicy> getProductPolicy()
null
for nonepublic Policy setProductPolicy(java.util.List<ProductPolicy> productPolicy)
productPolicy
- productPolicy or null
for nonepublic Policy set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Policy clone()
clone
in class com.google.api.client.json.GenericJson