All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaTaskConfig Maven / Gradle / Ivy

/*
 * 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 task configuration details. This is not the implementation of Task. There might be multiple
 * TaskConfigs for the same Task.
 *
 * 

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: * https://developers.google.com/api-client-library/java/google-http-java-client/json *

* * @author Google, Inc. */ @SuppressWarnings("javadoc") public final class GoogleCloudIntegrationsV1alphaTaskConfig extends com.google.api.client.json.GenericJson { /** * Optional. User-provided description intended to give additional business context about the * task. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String description; /** * Optional. User-provided label that is attached to this TaskConfig in the UI. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String displayName; /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, * Schedule etc.). * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaFailurePolicy failurePolicy; /** * Optional. If set, overrides the option configured in the Task implementation class. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String jsonValidationOption; /** * Optional. The set of tasks that are next in line to be executed as per the execution graph * defined for the parent event, specified by `event_config_id`. Each of these next tasks are * executed only if the condition associated with them evaluates to true. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.List nextTasks; static { // hack to force ProGuard to consider GoogleCloudIntegrationsV1alphaNextTask 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(GoogleCloudIntegrationsV1alphaNextTask.class); } /** * Optional. The policy dictating the execution of the next set of tasks for the current task. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String nextTasksExecutionPolicy; /** * Optional. The customized parameters the user can pass to this task. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.util.Map parameters; static { // hack to force ProGuard to consider GoogleCloudIntegrationsV1alphaEventParameter 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(GoogleCloudIntegrationsV1alphaEventParameter.class); } /** * Optional. Determines what action to take upon successful task completion. * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaSuccessPolicy successPolicy; /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). * The value may be {@code null}. */ @com.google.api.client.util.Key private GoogleCloudIntegrationsV1alphaFailurePolicy synchronousCallFailurePolicy; /** * Optional. The name for the task. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String task; /** * Optional. The policy dictating the execution strategy of this task. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String taskExecutionStrategy; /** * Required. The identifier of this task within its parent event config, specified by the client. * This should be unique among all the tasks belong to the same event config. We use this field as * the identifier to find next tasks (via field `next_tasks.task_id`). * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String taskId; /** * Optional. Used to define task-template name if task is of type task-template * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String taskTemplate; /** * Optional. User-provided description intended to give additional business context about the * task. * @return value or {@code null} for none */ public java.lang.String getDescription() { return description; } /** * Optional. User-provided description intended to give additional business context about the * task. * @param description description or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setDescription(java.lang.String description) { this.description = description; return this; } /** * Optional. User-provided label that is attached to this TaskConfig in the UI. * @return value or {@code null} for none */ public java.lang.String getDisplayName() { return displayName; } /** * Optional. User-provided label that is attached to this TaskConfig in the UI. * @param displayName displayName or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setDisplayName(java.lang.String displayName) { this.displayName = displayName; return this; } /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, * Schedule etc.). * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaFailurePolicy getFailurePolicy() { return failurePolicy; } /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for asynchronous calls to Eventbus alone (Post To Queue, * Schedule etc.). * @param failurePolicy failurePolicy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setFailurePolicy(GoogleCloudIntegrationsV1alphaFailurePolicy failurePolicy) { this.failurePolicy = failurePolicy; return this; } /** * Optional. If set, overrides the option configured in the Task implementation class. * @return value or {@code null} for none */ public java.lang.String getJsonValidationOption() { return jsonValidationOption; } /** * Optional. If set, overrides the option configured in the Task implementation class. * @param jsonValidationOption jsonValidationOption or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setJsonValidationOption(java.lang.String jsonValidationOption) { this.jsonValidationOption = jsonValidationOption; return this; } /** * Optional. The set of tasks that are next in line to be executed as per the execution graph * defined for the parent event, specified by `event_config_id`. Each of these next tasks are * executed only if the condition associated with them evaluates to true. * @return value or {@code null} for none */ public java.util.List getNextTasks() { return nextTasks; } /** * Optional. The set of tasks that are next in line to be executed as per the execution graph * defined for the parent event, specified by `event_config_id`. Each of these next tasks are * executed only if the condition associated with them evaluates to true. * @param nextTasks nextTasks or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setNextTasks(java.util.List nextTasks) { this.nextTasks = nextTasks; return this; } /** * Optional. The policy dictating the execution of the next set of tasks for the current task. * @return value or {@code null} for none */ public java.lang.String getNextTasksExecutionPolicy() { return nextTasksExecutionPolicy; } /** * Optional. The policy dictating the execution of the next set of tasks for the current task. * @param nextTasksExecutionPolicy nextTasksExecutionPolicy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setNextTasksExecutionPolicy(java.lang.String nextTasksExecutionPolicy) { this.nextTasksExecutionPolicy = nextTasksExecutionPolicy; return this; } /** * Optional. The customized parameters the user can pass to this task. * @return value or {@code null} for none */ public java.util.Map getParameters() { return parameters; } /** * Optional. The customized parameters the user can pass to this task. * @param parameters parameters or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setParameters(java.util.Map parameters) { this.parameters = parameters; return this; } /** * Optional. Determines what action to take upon successful task completion. * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaSuccessPolicy getSuccessPolicy() { return successPolicy; } /** * Optional. Determines what action to take upon successful task completion. * @param successPolicy successPolicy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setSuccessPolicy(GoogleCloudIntegrationsV1alphaSuccessPolicy successPolicy) { this.successPolicy = successPolicy; return this; } /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). * @return value or {@code null} for none */ public GoogleCloudIntegrationsV1alphaFailurePolicy getSynchronousCallFailurePolicy() { return synchronousCallFailurePolicy; } /** * Optional. Determines the number of times the task will be retried on failure and with what * retry strategy. This is applicable for synchronous calls to Eventbus alone (Post). * @param synchronousCallFailurePolicy synchronousCallFailurePolicy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setSynchronousCallFailurePolicy(GoogleCloudIntegrationsV1alphaFailurePolicy synchronousCallFailurePolicy) { this.synchronousCallFailurePolicy = synchronousCallFailurePolicy; return this; } /** * Optional. The name for the task. * @return value or {@code null} for none */ public java.lang.String getTask() { return task; } /** * Optional. The name for the task. * @param task task or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setTask(java.lang.String task) { this.task = task; return this; } /** * Optional. The policy dictating the execution strategy of this task. * @return value or {@code null} for none */ public java.lang.String getTaskExecutionStrategy() { return taskExecutionStrategy; } /** * Optional. The policy dictating the execution strategy of this task. * @param taskExecutionStrategy taskExecutionStrategy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setTaskExecutionStrategy(java.lang.String taskExecutionStrategy) { this.taskExecutionStrategy = taskExecutionStrategy; return this; } /** * Required. The identifier of this task within its parent event config, specified by the client. * This should be unique among all the tasks belong to the same event config. We use this field as * the identifier to find next tasks (via field `next_tasks.task_id`). * @return value or {@code null} for none */ public java.lang.String getTaskId() { return taskId; } /** * Required. The identifier of this task within its parent event config, specified by the client. * This should be unique among all the tasks belong to the same event config. We use this field as * the identifier to find next tasks (via field `next_tasks.task_id`). * @param taskId taskId or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setTaskId(java.lang.String taskId) { this.taskId = taskId; return this; } /** * Optional. Used to define task-template name if task is of type task-template * @return value or {@code null} for none */ public java.lang.String getTaskTemplate() { return taskTemplate; } /** * Optional. Used to define task-template name if task is of type task-template * @param taskTemplate taskTemplate or {@code null} for none */ public GoogleCloudIntegrationsV1alphaTaskConfig setTaskTemplate(java.lang.String taskTemplate) { this.taskTemplate = taskTemplate; return this; } @Override public GoogleCloudIntegrationsV1alphaTaskConfig set(String fieldName, Object value) { return (GoogleCloudIntegrationsV1alphaTaskConfig) super.set(fieldName, value); } @Override public GoogleCloudIntegrationsV1alphaTaskConfig clone() { return (GoogleCloudIntegrationsV1alphaTaskConfig) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy