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

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

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


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

    public static final WorkflowArgs Empty = new WorkflowArgs();

    /**
     * A `access_control` block as defined below.
     * 
     */
    @Import(name="accessControl")
    private @Nullable Output accessControl;

    /**
     * @return A `access_control` block as defined below.
     * 
     */
    public Optional> accessControl() {
        return Optional.ofNullable(this.accessControl);
    }

    /**
     * Is the Logic App Workflow enabled? Defaults to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Is the Logic App Workflow enabled? Defaults to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * An `identity` block as defined below.
     * 
     */
    @Import(name="identity")
    private @Nullable Output identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Optional> identity() {
        return Optional.ofNullable(this.identity);
    }

    /**
     * The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
     * 
     */
    @Import(name="integrationServiceEnvironmentId")
    private @Nullable Output integrationServiceEnvironmentId;

    /**
     * @return The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
     * 
     */
    public Optional> integrationServiceEnvironmentId() {
        return Optional.ofNullable(this.integrationServiceEnvironmentId);
    }

    /**
     * Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The ID of the integration account linked by this Logic App Workflow.
     * 
     */
    @Import(name="logicAppIntegrationAccountId")
    private @Nullable Output logicAppIntegrationAccountId;

    /**
     * @return The ID of the integration account linked by this Logic App Workflow.
     * 
     */
    public Optional> logicAppIntegrationAccountId() {
        return Optional.ofNullable(this.logicAppIntegrationAccountId);
    }

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

    /**
     * @return Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A map of Key-Value pairs.
     * 
     * > **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
     * 
     */
    @Import(name="parameters")
    private @Nullable Output> parameters;

    /**
     * @return A map of Key-Value pairs.
     * 
     * > **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
     * 
     */
    public Optional>> parameters() {
        return Optional.ofNullable(this.parameters);
    }

    /**
     * The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
     * 
     */
    @Import(name="workflowParameters")
    private @Nullable Output> workflowParameters;

    /**
     * @return Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
     * 
     */
    public Optional>> workflowParameters() {
        return Optional.ofNullable(this.workflowParameters);
    }

    /**
     * Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="workflowSchema")
    private @Nullable Output workflowSchema;

    /**
     * @return Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> workflowSchema() {
        return Optional.ofNullable(this.workflowSchema);
    }

    /**
     * Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="workflowVersion")
    private @Nullable Output workflowVersion;

    /**
     * @return Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
     * 
     */
    public Optional> workflowVersion() {
        return Optional.ofNullable(this.workflowVersion);
    }

    private WorkflowArgs() {}

    private WorkflowArgs(WorkflowArgs $) {
        this.accessControl = $.accessControl;
        this.enabled = $.enabled;
        this.identity = $.identity;
        this.integrationServiceEnvironmentId = $.integrationServiceEnvironmentId;
        this.location = $.location;
        this.logicAppIntegrationAccountId = $.logicAppIntegrationAccountId;
        this.name = $.name;
        this.parameters = $.parameters;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.workflowParameters = $.workflowParameters;
        this.workflowSchema = $.workflowSchema;
        this.workflowVersion = $.workflowVersion;
    }

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

    public static final class Builder {
        private WorkflowArgs $;

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

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

        /**
         * @param accessControl A `access_control` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder accessControl(@Nullable Output accessControl) {
            $.accessControl = accessControl;
            return this;
        }

        /**
         * @param accessControl A `access_control` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder accessControl(WorkflowAccessControlArgs accessControl) {
            return accessControl(Output.of(accessControl));
        }

        /**
         * @param enabled Is the Logic App Workflow enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Is the Logic App Workflow enabled? Defaults to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(@Nullable Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity An `identity` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder identity(WorkflowIdentityArgs identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param integrationServiceEnvironmentId The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
         * 
         * @return builder
         * 
         */
        public Builder integrationServiceEnvironmentId(@Nullable Output integrationServiceEnvironmentId) {
            $.integrationServiceEnvironmentId = integrationServiceEnvironmentId;
            return this;
        }

        /**
         * @param integrationServiceEnvironmentId The ID of the Integration Service Environment to which this Logic App Workflow belongs. Changing this forces a new Logic App Workflow to be created.
         * 
         * @return builder
         * 
         */
        public Builder integrationServiceEnvironmentId(String integrationServiceEnvironmentId) {
            return integrationServiceEnvironmentId(Output.of(integrationServiceEnvironmentId));
        }

        /**
         * @param location Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

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

        /**
         * @param logicAppIntegrationAccountId The ID of the integration account linked by this Logic App Workflow.
         * 
         * @return builder
         * 
         */
        public Builder logicAppIntegrationAccountId(@Nullable Output logicAppIntegrationAccountId) {
            $.logicAppIntegrationAccountId = logicAppIntegrationAccountId;
            return this;
        }

        /**
         * @param logicAppIntegrationAccountId The ID of the integration account linked by this Logic App Workflow.
         * 
         * @return builder
         * 
         */
        public Builder logicAppIntegrationAccountId(String logicAppIntegrationAccountId) {
            return logicAppIntegrationAccountId(Output.of(logicAppIntegrationAccountId));
        }

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

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

        /**
         * @param parameters A map of Key-Value pairs.
         * 
         * > **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
         * 
         * @return builder
         * 
         */
        public Builder parameters(@Nullable Output> parameters) {
            $.parameters = parameters;
            return this;
        }

        /**
         * @param parameters A map of Key-Value pairs.
         * 
         * > **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
         * 
         * @return builder
         * 
         */
        public Builder parameters(Map parameters) {
            return parameters(Output.of(parameters));
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Resource Group in which the Logic App Workflow should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param workflowParameters Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
         * 
         * @return builder
         * 
         */
        public Builder workflowParameters(@Nullable Output> workflowParameters) {
            $.workflowParameters = workflowParameters;
            return this;
        }

        /**
         * @param workflowParameters Specifies a map of Key-Value pairs of the Parameter Definitions to use for this Logic App Workflow. The key is the parameter name, and the value is a JSON encoded string of the parameter definition (see: <https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters>).
         * 
         * @return builder
         * 
         */
        public Builder workflowParameters(Map workflowParameters) {
            return workflowParameters(Output.of(workflowParameters));
        }

        /**
         * @param workflowSchema Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workflowSchema(@Nullable Output workflowSchema) {
            $.workflowSchema = workflowSchema;
            return this;
        }

        /**
         * @param workflowSchema Specifies the Schema to use for this Logic App Workflow. Defaults to `https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workflowSchema(String workflowSchema) {
            return workflowSchema(Output.of(workflowSchema));
        }

        /**
         * @param workflowVersion Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workflowVersion(@Nullable Output workflowVersion) {
            $.workflowVersion = workflowVersion;
            return this;
        }

        /**
         * @param workflowVersion Specifies the version of the Schema used for this Logic App Workflow. Defaults to `1.0.0.0`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder workflowVersion(String workflowVersion) {
            return workflowVersion(Output.of(workflowVersion));
        }

        public WorkflowArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("WorkflowArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy