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

/**
 * A Snapshot revision resource. Snapshot revisions are immutable.
 *
 * <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 Google Play Game Services. 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 SnapshotRevision extends com.google.api.client.json.GenericJson {

  /**
   * Reference to the game provided blob for this revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private SnapshotDataResource blob;

  /**
   * Reference to the cover image for this revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private SnapshotCoverImageResource coverImage;

  /**
   * Output only. A server generated identifier of the snapshot revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String id;

  /**
   * Metadata for this snapshot revision.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private SnapshotMetadata metadata;

  /**
   * Reference to the game provided blob for this revision.
   * @return value or {@code null} for none
   */
  public SnapshotDataResource getBlob() {
    return blob;
  }

  /**
   * Reference to the game provided blob for this revision.
   * @param blob blob or {@code null} for none
   */
  public SnapshotRevision setBlob(SnapshotDataResource blob) {
    this.blob = blob;
    return this;
  }

  /**
   * Reference to the cover image for this revision.
   * @return value or {@code null} for none
   */
  public SnapshotCoverImageResource getCoverImage() {
    return coverImage;
  }

  /**
   * Reference to the cover image for this revision.
   * @param coverImage coverImage or {@code null} for none
   */
  public SnapshotRevision setCoverImage(SnapshotCoverImageResource coverImage) {
    this.coverImage = coverImage;
    return this;
  }

  /**
   * Output only. A server generated identifier of the snapshot revision.
   * @return value or {@code null} for none
   */
  public java.lang.String getId() {
    return id;
  }

  /**
   * Output only. A server generated identifier of the snapshot revision.
   * @param id id or {@code null} for none
   */
  public SnapshotRevision setId(java.lang.String id) {
    this.id = id;
    return this;
  }

  /**
   * Metadata for this snapshot revision.
   * @return value or {@code null} for none
   */
  public SnapshotMetadata getMetadata() {
    return metadata;
  }

  /**
   * Metadata for this snapshot revision.
   * @param metadata metadata or {@code null} for none
   */
  public SnapshotRevision setMetadata(SnapshotMetadata metadata) {
    this.metadata = metadata;
    return this;
  }

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

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

}
