// *** 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.Utilities;
import com.pulumi.azure.logicapps.WorkflowArgs;
import com.pulumi.azure.logicapps.inputs.WorkflowState;
import com.pulumi.azure.logicapps.outputs.WorkflowAccessControl;
import com.pulumi.azure.logicapps.outputs.WorkflowIdentity;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Logic App Workflow.
 * 
 * ## Example Usage
 * ```java
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.logicapps.Workflow;
 * import com.pulumi.azure.logicapps.WorkflowArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var exampleResourceGroup = new ResourceGroup(&#34;exampleResourceGroup&#34;, ResourceGroupArgs.builder()        
 *             .location(&#34;West Europe&#34;)
 *             .build());
 * 
 *         var exampleWorkflow = new Workflow(&#34;exampleWorkflow&#34;, WorkflowArgs.builder()        
 *             .location(exampleResourceGroup.location())
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .build());
 * 
 *     }
 * }
 * ```
 * 
 * ## Import
 * 
 * Logic App Workflows can be imported using the `resource id`, e.g.
 * 
 * ```sh
 *  $ pulumi import azure:logicapps/workflow:Workflow workflow1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Logic/workflows/workflow1
 * ```
 * 
 */
@ResourceType(type="azure:logicapps/workflow:Workflow")
public class Workflow extends com.pulumi.resources.CustomResource {
    /**
     * A `access_control` block as defined below.
     * 
     */
    @Export(name="accessControl", refs={WorkflowAccessControl.class}, tree="[0]")
    private Output</* @Nullable */ WorkflowAccessControl> accessControl;

    /**
     * @return A `access_control` block as defined below.
     * 
     */
    public Output<Optional<WorkflowAccessControl>> accessControl() {
        return Codegen.optional(this.accessControl);
    }
    /**
     * The Access Endpoint for the Logic App Workflow.
     * 
     */
    @Export(name="accessEndpoint", refs={String.class}, tree="[0]")
    private Output<String> accessEndpoint;

    /**
     * @return The Access Endpoint for the Logic App Workflow.
     * 
     */
    public Output<String> accessEndpoint() {
        return this.accessEndpoint;
    }
    /**
     * The list of access endpoint IP addresses of connector.
     * 
     */
    @Export(name="connectorEndpointIpAddresses", refs={List.class,String.class}, tree="[0,1]")
    private Output<List<String>> connectorEndpointIpAddresses;

    /**
     * @return The list of access endpoint IP addresses of connector.
     * 
     */
    public Output<List<String>> connectorEndpointIpAddresses() {
        return this.connectorEndpointIpAddresses;
    }
    /**
     * The list of outgoing IP addresses of connector.
     * 
     */
    @Export(name="connectorOutboundIpAddresses", refs={List.class,String.class}, tree="[0,1]")
    private Output<List<String>> connectorOutboundIpAddresses;

    /**
     * @return The list of outgoing IP addresses of connector.
     * 
     */
    public Output<List<String>> connectorOutboundIpAddresses() {
        return this.connectorOutboundIpAddresses;
    }
    /**
     * Is the Logic App Workflow enabled? Defaults to `true`.
     * 
     */
    @Export(name="enabled", refs={Boolean.class}, tree="[0]")
    private Output</* @Nullable */ Boolean> enabled;

    /**
     * @return Is the Logic App Workflow enabled? Defaults to `true`.
     * 
     */
    public Output<Optional<Boolean>> enabled() {
        return Codegen.optional(this.enabled);
    }
    /**
     * An `identity` block as defined below.
     * 
     */
    @Export(name="identity", refs={WorkflowIdentity.class}, tree="[0]")
    private Output</* @Nullable */ WorkflowIdentity> identity;

    /**
     * @return An `identity` block as defined below.
     * 
     */
    public Output<Optional<WorkflowIdentity>> identity() {
        return Codegen.optional(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.
     * 
     */
    @Export(name="integrationServiceEnvironmentId", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> 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 Output<Optional<String>> integrationServiceEnvironmentId() {
        return Codegen.optional(this.integrationServiceEnvironmentId);
    }
    /**
     * Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="location", refs={String.class}, tree="[0]")
    private Output<String> location;

    /**
     * @return Specifies the supported Azure location where the Logic App Workflow exists. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> location() {
        return this.location;
    }
    /**
     * The ID of the integration account linked by this Logic App Workflow.
     * 
     */
    @Export(name="logicAppIntegrationAccountId", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> logicAppIntegrationAccountId;

    /**
     * @return The ID of the integration account linked by this Logic App Workflow.
     * 
     */
    public Output<Optional<String>> logicAppIntegrationAccountId() {
        return Codegen.optional(this.logicAppIntegrationAccountId);
    }
    /**
     * Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output<String> name;

    /**
     * @return Specifies the name of the Logic App Workflow. Changing this forces a new resource to be created.
     * 
     */
    public Output<String> name() {
        return this.name;
    }
    /**
     * A map of Key-Value pairs.
     * 
     * &gt; **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
     * 
     */
    @Export(name="parameters", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output</* @Nullable */ Map<String,String>> parameters;

    /**
     * @return A map of Key-Value pairs.
     * 
     * &gt; **NOTE:** Any parameters specified must exist in the Schema defined in `workflow_parameters`.
     * 
     */
    public Output<Optional<Map<String,String>>> parameters() {
        return Codegen.optional(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.
     * 
     */
    @Export(name="resourceGroupName", refs={String.class}, tree="[0]")
    private Output<String> 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<String> resourceGroupName() {
        return this.resourceGroupName;
    }
    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output</* @Nullable */ Map<String,String>> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Output<Optional<Map<String,String>>> tags() {
        return Codegen.optional(this.tags);
    }
    /**
     * The list of access endpoint IP addresses of workflow.
     * 
     */
    @Export(name="workflowEndpointIpAddresses", refs={List.class,String.class}, tree="[0,1]")
    private Output<List<String>> workflowEndpointIpAddresses;

    /**
     * @return The list of access endpoint IP addresses of workflow.
     * 
     */
    public Output<List<String>> workflowEndpointIpAddresses() {
        return this.workflowEndpointIpAddresses;
    }
    /**
     * The list of outgoing IP addresses of workflow.
     * 
     */
    @Export(name="workflowOutboundIpAddresses", refs={List.class,String.class}, tree="[0,1]")
    private Output<List<String>> workflowOutboundIpAddresses;

    /**
     * @return The list of outgoing IP addresses of workflow.
     * 
     */
    public Output<List<String>> workflowOutboundIpAddresses() {
        return this.workflowOutboundIpAddresses;
    }
    /**
     * 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: &lt;https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters&gt;).
     * 
     */
    @Export(name="workflowParameters", refs={Map.class,String.class}, tree="[0,1,1]")
    private Output</* @Nullable */ Map<String,String>> 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: &lt;https://docs.microsoft.com/azure/logic-apps/logic-apps-workflow-definition-language#parameters&gt;).
     * 
     */
    public Output<Optional<Map<String,String>>> workflowParameters() {
        return Codegen.optional(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.
     * 
     */
    @Export(name="workflowSchema", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> 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 Output<Optional<String>> workflowSchema() {
        return Codegen.optional(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.
     * 
     */
    @Export(name="workflowVersion", refs={String.class}, tree="[0]")
    private Output</* @Nullable */ String> 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 Output<Optional<String>> workflowVersion() {
        return Codegen.optional(this.workflowVersion);
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public Workflow(String name) {
        this(name, WorkflowArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public Workflow(String name, WorkflowArgs args) {
        this(name, args, null);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     * @param options A bag of options that control this resource's behavior.
     */
    public Workflow(String name, WorkflowArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:logicapps/workflow:Workflow", name, args == null ? WorkflowArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
    }

    private Workflow(String name, Output<String> id, @Nullable WorkflowState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:logicapps/workflow:Workflow", name, state, makeResourceOptions(options, id));
    }

    private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
        var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
            .version(Utilities.getVersion())
            .build();
        return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
    }

    /**
     * Get an existing Host resource's state with the given name, ID, and optional extra
     * properties used to qualify the lookup.
     *
     * @param name The _unique_ name of the resulting resource.
     * @param id The _unique_ provider ID of the resource to lookup.
     * @param state
     * @param options Optional settings to control the behavior of the CustomResource.
     */
    public static Workflow get(String name, Output<String> id, @Nullable WorkflowState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new Workflow(name, id, state, options);
    }
}
