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

com.google.api.services.androidmanagement.v1.model.ScreenBrightnessSettings Maven / Gradle / Ivy

There is a newer version: v1-rev20241204-2.0.0
Show 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.androidmanagement.v1.model;

/**
 * Controls for the screen brightness settings.
 *
 * 

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 Android Management 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 ScreenBrightnessSettings extends com.google.api.client.json.GenericJson { /** * Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest * brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. * screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. * Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL * is reported if the Android version is less than 9. Supported on work profiles on company-owned * devices on Android 15 and above. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer screenBrightness; /** * Optional. Controls the screen brightness mode. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String screenBrightnessMode; /** * Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest * brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. * screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. * Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL * is reported if the Android version is less than 9. Supported on work profiles on company-owned * devices on Android 15 and above. * @return value or {@code null} for none */ public java.lang.Integer getScreenBrightness() { return screenBrightness; } /** * Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest * brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. * screenBrightnessMode must be either BRIGHTNESS_AUTOMATIC or BRIGHTNESS_FIXED to set this. * Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL * is reported if the Android version is less than 9. Supported on work profiles on company-owned * devices on Android 15 and above. * @param screenBrightness screenBrightness or {@code null} for none */ public ScreenBrightnessSettings setScreenBrightness(java.lang.Integer screenBrightness) { this.screenBrightness = screenBrightness; return this; } /** * Optional. Controls the screen brightness mode. * @return value or {@code null} for none */ public java.lang.String getScreenBrightnessMode() { return screenBrightnessMode; } /** * Optional. Controls the screen brightness mode. * @param screenBrightnessMode screenBrightnessMode or {@code null} for none */ public ScreenBrightnessSettings setScreenBrightnessMode(java.lang.String screenBrightnessMode) { this.screenBrightnessMode = screenBrightnessMode; return this; } @Override public ScreenBrightnessSettings set(String fieldName, Object value) { return (ScreenBrightnessSettings) super.set(fieldName, value); } @Override public ScreenBrightnessSettings clone() { return (ScreenBrightnessSettings) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy