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

/**
 * The mapping for the JobConfig.edit_list atoms with text EditAtom.inputs.
 *
 * <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 Transcoder 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 TextMapping extends com.google.api.client.json.GenericJson {

  /**
   * Required. The EditAtom.key that references atom with text inputs in the JobConfig.edit_list.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String atomKey;

  /**
   * Required. The Input.key that identifies the input file.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String inputKey;

  /**
   * Required. The zero-based index of the track in the input file.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.Integer inputTrack;

  /**
   * Required. The EditAtom.key that references atom with text inputs in the JobConfig.edit_list.
   * @return value or {@code null} for none
   */
  public java.lang.String getAtomKey() {
    return atomKey;
  }

  /**
   * Required. The EditAtom.key that references atom with text inputs in the JobConfig.edit_list.
   * @param atomKey atomKey or {@code null} for none
   */
  public TextMapping setAtomKey(java.lang.String atomKey) {
    this.atomKey = atomKey;
    return this;
  }

  /**
   * Required. The Input.key that identifies the input file.
   * @return value or {@code null} for none
   */
  public java.lang.String getInputKey() {
    return inputKey;
  }

  /**
   * Required. The Input.key that identifies the input file.
   * @param inputKey inputKey or {@code null} for none
   */
  public TextMapping setInputKey(java.lang.String inputKey) {
    this.inputKey = inputKey;
    return this;
  }

  /**
   * Required. The zero-based index of the track in the input file.
   * @return value or {@code null} for none
   */
  public java.lang.Integer getInputTrack() {
    return inputTrack;
  }

  /**
   * Required. The zero-based index of the track in the input file.
   * @param inputTrack inputTrack or {@code null} for none
   */
  public TextMapping setInputTrack(java.lang.Integer inputTrack) {
    this.inputTrack = inputTrack;
    return this;
  }

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

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

}
