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

com.pulumi.azurenative.kusto.SandboxCustomImageArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.kusto;

import com.pulumi.azurenative.kusto.enums.Language;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SandboxCustomImageArgs Empty = new SandboxCustomImageArgs();

    /**
     * The name of the Kusto cluster.
     * 
     */
    @Import(name="clusterName", required=true)
    private Output clusterName;

    /**
     * @return The name of the Kusto cluster.
     * 
     */
    public Output clusterName() {
        return this.clusterName;
    }

    /**
     * The language name, for example Python.
     * 
     */
    @Import(name="language", required=true)
    private Output> language;

    /**
     * @return The language name, for example Python.
     * 
     */
    public Output> language() {
        return this.language;
    }

    /**
     * The version of the language.
     * 
     */
    @Import(name="languageVersion", required=true)
    private Output languageVersion;

    /**
     * @return The version of the language.
     * 
     */
    public Output languageVersion() {
        return this.languageVersion;
    }

    /**
     * The requirements file content.
     * 
     */
    @Import(name="requirementsFileContent")
    private @Nullable Output requirementsFileContent;

    /**
     * @return The requirements file content.
     * 
     */
    public Optional> requirementsFileContent() {
        return Optional.ofNullable(this.requirementsFileContent);
    }

    /**
     * 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 name of the sandbox custom image.
     * 
     */
    @Import(name="sandboxCustomImageName")
    private @Nullable Output sandboxCustomImageName;

    /**
     * @return The name of the sandbox custom image.
     * 
     */
    public Optional> sandboxCustomImageName() {
        return Optional.ofNullable(this.sandboxCustomImageName);
    }

    private SandboxCustomImageArgs() {}

    private SandboxCustomImageArgs(SandboxCustomImageArgs $) {
        this.clusterName = $.clusterName;
        this.language = $.language;
        this.languageVersion = $.languageVersion;
        this.requirementsFileContent = $.requirementsFileContent;
        this.resourceGroupName = $.resourceGroupName;
        this.sandboxCustomImageName = $.sandboxCustomImageName;
    }

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

    public static final class Builder {
        private SandboxCustomImageArgs $;

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

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

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

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

        /**
         * @param language The language name, for example Python.
         * 
         * @return builder
         * 
         */
        public Builder language(Output> language) {
            $.language = language;
            return this;
        }

        /**
         * @param language The language name, for example Python.
         * 
         * @return builder
         * 
         */
        public Builder language(Either language) {
            return language(Output.of(language));
        }

        /**
         * @param language The language name, for example Python.
         * 
         * @return builder
         * 
         */
        public Builder language(String language) {
            return language(Either.ofLeft(language));
        }

        /**
         * @param language The language name, for example Python.
         * 
         * @return builder
         * 
         */
        public Builder language(Language language) {
            return language(Either.ofRight(language));
        }

        /**
         * @param languageVersion The version of the language.
         * 
         * @return builder
         * 
         */
        public Builder languageVersion(Output languageVersion) {
            $.languageVersion = languageVersion;
            return this;
        }

        /**
         * @param languageVersion The version of the language.
         * 
         * @return builder
         * 
         */
        public Builder languageVersion(String languageVersion) {
            return languageVersion(Output.of(languageVersion));
        }

        /**
         * @param requirementsFileContent The requirements file content.
         * 
         * @return builder
         * 
         */
        public Builder requirementsFileContent(@Nullable Output requirementsFileContent) {
            $.requirementsFileContent = requirementsFileContent;
            return this;
        }

        /**
         * @param requirementsFileContent The requirements file content.
         * 
         * @return builder
         * 
         */
        public Builder requirementsFileContent(String requirementsFileContent) {
            return requirementsFileContent(Output.of(requirementsFileContent));
        }

        /**
         * @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 sandboxCustomImageName The name of the sandbox custom image.
         * 
         * @return builder
         * 
         */
        public Builder sandboxCustomImageName(@Nullable Output sandboxCustomImageName) {
            $.sandboxCustomImageName = sandboxCustomImageName;
            return this;
        }

        /**
         * @param sandboxCustomImageName The name of the sandbox custom image.
         * 
         * @return builder
         * 
         */
        public Builder sandboxCustomImageName(String sandboxCustomImageName) {
            return sandboxCustomImageName(Output.of(sandboxCustomImageName));
        }

        public SandboxCustomImageArgs build() {
            if ($.clusterName == null) {
                throw new MissingRequiredPropertyException("SandboxCustomImageArgs", "clusterName");
            }
            if ($.language == null) {
                throw new MissingRequiredPropertyException("SandboxCustomImageArgs", "language");
            }
            if ($.languageVersion == null) {
                throw new MissingRequiredPropertyException("SandboxCustomImageArgs", "languageVersion");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("SandboxCustomImageArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy