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

com.pulumi.googlenative.integrations.v1alpha.inputs.GoogleCloudIntegrationsV1alphaFailurePolicyArgs Maven / Gradle / Ivy

// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.googlenative.integrations.v1alpha.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.integrations.v1alpha.enums.GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * 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).
 * 
 */
public final class GoogleCloudIntegrationsV1alphaFailurePolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final GoogleCloudIntegrationsV1alphaFailurePolicyArgs Empty = new GoogleCloudIntegrationsV1alphaFailurePolicyArgs();

    /**
     * Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
     * 
     */
    @Import(name="intervalTime")
    private @Nullable Output intervalTime;

    /**
     * @return Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
     * 
     */
    public Optional> intervalTime() {
        return Optional.ofNullable(this.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.
     * 
     */
    @Import(name="maxRetries")
    private @Nullable Output maxRetries;

    /**
     * @return 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.
     * 
     */
    public Optional> maxRetries() {
        return Optional.ofNullable(this.maxRetries);
    }

    /**
     * Defines what happens to the task upon failure.
     * 
     */
    @Import(name="retryStrategy")
    private @Nullable Output retryStrategy;

    /**
     * @return Defines what happens to the task upon failure.
     * 
     */
    public Optional> retryStrategy() {
        return Optional.ofNullable(this.retryStrategy);
    }

    private GoogleCloudIntegrationsV1alphaFailurePolicyArgs() {}

    private GoogleCloudIntegrationsV1alphaFailurePolicyArgs(GoogleCloudIntegrationsV1alphaFailurePolicyArgs $) {
        this.intervalTime = $.intervalTime;
        this.maxRetries = $.maxRetries;
        this.retryStrategy = $.retryStrategy;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(GoogleCloudIntegrationsV1alphaFailurePolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private GoogleCloudIntegrationsV1alphaFailurePolicyArgs $;

        public Builder() {
            $ = new GoogleCloudIntegrationsV1alphaFailurePolicyArgs();
        }

        public Builder(GoogleCloudIntegrationsV1alphaFailurePolicyArgs defaults) {
            $ = new GoogleCloudIntegrationsV1alphaFailurePolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param intervalTime Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
         * 
         * @return builder
         * 
         */
        public Builder intervalTime(@Nullable Output intervalTime) {
            $.intervalTime = intervalTime;
            return this;
        }

        /**
         * @param intervalTime Required if retry_strategy is FIXED_INTERVAL or LINEAR/EXPONENTIAL_BACKOFF/RESTART_INTEGRATION_WITH_BACKOFF. Defines the initial interval in seconds for backoff.
         * 
         * @return builder
         * 
         */
        public Builder intervalTime(String intervalTime) {
            return intervalTime(Output.of(intervalTime));
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder maxRetries(@Nullable Output maxRetries) {
            $.maxRetries = maxRetries;
            return this;
        }

        /**
         * @param 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.
         * 
         * @return builder
         * 
         */
        public Builder maxRetries(Integer maxRetries) {
            return maxRetries(Output.of(maxRetries));
        }

        /**
         * @param retryStrategy Defines what happens to the task upon failure.
         * 
         * @return builder
         * 
         */
        public Builder retryStrategy(@Nullable Output retryStrategy) {
            $.retryStrategy = retryStrategy;
            return this;
        }

        /**
         * @param retryStrategy Defines what happens to the task upon failure.
         * 
         * @return builder
         * 
         */
        public Builder retryStrategy(GoogleCloudIntegrationsV1alphaFailurePolicyRetryStrategy retryStrategy) {
            return retryStrategy(Output.of(retryStrategy));
        }

        public GoogleCloudIntegrationsV1alphaFailurePolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy