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

com.pulumi.azurenative.scheduler.inputs.JobErrorActionArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
Show newest version
// *** 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.azurenative.scheduler.inputs;

import com.pulumi.azurenative.scheduler.enums.JobActionType;
import com.pulumi.azurenative.scheduler.inputs.HttpRequestArgs;
import com.pulumi.azurenative.scheduler.inputs.RetryPolicyArgs;
import com.pulumi.azurenative.scheduler.inputs.ServiceBusQueueMessageArgs;
import com.pulumi.azurenative.scheduler.inputs.ServiceBusTopicMessageArgs;
import com.pulumi.azurenative.scheduler.inputs.StorageQueueMessageArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class JobErrorActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final JobErrorActionArgs Empty = new JobErrorActionArgs();

    /**
     * Gets or sets the storage queue message.
     * 
     */
    @Import(name="queueMessage")
    private @Nullable Output queueMessage;

    /**
     * @return Gets or sets the storage queue message.
     * 
     */
    public Optional> queueMessage() {
        return Optional.ofNullable(this.queueMessage);
    }

    /**
     * Gets or sets the http requests.
     * 
     */
    @Import(name="request")
    private @Nullable Output request;

    /**
     * @return Gets or sets the http requests.
     * 
     */
    public Optional> request() {
        return Optional.ofNullable(this.request);
    }

    /**
     * Gets or sets the retry policy.
     * 
     */
    @Import(name="retryPolicy")
    private @Nullable Output retryPolicy;

    /**
     * @return Gets or sets the retry policy.
     * 
     */
    public Optional> retryPolicy() {
        return Optional.ofNullable(this.retryPolicy);
    }

    /**
     * Gets or sets the service bus queue message.
     * 
     */
    @Import(name="serviceBusQueueMessage")
    private @Nullable Output serviceBusQueueMessage;

    /**
     * @return Gets or sets the service bus queue message.
     * 
     */
    public Optional> serviceBusQueueMessage() {
        return Optional.ofNullable(this.serviceBusQueueMessage);
    }

    /**
     * Gets or sets the service bus topic message.
     * 
     */
    @Import(name="serviceBusTopicMessage")
    private @Nullable Output serviceBusTopicMessage;

    /**
     * @return Gets or sets the service bus topic message.
     * 
     */
    public Optional> serviceBusTopicMessage() {
        return Optional.ofNullable(this.serviceBusTopicMessage);
    }

    /**
     * Gets or sets the job error action type.
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Gets or sets the job error action type.
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private JobErrorActionArgs() {}

    private JobErrorActionArgs(JobErrorActionArgs $) {
        this.queueMessage = $.queueMessage;
        this.request = $.request;
        this.retryPolicy = $.retryPolicy;
        this.serviceBusQueueMessage = $.serviceBusQueueMessage;
        this.serviceBusTopicMessage = $.serviceBusTopicMessage;
        this.type = $.type;
    }

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

    public static final class Builder {
        private JobErrorActionArgs $;

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

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

        /**
         * @param queueMessage Gets or sets the storage queue message.
         * 
         * @return builder
         * 
         */
        public Builder queueMessage(@Nullable Output queueMessage) {
            $.queueMessage = queueMessage;
            return this;
        }

        /**
         * @param queueMessage Gets or sets the storage queue message.
         * 
         * @return builder
         * 
         */
        public Builder queueMessage(StorageQueueMessageArgs queueMessage) {
            return queueMessage(Output.of(queueMessage));
        }

        /**
         * @param request Gets or sets the http requests.
         * 
         * @return builder
         * 
         */
        public Builder request(@Nullable Output request) {
            $.request = request;
            return this;
        }

        /**
         * @param request Gets or sets the http requests.
         * 
         * @return builder
         * 
         */
        public Builder request(HttpRequestArgs request) {
            return request(Output.of(request));
        }

        /**
         * @param retryPolicy Gets or sets the retry policy.
         * 
         * @return builder
         * 
         */
        public Builder retryPolicy(@Nullable Output retryPolicy) {
            $.retryPolicy = retryPolicy;
            return this;
        }

        /**
         * @param retryPolicy Gets or sets the retry policy.
         * 
         * @return builder
         * 
         */
        public Builder retryPolicy(RetryPolicyArgs retryPolicy) {
            return retryPolicy(Output.of(retryPolicy));
        }

        /**
         * @param serviceBusQueueMessage Gets or sets the service bus queue message.
         * 
         * @return builder
         * 
         */
        public Builder serviceBusQueueMessage(@Nullable Output serviceBusQueueMessage) {
            $.serviceBusQueueMessage = serviceBusQueueMessage;
            return this;
        }

        /**
         * @param serviceBusQueueMessage Gets or sets the service bus queue message.
         * 
         * @return builder
         * 
         */
        public Builder serviceBusQueueMessage(ServiceBusQueueMessageArgs serviceBusQueueMessage) {
            return serviceBusQueueMessage(Output.of(serviceBusQueueMessage));
        }

        /**
         * @param serviceBusTopicMessage Gets or sets the service bus topic message.
         * 
         * @return builder
         * 
         */
        public Builder serviceBusTopicMessage(@Nullable Output serviceBusTopicMessage) {
            $.serviceBusTopicMessage = serviceBusTopicMessage;
            return this;
        }

        /**
         * @param serviceBusTopicMessage Gets or sets the service bus topic message.
         * 
         * @return builder
         * 
         */
        public Builder serviceBusTopicMessage(ServiceBusTopicMessageArgs serviceBusTopicMessage) {
            return serviceBusTopicMessage(Output.of(serviceBusTopicMessage));
        }

        /**
         * @param type Gets or sets the job error action type.
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Gets or sets the job error action type.
         * 
         * @return builder
         * 
         */
        public Builder type(JobActionType type) {
            return type(Output.of(type));
        }

        public JobErrorActionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy