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

com.pulumi.azure.kusto.ScriptArgs 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.kusto;

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ScriptArgs Empty = new ScriptArgs();

    /**
     * Flag that indicates whether to continue if one of the command fails.
     * 
     */
    @Import(name="continueOnErrorsEnabled")
    private @Nullable Output continueOnErrorsEnabled;

    /**
     * @return Flag that indicates whether to continue if one of the command fails.
     * 
     */
    public Optional> continueOnErrorsEnabled() {
        return Optional.ofNullable(this.continueOnErrorsEnabled);
    }

    /**
     * The ID of the Kusto Database. Changing this forces a new Kusto Script to be created.
     * 
     */
    @Import(name="databaseId", required=true)
    private Output databaseId;

    /**
     * @return The ID of the Kusto Database. Changing this forces a new Kusto Script to be created.
     * 
     */
    public Output databaseId() {
        return this.databaseId;
    }

    /**
     * A unique string. If changed the script will be applied again.
     * 
     */
    @Import(name="forceAnUpdateWhenValueChanged")
    private @Nullable Output forceAnUpdateWhenValueChanged;

    /**
     * @return A unique string. If changed the script will be applied again.
     * 
     */
    public Optional> forceAnUpdateWhenValueChanged() {
        return Optional.ofNullable(this.forceAnUpdateWhenValueChanged);
    }

    /**
     * The name which should be used for this Kusto Script. Changing this forces a new Kusto Script to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name which should be used for this Kusto Script. Changing this forces a new Kusto Script to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The SAS token used to access the script. Must be provided when using scriptUrl property. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sasToken")
    private @Nullable Output sasToken;

    /**
     * @return The SAS token used to access the script. Must be provided when using scriptUrl property. Changing this forces a new resource to be created.
     * 
     */
    public Optional> sasToken() {
        return Optional.ofNullable(this.sasToken);
    }

    /**
     * The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with `url` and `sas_token` properties. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="scriptContent")
    private @Nullable Output scriptContent;

    /**
     * @return The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with `url` and `sas_token` properties. Changing this forces a new resource to be created.
     * 
     */
    public Optional> scriptContent() {
        return Optional.ofNullable(this.scriptContent);
    }

    /**
     * The url to the KQL script blob file. Must not be used together with scriptContent property. Please reference [this documentation](https://docs.microsoft.com/azure/data-explorer/database-script) that describes the commands that are allowed in the script.
     * 
     */
    @Import(name="url")
    private @Nullable Output url;

    /**
     * @return The url to the KQL script blob file. Must not be used together with scriptContent property. Please reference [this documentation](https://docs.microsoft.com/azure/data-explorer/database-script) that describes the commands that are allowed in the script.
     * 
     */
    public Optional> url() {
        return Optional.ofNullable(this.url);
    }

    private ScriptArgs() {}

    private ScriptArgs(ScriptArgs $) {
        this.continueOnErrorsEnabled = $.continueOnErrorsEnabled;
        this.databaseId = $.databaseId;
        this.forceAnUpdateWhenValueChanged = $.forceAnUpdateWhenValueChanged;
        this.name = $.name;
        this.sasToken = $.sasToken;
        this.scriptContent = $.scriptContent;
        this.url = $.url;
    }

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

    public static final class Builder {
        private ScriptArgs $;

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

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

        /**
         * @param continueOnErrorsEnabled Flag that indicates whether to continue if one of the command fails.
         * 
         * @return builder
         * 
         */
        public Builder continueOnErrorsEnabled(@Nullable Output continueOnErrorsEnabled) {
            $.continueOnErrorsEnabled = continueOnErrorsEnabled;
            return this;
        }

        /**
         * @param continueOnErrorsEnabled Flag that indicates whether to continue if one of the command fails.
         * 
         * @return builder
         * 
         */
        public Builder continueOnErrorsEnabled(Boolean continueOnErrorsEnabled) {
            return continueOnErrorsEnabled(Output.of(continueOnErrorsEnabled));
        }

        /**
         * @param databaseId The ID of the Kusto Database. Changing this forces a new Kusto Script to be created.
         * 
         * @return builder
         * 
         */
        public Builder databaseId(Output databaseId) {
            $.databaseId = databaseId;
            return this;
        }

        /**
         * @param databaseId The ID of the Kusto Database. Changing this forces a new Kusto Script to be created.
         * 
         * @return builder
         * 
         */
        public Builder databaseId(String databaseId) {
            return databaseId(Output.of(databaseId));
        }

        /**
         * @param forceAnUpdateWhenValueChanged A unique string. If changed the script will be applied again.
         * 
         * @return builder
         * 
         */
        public Builder forceAnUpdateWhenValueChanged(@Nullable Output forceAnUpdateWhenValueChanged) {
            $.forceAnUpdateWhenValueChanged = forceAnUpdateWhenValueChanged;
            return this;
        }

        /**
         * @param forceAnUpdateWhenValueChanged A unique string. If changed the script will be applied again.
         * 
         * @return builder
         * 
         */
        public Builder forceAnUpdateWhenValueChanged(String forceAnUpdateWhenValueChanged) {
            return forceAnUpdateWhenValueChanged(Output.of(forceAnUpdateWhenValueChanged));
        }

        /**
         * @param name The name which should be used for this Kusto Script. Changing this forces a new Kusto Script to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Kusto Script. Changing this forces a new Kusto Script to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param sasToken The SAS token used to access the script. Must be provided when using scriptUrl property. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sasToken(@Nullable Output sasToken) {
            $.sasToken = sasToken;
            return this;
        }

        /**
         * @param sasToken The SAS token used to access the script. Must be provided when using scriptUrl property. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sasToken(String sasToken) {
            return sasToken(Output.of(sasToken));
        }

        /**
         * @param scriptContent The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with `url` and `sas_token` properties. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptContent(@Nullable Output scriptContent) {
            $.scriptContent = scriptContent;
            return this;
        }

        /**
         * @param scriptContent The script content. This property should be used when the script is provide inline and not through file in a SA. Must not be used together with `url` and `sas_token` properties. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder scriptContent(String scriptContent) {
            return scriptContent(Output.of(scriptContent));
        }

        /**
         * @param url The url to the KQL script blob file. Must not be used together with scriptContent property. Please reference [this documentation](https://docs.microsoft.com/azure/data-explorer/database-script) that describes the commands that are allowed in the script.
         * 
         * @return builder
         * 
         */
        public Builder url(@Nullable Output url) {
            $.url = url;
            return this;
        }

        /**
         * @param url The url to the KQL script blob file. Must not be used together with scriptContent property. Please reference [this documentation](https://docs.microsoft.com/azure/data-explorer/database-script) that describes the commands that are allowed in the script.
         * 
         * @return builder
         * 
         */
        public Builder url(String url) {
            return url(Output.of(url));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy