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

com.pulumi.azure.logicapps.ActionHttpArgs 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.azure.logicapps;

import com.pulumi.azure.logicapps.inputs.ActionHttpRunAfterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ActionHttpArgs Empty = new ActionHttpArgs();

    /**
     * Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    @Import(name="body")
    private @Nullable Output body;

    /**
     * @return Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    public Optional> body() {
        return Optional.ofNullable(this.body);
    }

    /**
     * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    @Import(name="headers")
    private @Nullable Output> headers;

    /**
     * @return Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    public Optional>> headers() {
        return Optional.ofNullable(this.headers);
    }

    /**
     * Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="logicAppId", required=true)
    private Output logicAppId;

    /**
     * @return Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    public Output logicAppId() {
        return this.logicAppId;
    }

    /**
     * Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`.
     * 
     */
    @Import(name="method", required=true)
    private Output method;

    /**
     * @return Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`.
     * 
     */
    public Output method() {
        return this.method;
    }

    /**
     * Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** This name must be unique across all Actions within the Logic App Workflow.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** This name must be unique across all Actions within the Logic App Workflow.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    @Import(name="queries")
    private @Nullable Output> queries;

    /**
     * @return Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
     * 
     */
    public Optional>> queries() {
        return Optional.ofNullable(this.queries);
    }

    /**
     * Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `run_after` block is as defined below.
     * 
     */
    @Import(name="runAfters")
    private @Nullable Output> runAfters;

    /**
     * @return Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `run_after` block is as defined below.
     * 
     */
    public Optional>> runAfters() {
        return Optional.ofNullable(this.runAfters);
    }

    /**
     * Specifies the URI which will be called when this HTTP Action is triggered.
     * 
     */
    @Import(name="uri", required=true)
    private Output uri;

    /**
     * @return Specifies the URI which will be called when this HTTP Action is triggered.
     * 
     */
    public Output uri() {
        return this.uri;
    }

    private ActionHttpArgs() {}

    private ActionHttpArgs(ActionHttpArgs $) {
        this.body = $.body;
        this.headers = $.headers;
        this.logicAppId = $.logicAppId;
        this.method = $.method;
        this.name = $.name;
        this.queries = $.queries;
        this.runAfters = $.runAfters;
        this.uri = $.uri;
    }

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

    public static final class Builder {
        private ActionHttpArgs $;

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

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

        /**
         * @param body Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder body(@Nullable Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body Specifies the HTTP Body that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param headers Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder headers(@Nullable Output> headers) {
            $.headers = headers;
            return this;
        }

        /**
         * @param headers Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder headers(Map headers) {
            return headers(Output.of(headers));
        }

        /**
         * @param logicAppId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder logicAppId(Output logicAppId) {
            $.logicAppId = logicAppId;
            return this;
        }

        /**
         * @param logicAppId Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder logicAppId(String logicAppId) {
            return logicAppId(Output.of(logicAppId));
        }

        /**
         * @param method Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`.
         * 
         * @return builder
         * 
         */
        public Builder method(Output method) {
            $.method = method;
            return this;
        }

        /**
         * @param method Specifies the HTTP Method which should be used for this HTTP Action. Possible values include `DELETE`, `GET`, `PATCH`, `POST` and `PUT`.
         * 
         * @return builder
         * 
         */
        public Builder method(String method) {
            return method(Output.of(method));
        }

        /**
         * @param name Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** This name must be unique across all Actions within the Logic App Workflow.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the HTTP Action to be created within the Logic App Workflow. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** This name must be unique across all Actions within the Logic App Workflow.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param queries Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder queries(@Nullable Output> queries) {
            $.queries = queries;
            return this;
        }

        /**
         * @param queries Specifies a Map of Key-Value Pairs that should be sent to the `uri` when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder queries(Map queries) {
            return queries(Output.of(queries));
        }

        /**
         * @param runAfters Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `run_after` block is as defined below.
         * 
         * @return builder
         * 
         */
        public Builder runAfters(@Nullable Output> runAfters) {
            $.runAfters = runAfters;
            return this;
        }

        /**
         * @param runAfters Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `run_after` block is as defined below.
         * 
         * @return builder
         * 
         */
        public Builder runAfters(List runAfters) {
            return runAfters(Output.of(runAfters));
        }

        /**
         * @param runAfters Specifies the place of the HTTP Action in the Logic App Workflow. If not specified, the HTTP Action is right after the Trigger. A `run_after` block is as defined below.
         * 
         * @return builder
         * 
         */
        public Builder runAfters(ActionHttpRunAfterArgs... runAfters) {
            return runAfters(List.of(runAfters));
        }

        /**
         * @param uri Specifies the URI which will be called when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder uri(Output uri) {
            $.uri = uri;
            return this;
        }

        /**
         * @param uri Specifies the URI which will be called when this HTTP Action is triggered.
         * 
         * @return builder
         * 
         */
        public Builder uri(String uri) {
            return uri(Output.of(uri));
        }

        public ActionHttpArgs build() {
            if ($.logicAppId == null) {
                throw new MissingRequiredPropertyException("ActionHttpArgs", "logicAppId");
            }
            if ($.method == null) {
                throw new MissingRequiredPropertyException("ActionHttpArgs", "method");
            }
            if ($.uri == null) {
                throw new MissingRequiredPropertyException("ActionHttpArgs", "uri");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy