target.apidocs.com.google.api.services.androidenterprise.model.AutoInstallPolicy.html Maven / Gradle / Ivy
The newest version!
AutoInstallPolicy (Google Play EMM API v1-rev20241113-2.0.0)
com.google.api.services.androidenterprise.model
Class AutoInstallPolicy
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.androidenterprise.model.AutoInstallPolicy
-
public final class AutoInstallPolicy
extends com.google.api.client.json.GenericJson
Model definition for AutoInstallPolicy.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
AutoInstallPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AutoInstallPolicy
clone()
List<AutoInstallConstraint>
getAutoInstallConstraint()
The constraints for auto-installing the app.
String
getAutoInstallMode()
The auto-install mode.
Integer
getAutoInstallPriority()
The priority of the install, as an unsigned integer.
Integer
getMinimumVersionCode()
The minimum version of the app.
AutoInstallPolicy
set(String fieldName,
Object value)
AutoInstallPolicy
setAutoInstallConstraint(List<AutoInstallConstraint> autoInstallConstraint)
The constraints for auto-installing the app.
AutoInstallPolicy
setAutoInstallMode(String autoInstallMode)
The auto-install mode.
AutoInstallPolicy
setAutoInstallPriority(Integer autoInstallPriority)
The priority of the install, as an unsigned integer.
AutoInstallPolicy
setMinimumVersionCode(Integer minimumVersionCode)
The minimum version of the app.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAutoInstallConstraint
public List<AutoInstallConstraint> getAutoInstallConstraint()
The constraints for auto-installing the app. You can specify a maximum of one constraint.
- Returns:
- value or
null
for none
-
setAutoInstallConstraint
public AutoInstallPolicy setAutoInstallConstraint(List<AutoInstallConstraint> autoInstallConstraint)
The constraints for auto-installing the app. You can specify a maximum of one constraint.
- Parameters:
autoInstallConstraint
- autoInstallConstraint or null
for none
-
getAutoInstallMode
public String getAutoInstallMode()
The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically
installed regardless of a set maintenance window.
- Returns:
- value or
null
for none
-
setAutoInstallMode
public AutoInstallPolicy setAutoInstallMode(String autoInstallMode)
The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically
installed regardless of a set maintenance window.
- Parameters:
autoInstallMode
- autoInstallMode or null
for none
-
getAutoInstallPriority
public Integer getAutoInstallPriority()
The priority of the install, as an unsigned integer. A lower number means higher priority.
- Returns:
- value or
null
for none
-
setAutoInstallPriority
public AutoInstallPolicy setAutoInstallPriority(Integer autoInstallPriority)
The priority of the install, as an unsigned integer. A lower number means higher priority.
- Parameters:
autoInstallPriority
- autoInstallPriority or null
for none
-
getMinimumVersionCode
public Integer getMinimumVersionCode()
The minimum version of the app. If a lower version of the app is installed, then the app will
be auto-updated according to the auto-install constraints, instead of waiting for the regular
auto-update. You can set a minimum version code for at most 20 apps per device.
- Returns:
- value or
null
for none
-
setMinimumVersionCode
public AutoInstallPolicy setMinimumVersionCode(Integer minimumVersionCode)
The minimum version of the app. If a lower version of the app is installed, then the app will
be auto-updated according to the auto-install constraints, instead of waiting for the regular
auto-update. You can set a minimum version code for at most 20 apps per device.
- Parameters:
minimumVersionCode
- minimumVersionCode or null
for none
-
set
public AutoInstallPolicy set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public AutoInstallPolicy clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy