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

com.pulumi.azurenative.machinelearningservices.DatastoreArgs Maven / Gradle / Ivy

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

import com.pulumi.azurenative.machinelearningservices.inputs.AzureBlobDatastoreArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.AzureDataLakeGen1DatastoreArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.AzureDataLakeGen2DatastoreArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.AzureFileDatastoreArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final DatastoreArgs Empty = new DatastoreArgs();

    /**
     * [Required] Additional attributes of the entity.
     * 
     */
    @Import(name="datastoreProperties", required=true)
    private Output datastoreProperties;

    /**
     * @return [Required] Additional attributes of the entity.
     * 
     */
    public Output datastoreProperties() {
        return this.datastoreProperties;
    }

    /**
     * Datastore name.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Datastore name.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * 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;
    }

    /**
     * Flag to skip validation.
     * 
     */
    @Import(name="skipValidation")
    private @Nullable Output skipValidation;

    /**
     * @return Flag to skip validation.
     * 
     */
    public Optional> skipValidation() {
        return Optional.ofNullable(this.skipValidation);
    }

    /**
     * Name of Azure Machine Learning workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return Name of Azure Machine Learning workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private DatastoreArgs() {}

    private DatastoreArgs(DatastoreArgs $) {
        this.datastoreProperties = $.datastoreProperties;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.skipValidation = $.skipValidation;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private DatastoreArgs $;

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

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

        /**
         * @param datastoreProperties [Required] Additional attributes of the entity.
         * 
         * @return builder
         * 
         */
        public Builder datastoreProperties(Output datastoreProperties) {
            $.datastoreProperties = datastoreProperties;
            return this;
        }

        /**
         * @param datastoreProperties [Required] Additional attributes of the entity.
         * 
         * @return builder
         * 
         */
        public Builder datastoreProperties(Object datastoreProperties) {
            return datastoreProperties(Output.of(datastoreProperties));
        }

        /**
         * @param name Datastore name.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Datastore name.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @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 skipValidation Flag to skip validation.
         * 
         * @return builder
         * 
         */
        public Builder skipValidation(@Nullable Output skipValidation) {
            $.skipValidation = skipValidation;
            return this;
        }

        /**
         * @param skipValidation Flag to skip validation.
         * 
         * @return builder
         * 
         */
        public Builder skipValidation(Boolean skipValidation) {
            return skipValidation(Output.of(skipValidation));
        }

        /**
         * @param workspaceName Name of Azure Machine Learning workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName Name of Azure Machine Learning workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

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

}