All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.androidenterprise.model.AutoInstallPolicy Maven / Gradle / Ivy

The newest version!
/*
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * This code was generated by https://github.com/googleapis/google-api-java-client-services/
 * Modify at your own risk.
 */

package com.google.api.services.androidenterprise.model;

/**
 * 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. */ @SuppressWarnings("javadoc") public final class AutoInstallPolicy extends com.google.api.client.json.GenericJson { /** * The constraints for auto-installing the app. You can specify a maximum of one constraint. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List autoInstallConstraint; static { // hack to force ProGuard to consider AutoInstallConstraint used, since otherwise it would be stripped out // see https://github.com/google/google-api-java-client/issues/543 com.google.api.client.util.Data.nullOf(AutoInstallConstraint.class); } /** * The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically * installed regardless of a set maintenance window. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String autoInstallMode; /** * The priority of the install, as an unsigned integer. A lower number means higher priority. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer autoInstallPriority; /** * 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. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer minimumVersionCode; /** * The constraints for auto-installing the app. You can specify a maximum of one constraint. * @return value or {@code null} for none */ public java.util.List getAutoInstallConstraint() { return autoInstallConstraint; } /** * The constraints for auto-installing the app. You can specify a maximum of one constraint. * @param autoInstallConstraint autoInstallConstraint or {@code null} for none */ public AutoInstallPolicy setAutoInstallConstraint(java.util.List autoInstallConstraint) { this.autoInstallConstraint = autoInstallConstraint; return this; } /** * The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically * installed regardless of a set maintenance window. * @return value or {@code null} for none */ public java.lang.String getAutoInstallMode() { return autoInstallMode; } /** * The auto-install mode. If unset, defaults to "doNotAutoInstall". An app is automatically * installed regardless of a set maintenance window. * @param autoInstallMode autoInstallMode or {@code null} for none */ public AutoInstallPolicy setAutoInstallMode(java.lang.String autoInstallMode) { this.autoInstallMode = autoInstallMode; return this; } /** * The priority of the install, as an unsigned integer. A lower number means higher priority. * @return value or {@code null} for none */ public java.lang.Integer getAutoInstallPriority() { return autoInstallPriority; } /** * The priority of the install, as an unsigned integer. A lower number means higher priority. * @param autoInstallPriority autoInstallPriority or {@code null} for none */ public AutoInstallPolicy setAutoInstallPriority(java.lang.Integer autoInstallPriority) { this.autoInstallPriority = autoInstallPriority; return this; } /** * 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. * @return value or {@code null} for none */ public java.lang.Integer getMinimumVersionCode() { return 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. * @param minimumVersionCode minimumVersionCode or {@code null} for none */ public AutoInstallPolicy setMinimumVersionCode(java.lang.Integer minimumVersionCode) { this.minimumVersionCode = minimumVersionCode; return this; } @Override public AutoInstallPolicy set(String fieldName, Object value) { return (AutoInstallPolicy) super.set(fieldName, value); } @Override public AutoInstallPolicy clone() { return (AutoInstallPolicy) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy