/*
 * 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;

/**
 * Information about a device that is available during setup.
 *
 * <p> 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:
 * <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
 * </p>
 *
 * @author Google, Inc.
 */
@SuppressWarnings("javadoc")
public final class ProvisioningInfo extends com.google.api.client.json.GenericJson {

  /**
   * The API level of the Android platform version running on the device.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer apiLevel;

  /**
   * The brand of the device. For example, Google.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String brand;

  /**
   * The name of the enterprise in the form enterprises/{enterprise}.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String enterprise;

  /**
   * The management mode of the device or profile.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String managementMode;

  /**
   * The model of the device. For example, Asus Nexus 7.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String model;

  /**
   * The name of this resource in the form provisioningInfo/{provisioning_info}.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String name;

  /**
   * Ownership of the managed device.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String ownership;

  /**
   * The API level of the Android platform version running on the device.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getApiLevel() {
    return apiLevel;
  }

  /**
   * The API level of the Android platform version running on the device.
   * @param apiLevel apiLevel or {@code null} for none
   */
  public ProvisioningInfo setApiLevel(java.lang.Integer apiLevel) {
    this.apiLevel = apiLevel;
    return this;
  }

  /**
   * The brand of the device. For example, Google.
   * @return value or {@code null} for none
   */
  public java.lang.String getBrand() {
    return brand;
  }

  /**
   * The brand of the device. For example, Google.
   * @param brand brand or {@code null} for none
   */
  public ProvisioningInfo setBrand(java.lang.String brand) {
    this.brand = brand;
    return this;
  }

  /**
   * The name of the enterprise in the form enterprises/{enterprise}.
   * @return value or {@code null} for none
   */
  public java.lang.String getEnterprise() {
    return enterprise;
  }

  /**
   * The name of the enterprise in the form enterprises/{enterprise}.
   * @param enterprise enterprise or {@code null} for none
   */
  public ProvisioningInfo setEnterprise(java.lang.String enterprise) {
    this.enterprise = enterprise;
    return this;
  }

  /**
   * The management mode of the device or profile.
   * @return value or {@code null} for none
   */
  public java.lang.String getManagementMode() {
    return managementMode;
  }

  /**
   * The management mode of the device or profile.
   * @param managementMode managementMode or {@code null} for none
   */
  public ProvisioningInfo setManagementMode(java.lang.String managementMode) {
    this.managementMode = managementMode;
    return this;
  }

  /**
   * The model of the device. For example, Asus Nexus 7.
   * @return value or {@code null} for none
   */
  public java.lang.String getModel() {
    return model;
  }

  /**
   * The model of the device. For example, Asus Nexus 7.
   * @param model model or {@code null} for none
   */
  public ProvisioningInfo setModel(java.lang.String model) {
    this.model = model;
    return this;
  }

  /**
   * The name of this resource in the form provisioningInfo/{provisioning_info}.
   * @return value or {@code null} for none
   */
  public java.lang.String getName() {
    return name;
  }

  /**
   * The name of this resource in the form provisioningInfo/{provisioning_info}.
   * @param name name or {@code null} for none
   */
  public ProvisioningInfo setName(java.lang.String name) {
    this.name = name;
    return this;
  }

  /**
   * Ownership of the managed device.
   * @return value or {@code null} for none
   */
  public java.lang.String getOwnership() {
    return ownership;
  }

  /**
   * Ownership of the managed device.
   * @param ownership ownership or {@code null} for none
   */
  public ProvisioningInfo setOwnership(java.lang.String ownership) {
    this.ownership = ownership;
    return this;
  }

  @Override
  public ProvisioningInfo set(String fieldName, Object value) {
    return (ProvisioningInfo) super.set(fieldName, value);
  }

  @Override
  public ProvisioningInfo clone() {
    return (ProvisioningInfo) super.clone();
  }

}
