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

com.pulumi.azurenative.machinelearningservices.MachineLearningDatasetArgs 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.enums.DatasetType;
import com.pulumi.azurenative.machinelearningservices.inputs.DatasetCreateRequestParametersArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.DatasetCreateRequestRegistrationArgs;
import com.pulumi.azurenative.machinelearningservices.inputs.DatasetCreateRequestTimeSeriesArgs;
import com.pulumi.core.Either;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final MachineLearningDatasetArgs Empty = new MachineLearningDatasetArgs();

    /**
     * The Dataset name.
     * 
     */
    @Import(name="datasetName")
    private @Nullable Output datasetName;

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

    /**
     * Specifies dataset type.
     * 
     */
    @Import(name="datasetType", required=true)
    private Output> datasetType;

    /**
     * @return Specifies dataset type.
     * 
     */
    public Output> datasetType() {
        return this.datasetType;
    }

    @Import(name="parameters", required=true)
    private Output parameters;

    public Output parameters() {
        return this.parameters;
    }

    @Import(name="registration", required=true)
    private Output registration;

    public Output registration() {
        return this.registration;
    }

    /**
     * Name of the resource group in which workspace is located.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return Name of the resource group in which workspace is located.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Skip validation that ensures data can be loaded from the dataset before registration.
     * 
     */
    @Import(name="skipValidation")
    private @Nullable Output skipValidation;

    /**
     * @return Skip validation that ensures data can be loaded from the dataset before registration.
     * 
     */
    public Optional> skipValidation() {
        return Optional.ofNullable(this.skipValidation);
    }

    @Import(name="timeSeries")
    private @Nullable Output timeSeries;

    public Optional> timeSeries() {
        return Optional.ofNullable(this.timeSeries);
    }

    /**
     * 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 MachineLearningDatasetArgs() {}

    private MachineLearningDatasetArgs(MachineLearningDatasetArgs $) {
        this.datasetName = $.datasetName;
        this.datasetType = $.datasetType;
        this.parameters = $.parameters;
        this.registration = $.registration;
        this.resourceGroupName = $.resourceGroupName;
        this.skipValidation = $.skipValidation;
        this.timeSeries = $.timeSeries;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private MachineLearningDatasetArgs $;

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

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

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

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

        /**
         * @param datasetType Specifies dataset type.
         * 
         * @return builder
         * 
         */
        public Builder datasetType(Output> datasetType) {
            $.datasetType = datasetType;
            return this;
        }

        /**
         * @param datasetType Specifies dataset type.
         * 
         * @return builder
         * 
         */
        public Builder datasetType(Either datasetType) {
            return datasetType(Output.of(datasetType));
        }

        /**
         * @param datasetType Specifies dataset type.
         * 
         * @return builder
         * 
         */
        public Builder datasetType(String datasetType) {
            return datasetType(Either.ofLeft(datasetType));
        }

        /**
         * @param datasetType Specifies dataset type.
         * 
         * @return builder
         * 
         */
        public Builder datasetType(DatasetType datasetType) {
            return datasetType(Either.ofRight(datasetType));
        }

        public Builder parameters(Output parameters) {
            $.parameters = parameters;
            return this;
        }

        public Builder parameters(DatasetCreateRequestParametersArgs parameters) {
            return parameters(Output.of(parameters));
        }

        public Builder registration(Output registration) {
            $.registration = registration;
            return this;
        }

        public Builder registration(DatasetCreateRequestRegistrationArgs registration) {
            return registration(Output.of(registration));
        }

        /**
         * @param resourceGroupName Name of the resource group in which workspace is located.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName Name of the resource group in which workspace is located.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param skipValidation Skip validation that ensures data can be loaded from the dataset before registration.
         * 
         * @return builder
         * 
         */
        public Builder skipValidation(@Nullable Output skipValidation) {
            $.skipValidation = skipValidation;
            return this;
        }

        /**
         * @param skipValidation Skip validation that ensures data can be loaded from the dataset before registration.
         * 
         * @return builder
         * 
         */
        public Builder skipValidation(Boolean skipValidation) {
            return skipValidation(Output.of(skipValidation));
        }

        public Builder timeSeries(@Nullable Output timeSeries) {
            $.timeSeries = timeSeries;
            return this;
        }

        public Builder timeSeries(DatasetCreateRequestTimeSeriesArgs timeSeries) {
            return timeSeries(Output.of(timeSeries));
        }

        /**
         * @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 MachineLearningDatasetArgs build() {
            if ($.datasetType == null) {
                throw new MissingRequiredPropertyException("MachineLearningDatasetArgs", "datasetType");
            }
            if ($.parameters == null) {
                throw new MissingRequiredPropertyException("MachineLearningDatasetArgs", "parameters");
            }
            if ($.registration == null) {
                throw new MissingRequiredPropertyException("MachineLearningDatasetArgs", "registration");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("MachineLearningDatasetArgs", "resourceGroupName");
            }
            $.skipValidation = Codegen.booleanProp("skipValidation").output().arg($.skipValidation).def(false).getNullable();
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("MachineLearningDatasetArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy