/*
 * 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;

/**
 * The request for scheduling an integration.
 *
 * <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 GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest extends com.google.api.client.json.GenericJson {

  /**
   * Optional. Input parameters used by integration execution.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.Map<String, GoogleCloudIntegrationsV1alphaValueType> inputParameters;

  /**
   * Parameters are a part of Event and can be used to communicate between different tasks that are
   * part of the same integration execution.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.util.List<EnterpriseCrmFrontendsEventbusProtoParameterEntry> parameterEntries;

  static {
    // hack to force ProGuard to consider EnterpriseCrmFrontendsEventbusProtoParameterEntry used, since otherwise it would be stripped out
    // see https://github.com/google/google-api-java-client/issues/543
    com.google.api.client.util.Data.nullOf(EnterpriseCrmFrontendsEventbusProtoParameterEntry.class);
  }

  /**
   * Passed in as parameters to each integration execution.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private EnterpriseCrmEventbusProtoEventParameters parameters;

  /**
   * This is used to de-dup incoming request: if the duplicate request was detected, the response
   * from the previous execution is returned.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String requestId;

  /**
   * The time that the integration should be executed. If the time is less or equal to the current
   * time, the integration is executed immediately.
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private String scheduleTime;

  /**
   * Required. Matched against all {@link TriggerConfig}s across all integrations. i.e.
   * TriggerConfig.trigger_id.equals(trigger_id)
   * The value may be {@code null}.
   */
  @com.google.api.client.util.Key
  private java.lang.String triggerId;

  /**
   * Optional. Input parameters used by integration execution.
   * @return value or {@code null} for none
   */
  public java.util.Map<String, GoogleCloudIntegrationsV1alphaValueType> getInputParameters() {
    return inputParameters;
  }

  /**
   * Optional. Input parameters used by integration execution.
   * @param inputParameters inputParameters or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setInputParameters(java.util.Map<String, GoogleCloudIntegrationsV1alphaValueType> inputParameters) {
    this.inputParameters = inputParameters;
    return this;
  }

  /**
   * Parameters are a part of Event and can be used to communicate between different tasks that are
   * part of the same integration execution.
   * @return value or {@code null} for none
   */
  public java.util.List<EnterpriseCrmFrontendsEventbusProtoParameterEntry> getParameterEntries() {
    return parameterEntries;
  }

  /**
   * Parameters are a part of Event and can be used to communicate between different tasks that are
   * part of the same integration execution.
   * @param parameterEntries parameterEntries or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setParameterEntries(java.util.List<EnterpriseCrmFrontendsEventbusProtoParameterEntry> parameterEntries) {
    this.parameterEntries = parameterEntries;
    return this;
  }

  /**
   * Passed in as parameters to each integration execution.
   * @return value or {@code null} for none
   */
  public EnterpriseCrmEventbusProtoEventParameters getParameters() {
    return parameters;
  }

  /**
   * Passed in as parameters to each integration execution.
   * @param parameters parameters or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setParameters(EnterpriseCrmEventbusProtoEventParameters parameters) {
    this.parameters = parameters;
    return this;
  }

  /**
   * This is used to de-dup incoming request: if the duplicate request was detected, the response
   * from the previous execution is returned.
   * @return value or {@code null} for none
   */
  public java.lang.String getRequestId() {
    return requestId;
  }

  /**
   * This is used to de-dup incoming request: if the duplicate request was detected, the response
   * from the previous execution is returned.
   * @param requestId requestId or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setRequestId(java.lang.String requestId) {
    this.requestId = requestId;
    return this;
  }

  /**
   * The time that the integration should be executed. If the time is less or equal to the current
   * time, the integration is executed immediately.
   * @return value or {@code null} for none
   */
  public String getScheduleTime() {
    return scheduleTime;
  }

  /**
   * The time that the integration should be executed. If the time is less or equal to the current
   * time, the integration is executed immediately.
   * @param scheduleTime scheduleTime or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setScheduleTime(String scheduleTime) {
    this.scheduleTime = scheduleTime;
    return this;
  }

  /**
   * Required. Matched against all {@link TriggerConfig}s across all integrations. i.e.
   * TriggerConfig.trigger_id.equals(trigger_id)
   * @return value or {@code null} for none
   */
  public java.lang.String getTriggerId() {
    return triggerId;
  }

  /**
   * Required. Matched against all {@link TriggerConfig}s across all integrations. i.e.
   * TriggerConfig.trigger_id.equals(trigger_id)
   * @param triggerId triggerId or {@code null} for none
   */
  public GoogleCloudIntegrationsV1alphaScheduleIntegrationsRequest setTriggerId(java.lang.String triggerId) {
    this.triggerId = triggerId;
    return this;
  }

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

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

}
