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

/**
 * Runtime configuration for a workload.
 *
 * <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 Cloud Dataproc 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 RuntimeConfig extends com.google.api.client.json.GenericJson {

  /**
   * Optional. Optional custom container image for the job runtime environment. If not specified, a
   * default container image will be used.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String containerImage;

  /**
   * Optional. A mapping of property names to values, which are used to configure workload
   * execution.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, java.lang.String> properties;

  /**
   * Optional. Version of the batch runtime.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String version;

  /**
   * Optional. Optional custom container image for the job runtime environment. If not specified, a
   * default container image will be used.
   * @return value or {@code null} for none
   */
  public java.lang.String getContainerImage() {
    return containerImage;
  }

  /**
   * Optional. Optional custom container image for the job runtime environment. If not specified, a
   * default container image will be used.
   * @param containerImage containerImage or {@code null} for none
   */
  public RuntimeConfig setContainerImage(java.lang.String containerImage) {
    this.containerImage = containerImage;
    return this;
  }

  /**
   * Optional. A mapping of property names to values, which are used to configure workload
   * execution.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, java.lang.String> getProperties() {
    return properties;
  }

  /**
   * Optional. A mapping of property names to values, which are used to configure workload
   * execution.
   * @param properties properties or {@code null} for none
   */
  public RuntimeConfig setProperties(java.util.Map<String, java.lang.String> properties) {
    this.properties = properties;
    return this;
  }

  /**
   * Optional. Version of the batch runtime.
   * @return value or {@code null} for none
   */
  public java.lang.String getVersion() {
    return version;
  }

  /**
   * Optional. Version of the batch runtime.
   * @param version version or {@code null} for none
   */
  public RuntimeConfig setVersion(java.lang.String version) {
    this.version = version;
    return this;
  }

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

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

}
