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

/**
 * The status of a specific resource revision.
 *
 * <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 Apigee 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 GoogleCloudApigeeV1RevisionStatus extends com.google.api.client.json.GenericJson {

  /**
   * Errors reported when attempting to load this revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudApigeeV1UpdateError> errors;

  /**
   * The json content of the resource revision. Large specs should be sent individually via the spec
   * field to avoid hitting request size limits.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String jsonSpec;

  /**
   * The number of replicas that have successfully loaded this revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer replicas;

  /**
   * The revision of the resource.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String revisionId;

  /**
   * Errors reported when attempting to load this revision.
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudApigeeV1UpdateError> getErrors() {
    return errors;
  }

  /**
   * Errors reported when attempting to load this revision.
   * @param errors errors or {@code null} for none
   */
  public GoogleCloudApigeeV1RevisionStatus setErrors(java.util.List<GoogleCloudApigeeV1UpdateError> errors) {
    this.errors = errors;
    return this;
  }

  /**
   * The json content of the resource revision. Large specs should be sent individually via the spec
   * field to avoid hitting request size limits.
   * @return value or {@code null} for none
   */
  public java.lang.String getJsonSpec() {
    return jsonSpec;
  }

  /**
   * The json content of the resource revision. Large specs should be sent individually via the spec
   * field to avoid hitting request size limits.
   * @param jsonSpec jsonSpec or {@code null} for none
   */
  public GoogleCloudApigeeV1RevisionStatus setJsonSpec(java.lang.String jsonSpec) {
    this.jsonSpec = jsonSpec;
    return this;
  }

  /**
   * The number of replicas that have successfully loaded this revision.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getReplicas() {
    return replicas;
  }

  /**
   * The number of replicas that have successfully loaded this revision.
   * @param replicas replicas or {@code null} for none
   */
  public GoogleCloudApigeeV1RevisionStatus setReplicas(java.lang.Integer replicas) {
    this.replicas = replicas;
    return this;
  }

  /**
   * The revision of the resource.
   * @return value or {@code null} for none
   */
  public java.lang.String getRevisionId() {
    return revisionId;
  }

  /**
   * The revision of the resource.
   * @param revisionId revisionId or {@code null} for none
   */
  public GoogleCloudApigeeV1RevisionStatus setRevisionId(java.lang.String revisionId) {
    this.revisionId = revisionId;
    return this;
  }

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

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

}
