/*
 * 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.androiddeviceprovisioning.v1.model;

/**
 * Captures the processing status for each device in the operation.
 *
 * <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 Device Provisioning Partner 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 PerDeviceStatusInBatch extends com.google.api.client.json.GenericJson {

  /**
   * If processing succeeds, the device ID of the device.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key @com.google.api.client.json.JsonString
  private java.lang.Long deviceId;

  /**
   * If processing fails, the error type.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String errorIdentifier;

  /**
   * If processing fails, a developer message explaining what went wrong.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String errorMessage;

  /**
   * The result status of the device after processing.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String status;

  /**
   * If processing succeeds, the device ID of the device.
   * @return value or {@code null} for none
   */
  public java.lang.Long getDeviceId() {
    return deviceId;
  }

  /**
   * If processing succeeds, the device ID of the device.
   * @param deviceId deviceId or {@code null} for none
   */
  public PerDeviceStatusInBatch setDeviceId(java.lang.Long deviceId) {
    this.deviceId = deviceId;
    return this;
  }

  /**
   * If processing fails, the error type.
   * @return value or {@code null} for none
   */
  public java.lang.String getErrorIdentifier() {
    return errorIdentifier;
  }

  /**
   * If processing fails, the error type.
   * @param errorIdentifier errorIdentifier or {@code null} for none
   */
  public PerDeviceStatusInBatch setErrorIdentifier(java.lang.String errorIdentifier) {
    this.errorIdentifier = errorIdentifier;
    return this;
  }

  /**
   * If processing fails, a developer message explaining what went wrong.
   * @return value or {@code null} for none
   */
  public java.lang.String getErrorMessage() {
    return errorMessage;
  }

  /**
   * If processing fails, a developer message explaining what went wrong.
   * @param errorMessage errorMessage or {@code null} for none
   */
  public PerDeviceStatusInBatch setErrorMessage(java.lang.String errorMessage) {
    this.errorMessage = errorMessage;
    return this;
  }

  /**
   * The result status of the device after processing.
   * @return value or {@code null} for none
   */
  public java.lang.String getStatus() {
    return status;
  }

  /**
   * The result status of the device after processing.
   * @param status status or {@code null} for none
   */
  public PerDeviceStatusInBatch setStatus(java.lang.String status) {
    this.status = status;
    return this;
  }

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

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

}
