com.google.api.services.integrations.v1alpha.model.EnterpriseCrmEventbusProtoFailurePolicy 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 EnterpriseCrmEventbusProtoFailurePolicy extends com.google.api.client.json.GenericJson {
/**
* Required if retry_strategy is FIXED_INTERVAL or
* LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for
* backoff.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
private java.lang.Long intervalInSeconds;
/**
* Required if retry_strategy is FIXED_INTERVAL or
* LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_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 maxNumRetries;
/**
* 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_WORKFLOW_WITH_BACKOFF. Defines the initial interval for
* backoff.
* @return value or {@code null} for none
*/
public java.lang.Long getIntervalInSeconds() {
return intervalInSeconds;
}
/**
* Required if retry_strategy is FIXED_INTERVAL or
* LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the initial interval for
* backoff.
* @param intervalInSeconds intervalInSeconds or {@code null} for none
*/
public EnterpriseCrmEventbusProtoFailurePolicy setIntervalInSeconds(java.lang.Long intervalInSeconds) {
this.intervalInSeconds = intervalInSeconds;
return this;
}
/**
* Required if retry_strategy is FIXED_INTERVAL or
* LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_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 getMaxNumRetries() {
return maxNumRetries;
}
/**
* Required if retry_strategy is FIXED_INTERVAL or
* LINEAR/EXPONENTIAL_BACKOFF/RESTART_WORKFLOW_WITH_BACKOFF. Defines the number of times the task
* will be retried if failed.
* @param maxNumRetries maxNumRetries or {@code null} for none
*/
public EnterpriseCrmEventbusProtoFailurePolicy setMaxNumRetries(java.lang.Integer maxNumRetries) {
this.maxNumRetries = maxNumRetries;
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 EnterpriseCrmEventbusProtoFailurePolicy setRetryStrategy(java.lang.String retryStrategy) {
this.retryStrategy = retryStrategy;
return this;
}
@Override
public EnterpriseCrmEventbusProtoFailurePolicy set(String fieldName, Object value) {
return (EnterpriseCrmEventbusProtoFailurePolicy) super.set(fieldName, value);
}
@Override
public EnterpriseCrmEventbusProtoFailurePolicy clone() {
return (EnterpriseCrmEventbusProtoFailurePolicy) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy