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

com.pulumi.azurenative.synapse.KustoPoolArgs Maven / Gradle / Ivy

There is a newer version: 2.72.0
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.azurenative.synapse;

import com.pulumi.azurenative.synapse.inputs.AzureSkuArgs;
import com.pulumi.azurenative.synapse.inputs.OptimizedAutoscaleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
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 KustoPoolArgs extends com.pulumi.resources.ResourceArgs {

    public static final KustoPoolArgs Empty = new KustoPoolArgs();

    /**
     * A boolean value that indicates if the purge operations are enabled.
     * 
     */
    @Import(name="enablePurge")
    private @Nullable Output enablePurge;

    /**
     * @return A boolean value that indicates if the purge operations are enabled.
     * 
     */
    public Optional> enablePurge() {
        return Optional.ofNullable(this.enablePurge);
    }

    /**
     * A boolean value that indicates if the streaming ingest is enabled.
     * 
     */
    @Import(name="enableStreamingIngest")
    private @Nullable Output enableStreamingIngest;

    /**
     * @return A boolean value that indicates if the streaming ingest is enabled.
     * 
     */
    public Optional> enableStreamingIngest() {
        return Optional.ofNullable(this.enableStreamingIngest);
    }

    /**
     * The name of the Kusto pool.
     * 
     */
    @Import(name="kustoPoolName")
    private @Nullable Output kustoPoolName;

    /**
     * @return The name of the Kusto pool.
     * 
     */
    public Optional> kustoPoolName() {
        return Optional.ofNullable(this.kustoPoolName);
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Optimized auto scale definition.
     * 
     */
    @Import(name="optimizedAutoscale")
    private @Nullable Output optimizedAutoscale;

    /**
     * @return Optimized auto scale definition.
     * 
     */
    public Optional> optimizedAutoscale() {
        return Optional.ofNullable(this.optimizedAutoscale);
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The SKU of the kusto pool.
     * 
     */
    @Import(name="sku", required=true)
    private Output sku;

    /**
     * @return The SKU of the kusto pool.
     * 
     */
    public Output sku() {
        return this.sku;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    /**
     * The workspace unique identifier.
     * 
     */
    @Import(name="workspaceUID")
    private @Nullable Output workspaceUID;

    /**
     * @return The workspace unique identifier.
     * 
     */
    public Optional> workspaceUID() {
        return Optional.ofNullable(this.workspaceUID);
    }

    private KustoPoolArgs() {}

    private KustoPoolArgs(KustoPoolArgs $) {
        this.enablePurge = $.enablePurge;
        this.enableStreamingIngest = $.enableStreamingIngest;
        this.kustoPoolName = $.kustoPoolName;
        this.location = $.location;
        this.optimizedAutoscale = $.optimizedAutoscale;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
        this.workspaceName = $.workspaceName;
        this.workspaceUID = $.workspaceUID;
    }

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

    public static final class Builder {
        private KustoPoolArgs $;

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

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

        /**
         * @param enablePurge A boolean value that indicates if the purge operations are enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePurge(@Nullable Output enablePurge) {
            $.enablePurge = enablePurge;
            return this;
        }

        /**
         * @param enablePurge A boolean value that indicates if the purge operations are enabled.
         * 
         * @return builder
         * 
         */
        public Builder enablePurge(Boolean enablePurge) {
            return enablePurge(Output.of(enablePurge));
        }

        /**
         * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableStreamingIngest(@Nullable Output enableStreamingIngest) {
            $.enableStreamingIngest = enableStreamingIngest;
            return this;
        }

        /**
         * @param enableStreamingIngest A boolean value that indicates if the streaming ingest is enabled.
         * 
         * @return builder
         * 
         */
        public Builder enableStreamingIngest(Boolean enableStreamingIngest) {
            return enableStreamingIngest(Output.of(enableStreamingIngest));
        }

        /**
         * @param kustoPoolName The name of the Kusto pool.
         * 
         * @return builder
         * 
         */
        public Builder kustoPoolName(@Nullable Output kustoPoolName) {
            $.kustoPoolName = kustoPoolName;
            return this;
        }

        /**
         * @param kustoPoolName The name of the Kusto pool.
         * 
         * @return builder
         * 
         */
        public Builder kustoPoolName(String kustoPoolName) {
            return kustoPoolName(Output.of(kustoPoolName));
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param optimizedAutoscale Optimized auto scale definition.
         * 
         * @return builder
         * 
         */
        public Builder optimizedAutoscale(@Nullable Output optimizedAutoscale) {
            $.optimizedAutoscale = optimizedAutoscale;
            return this;
        }

        /**
         * @param optimizedAutoscale Optimized auto scale definition.
         * 
         * @return builder
         * 
         */
        public Builder optimizedAutoscale(OptimizedAutoscaleArgs optimizedAutoscale) {
            return optimizedAutoscale(Output.of(optimizedAutoscale));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku The SKU of the kusto pool.
         * 
         * @return builder
         * 
         */
        public Builder sku(Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU of the kusto pool.
         * 
         * @return builder
         * 
         */
        public Builder sku(AzureSkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        /**
         * @param workspaceUID The workspace unique identifier.
         * 
         * @return builder
         * 
         */
        public Builder workspaceUID(@Nullable Output workspaceUID) {
            $.workspaceUID = workspaceUID;
            return this;
        }

        /**
         * @param workspaceUID The workspace unique identifier.
         * 
         * @return builder
         * 
         */
        public Builder workspaceUID(String workspaceUID) {
            return workspaceUID(Output.of(workspaceUID));
        }

        public KustoPoolArgs build() {
            $.enablePurge = Codegen.booleanProp("enablePurge").output().arg($.enablePurge).def(false).getNullable();
            $.enableStreamingIngest = Codegen.booleanProp("enableStreamingIngest").output().arg($.enableStreamingIngest).def(false).getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("KustoPoolArgs", "resourceGroupName");
            }
            if ($.sku == null) {
                throw new MissingRequiredPropertyException("KustoPoolArgs", "sku");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("KustoPoolArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy