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

com.pulumi.azurenative.datashare.ADLSGen2FileDataSetMappingArgs 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.datashare;

import com.pulumi.azurenative.datashare.enums.OutputType;
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.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ADLSGen2FileDataSetMappingArgs Empty = new ADLSGen2FileDataSetMappingArgs();

    /**
     * The name of the share account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the share account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The id of the source data set.
     * 
     */
    @Import(name="dataSetId", required=true)
    private Output dataSetId;

    /**
     * @return The id of the source data set.
     * 
     */
    public Output dataSetId() {
        return this.dataSetId;
    }

    /**
     * The name of the data set mapping to be created.
     * 
     */
    @Import(name="dataSetMappingName")
    private @Nullable Output dataSetMappingName;

    /**
     * @return The name of the data set mapping to be created.
     * 
     */
    public Optional> dataSetMappingName() {
        return Optional.ofNullable(this.dataSetMappingName);
    }

    /**
     * File path within the file system.
     * 
     */
    @Import(name="filePath", required=true)
    private Output filePath;

    /**
     * @return File path within the file system.
     * 
     */
    public Output filePath() {
        return this.filePath;
    }

    /**
     * File system to which the file belongs.
     * 
     */
    @Import(name="fileSystem", required=true)
    private Output fileSystem;

    /**
     * @return File system to which the file belongs.
     * 
     */
    public Output fileSystem() {
        return this.fileSystem;
    }

    /**
     * Kind of data set mapping.
     * Expected value is 'AdlsGen2File'.
     * 
     */
    @Import(name="kind", required=true)
    private Output kind;

    /**
     * @return Kind of data set mapping.
     * Expected value is 'AdlsGen2File'.
     * 
     */
    public Output kind() {
        return this.kind;
    }

    /**
     * Type of output file
     * 
     */
    @Import(name="outputType")
    private @Nullable Output> outputType;

    /**
     * @return Type of output file
     * 
     */
    public Optional>> outputType() {
        return Optional.ofNullable(this.outputType);
    }

    /**
     * Resource group of storage account.
     * 
     */
    @Import(name="resourceGroup", required=true)
    private Output resourceGroup;

    /**
     * @return Resource group of storage account.
     * 
     */
    public Output resourceGroup() {
        return this.resourceGroup;
    }

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

    /**
     * @return The resource group name.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the share subscription which will hold the data set sink.
     * 
     */
    @Import(name="shareSubscriptionName", required=true)
    private Output shareSubscriptionName;

    /**
     * @return The name of the share subscription which will hold the data set sink.
     * 
     */
    public Output shareSubscriptionName() {
        return this.shareSubscriptionName;
    }

    /**
     * Storage account name of the source data set.
     * 
     */
    @Import(name="storageAccountName", required=true)
    private Output storageAccountName;

    /**
     * @return Storage account name of the source data set.
     * 
     */
    public Output storageAccountName() {
        return this.storageAccountName;
    }

    /**
     * Subscription id of storage account.
     * 
     */
    @Import(name="subscriptionId", required=true)
    private Output subscriptionId;

    /**
     * @return Subscription id of storage account.
     * 
     */
    public Output subscriptionId() {
        return this.subscriptionId;
    }

    private ADLSGen2FileDataSetMappingArgs() {}

    private ADLSGen2FileDataSetMappingArgs(ADLSGen2FileDataSetMappingArgs $) {
        this.accountName = $.accountName;
        this.dataSetId = $.dataSetId;
        this.dataSetMappingName = $.dataSetMappingName;
        this.filePath = $.filePath;
        this.fileSystem = $.fileSystem;
        this.kind = $.kind;
        this.outputType = $.outputType;
        this.resourceGroup = $.resourceGroup;
        this.resourceGroupName = $.resourceGroupName;
        this.shareSubscriptionName = $.shareSubscriptionName;
        this.storageAccountName = $.storageAccountName;
        this.subscriptionId = $.subscriptionId;
    }

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

    public static final class Builder {
        private ADLSGen2FileDataSetMappingArgs $;

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

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

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

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

        /**
         * @param dataSetId The id of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder dataSetId(Output dataSetId) {
            $.dataSetId = dataSetId;
            return this;
        }

        /**
         * @param dataSetId The id of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder dataSetId(String dataSetId) {
            return dataSetId(Output.of(dataSetId));
        }

        /**
         * @param dataSetMappingName The name of the data set mapping to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataSetMappingName(@Nullable Output dataSetMappingName) {
            $.dataSetMappingName = dataSetMappingName;
            return this;
        }

        /**
         * @param dataSetMappingName The name of the data set mapping to be created.
         * 
         * @return builder
         * 
         */
        public Builder dataSetMappingName(String dataSetMappingName) {
            return dataSetMappingName(Output.of(dataSetMappingName));
        }

        /**
         * @param filePath File path within the file system.
         * 
         * @return builder
         * 
         */
        public Builder filePath(Output filePath) {
            $.filePath = filePath;
            return this;
        }

        /**
         * @param filePath File path within the file system.
         * 
         * @return builder
         * 
         */
        public Builder filePath(String filePath) {
            return filePath(Output.of(filePath));
        }

        /**
         * @param fileSystem File system to which the file belongs.
         * 
         * @return builder
         * 
         */
        public Builder fileSystem(Output fileSystem) {
            $.fileSystem = fileSystem;
            return this;
        }

        /**
         * @param fileSystem File system to which the file belongs.
         * 
         * @return builder
         * 
         */
        public Builder fileSystem(String fileSystem) {
            return fileSystem(Output.of(fileSystem));
        }

        /**
         * @param kind Kind of data set mapping.
         * Expected value is 'AdlsGen2File'.
         * 
         * @return builder
         * 
         */
        public Builder kind(Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Kind of data set mapping.
         * Expected value is 'AdlsGen2File'.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param outputType Type of output file
         * 
         * @return builder
         * 
         */
        public Builder outputType(@Nullable Output> outputType) {
            $.outputType = outputType;
            return this;
        }

        /**
         * @param outputType Type of output file
         * 
         * @return builder
         * 
         */
        public Builder outputType(Either outputType) {
            return outputType(Output.of(outputType));
        }

        /**
         * @param outputType Type of output file
         * 
         * @return builder
         * 
         */
        public Builder outputType(String outputType) {
            return outputType(Either.ofLeft(outputType));
        }

        /**
         * @param outputType Type of output file
         * 
         * @return builder
         * 
         */
        public Builder outputType(OutputType outputType) {
            return outputType(Either.ofRight(outputType));
        }

        /**
         * @param resourceGroup Resource group of storage account.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroup(Output resourceGroup) {
            $.resourceGroup = resourceGroup;
            return this;
        }

        /**
         * @param resourceGroup Resource group of storage account.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroup(String resourceGroup) {
            return resourceGroup(Output.of(resourceGroup));
        }

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

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

        /**
         * @param shareSubscriptionName The name of the share subscription which will hold the data set sink.
         * 
         * @return builder
         * 
         */
        public Builder shareSubscriptionName(Output shareSubscriptionName) {
            $.shareSubscriptionName = shareSubscriptionName;
            return this;
        }

        /**
         * @param shareSubscriptionName The name of the share subscription which will hold the data set sink.
         * 
         * @return builder
         * 
         */
        public Builder shareSubscriptionName(String shareSubscriptionName) {
            return shareSubscriptionName(Output.of(shareSubscriptionName));
        }

        /**
         * @param storageAccountName Storage account name of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(Output storageAccountName) {
            $.storageAccountName = storageAccountName;
            return this;
        }

        /**
         * @param storageAccountName Storage account name of the source data set.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(String storageAccountName) {
            return storageAccountName(Output.of(storageAccountName));
        }

        /**
         * @param subscriptionId Subscription id of storage account.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(Output subscriptionId) {
            $.subscriptionId = subscriptionId;
            return this;
        }

        /**
         * @param subscriptionId Subscription id of storage account.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionId(String subscriptionId) {
            return subscriptionId(Output.of(subscriptionId));
        }

        public ADLSGen2FileDataSetMappingArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "accountName");
            }
            if ($.dataSetId == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "dataSetId");
            }
            if ($.filePath == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "filePath");
            }
            if ($.fileSystem == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "fileSystem");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.resourceGroup == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "resourceGroup");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "resourceGroupName");
            }
            if ($.shareSubscriptionName == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "shareSubscriptionName");
            }
            if ($.storageAccountName == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "storageAccountName");
            }
            if ($.subscriptionId == null) {
                throw new MissingRequiredPropertyException("ADLSGen2FileDataSetMappingArgs", "subscriptionId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy