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

com.google.api.services.integrations.v1alpha.model.GoogleCloudIntegrationsV1alphaFailurePolicy 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;

/**
 * Policy that defines the task retry logic and failure type. If no FailurePolicy is defined for a
 * task, all its dependent tasks will not be executed (i.e, a `retry_strategy` of NONE will be
 * applied).
 *
 * 

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 GoogleCloudIntegrationsV1alphaFailurePolicy extends com.google.api.client.json.GenericJson { /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in * seconds for backoff. * The value may be {@code null}. */ @com.google.api.client.util.Key private String intervalTime; /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the * task will be retried if failed. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Integer maxRetries; /** * Defines what happens to the task upon failure. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String retryStrategy; /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in * seconds for backoff. * @return value or {@code null} for none */ public String getIntervalTime() { return intervalTime; } /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in * seconds for backoff. * @param intervalTime intervalTime or {@code null} for none */ public GoogleCloudIntegrationsV1alphaFailurePolicy setIntervalTime(String intervalTime) { this.intervalTime = intervalTime; return this; } /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the * task will be retried if failed. * @return value or {@code null} for none */ public java.lang.Integer getMaxRetries() { return maxRetries; } /** * Required if retry_strategy is FIXED_INTERVAL or * LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the number of times the * task will be retried if failed. * @param maxRetries maxRetries or {@code null} for none */ public GoogleCloudIntegrationsV1alphaFailurePolicy setMaxRetries(java.lang.Integer maxRetries) { this.maxRetries = maxRetries; return this; } /** * Defines what happens to the task upon failure. * @return value or {@code null} for none */ public java.lang.String getRetryStrategy() { return retryStrategy; } /** * Defines what happens to the task upon failure. * @param retryStrategy retryStrategy or {@code null} for none */ public GoogleCloudIntegrationsV1alphaFailurePolicy setRetryStrategy(java.lang.String retryStrategy) { this.retryStrategy = retryStrategy; return this; } @Override public GoogleCloudIntegrationsV1alphaFailurePolicy set(String fieldName, Object value) { return (GoogleCloudIntegrationsV1alphaFailurePolicy) super.set(fieldName, value); } @Override public GoogleCloudIntegrationsV1alphaFailurePolicy clone() { return (GoogleCloudIntegrationsV1alphaFailurePolicy) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy