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()
Controls when automatic app updates on the device can be applied.
|
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.
|
String |
getPolicyId()
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
|
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)
Controls when automatic app updates on the device can be applied.
|
Policy |
setDeviceReportPolicy(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 |
setPolicyId(String policyId)
An identifier for the policy that will be passed with the app install feedback sent from the
Play Store.
|
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, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, 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 String getDeviceReportPolicy()
null for nonepublic Policy setDeviceReportPolicy(String deviceReportPolicy)
deviceReportPolicy - deviceReportPolicy or null for nonepublic MaintenanceWindow getMaintenanceWindow()
null for nonepublic Policy setMaintenanceWindow(MaintenanceWindow maintenanceWindow)
maintenanceWindow - maintenanceWindow or null for nonepublic String getPolicyId()
null for nonepublic Policy setPolicyId(String policyId)
policyId - policyId 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–2025 Google. All rights reserved.