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

com.pulumi.azure.logicapps.inputs.ActionHttpState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.logicapps.inputs;

import com.pulumi.azure.logicapps.inputs.ActionHttpRunAfterArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 ActionHttpState extends com.pulumi.resources.ResourceArgs {

    public static final ActionHttpState Empty = new ActionHttpState();

    /**
     * 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")
    private @Nullable Output logicAppId;

    /**
     * @return Specifies the ID of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    public Optional> logicAppId() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> method() {
        return Optional.ofNullable(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")
    private @Nullable Output uri;

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

    private ActionHttpState() {}

    private ActionHttpState(ActionHttpState $) {
        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(ActionHttpState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private ActionHttpState $;

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

        public Builder(ActionHttpState defaults) {
            $ = new ActionHttpState(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(@Nullable 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(@Nullable 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(@Nullable 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 ActionHttpState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy