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

/**
 * Configuration detail of a error catch task
 *
 * <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 Application Integration 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 GoogleCloudIntegrationsV1alphaErrorCatcherConfig extends com.google.api.client.json.GenericJson {

  /**
   * Optional. User-provided description intended to give more business context about the error
   * catcher config.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String description;

  /**
   * Required. An error catcher id is string representation for the error catcher config. Within a
   * workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher
   * configs for the workflow
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String errorCatcherId;

  /**
   * Required. A number to uniquely identify each error catcher config within the workflow on UI.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String errorCatcherNumber;

  /**
   * Optional. The user created label for a particular error catcher. Optional.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String label;

  /**
   * Optional. Informs the front-end application where to draw this error catcher config on the UI.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private GoogleCloudIntegrationsV1alphaCoordinate position;

  /**
   * Required. The set of start tasks that are to be executed for the error catch flow
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<GoogleCloudIntegrationsV1alphaNextTask> startErrorTasks;

  /**
   * Optional. User-provided description intended to give more business context about the error
   * catcher config.
   * @return value or {@code null} for none
   */
  public java.lang.String getDescription() {
    return description;
  }

  /**
   * Optional. User-provided description intended to give more business context about the error
   * catcher config.
   * @param description description or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setDescription(java.lang.String description) {
    this.description = description;
    return this;
  }

  /**
   * Required. An error catcher id is string representation for the error catcher config. Within a
   * workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher
   * configs for the workflow
   * @return value or {@code null} for none
   */
  public java.lang.String getErrorCatcherId() {
    return errorCatcherId;
  }

  /**
   * Required. An error catcher id is string representation for the error catcher config. Within a
   * workflow, error_catcher_id uniquely identifies an error catcher config among all error catcher
   * configs for the workflow
   * @param errorCatcherId errorCatcherId or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setErrorCatcherId(java.lang.String errorCatcherId) {
    this.errorCatcherId = errorCatcherId;
    return this;
  }

  /**
   * Required. A number to uniquely identify each error catcher config within the workflow on UI.
   * @return value or {@code null} for none
   */
  public java.lang.String getErrorCatcherNumber() {
    return errorCatcherNumber;
  }

  /**
   * Required. A number to uniquely identify each error catcher config within the workflow on UI.
   * @param errorCatcherNumber errorCatcherNumber or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setErrorCatcherNumber(java.lang.String errorCatcherNumber) {
    this.errorCatcherNumber = errorCatcherNumber;
    return this;
  }

  /**
   * Optional. The user created label for a particular error catcher. Optional.
   * @return value or {@code null} for none
   */
  public java.lang.String getLabel() {
    return label;
  }

  /**
   * Optional. The user created label for a particular error catcher. Optional.
   * @param label label or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setLabel(java.lang.String label) {
    this.label = label;
    return this;
  }

  /**
   * Optional. Informs the front-end application where to draw this error catcher config on the UI.
   * @return value or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaCoordinate getPosition() {
    return position;
  }

  /**
   * Optional. Informs the front-end application where to draw this error catcher config on the UI.
   * @param position position or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setPosition(GoogleCloudIntegrationsV1alphaCoordinate position) {
    this.position = position;
    return this;
  }

  /**
   * Required. The set of start tasks that are to be executed for the error catch flow
   * @return value or {@code null} for none
   */
  public java.util.List<GoogleCloudIntegrationsV1alphaNextTask> getStartErrorTasks() {
    return startErrorTasks;
  }

  /**
   * Required. The set of start tasks that are to be executed for the error catch flow
   * @param startErrorTasks startErrorTasks or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaErrorCatcherConfig setStartErrorTasks(java.util.List<GoogleCloudIntegrationsV1alphaNextTask> startErrorTasks) {
    this.startErrorTasks = startErrorTasks;
    return this;
  }

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

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

}
