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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Policy() |
| Modifier and Type | Method and Description |
|---|---|
Policy |
clone() |
String |
getAutoUpdatePolicy()
The auto-update policy for apps installed on the device.
|
MaintenanceWindow |
getMaintenanceWindow()
The maintenance window defining when apps running in the foreground should be updated.
|
String |
getProductAvailabilityPolicy()
The availability granted to the device for the specified products.
|
List<ProductPolicy> |
getProductPolicy()
The list of product policies.
|
Policy |
set(String fieldName,
Object value) |
Policy |
setAutoUpdatePolicy(String autoUpdatePolicy)
The auto-update policy for apps installed on the device.
|
Policy |
setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
The maintenance window defining when apps running in the foreground should be updated.
|
Policy |
setProductAvailabilityPolicy(String productAvailabilityPolicy)
The availability granted to the device for the specified products.
|
Policy |
setProductPolicy(List<ProductPolicy> productPolicy)
The list of product policies.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAutoUpdatePolicy()
null for nonepublic Policy setAutoUpdatePolicy(String autoUpdatePolicy)
autoUpdatePolicy - autoUpdatePolicy or null for nonepublic MaintenanceWindow getMaintenanceWindow()
null for nonepublic Policy setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
maintenanceWindow - maintenanceWindow or null for nonepublic String getProductAvailabilityPolicy()
null for nonepublic Policy setProductAvailabilityPolicy(String productAvailabilityPolicy)
productAvailabilityPolicy - productAvailabilityPolicy or null for nonepublic List<ProductPolicy> getProductPolicy()
null for nonepublic Policy setProductPolicy(List<ProductPolicy> productPolicy)
productPolicy - productPolicy or null for nonepublic Policy set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Policy clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.