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

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

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 BlobFolderDataSetArgs extends com.pulumi.resources.ResourceArgs {

    public static final BlobFolderDataSetArgs Empty = new BlobFolderDataSetArgs();

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

    /**
     * Container that has the file path.
     * 
     */
    @Import(name="containerName", required=true)
    private Output containerName;

    /**
     * @return Container that has the file path.
     * 
     */
    public Output containerName() {
        return this.containerName;
    }

    /**
     * The name of the dataSet.
     * 
     */
    @Import(name="dataSetName")
    private @Nullable Output dataSetName;

    /**
     * @return The name of the dataSet.
     * 
     */
    public Optional> dataSetName() {
        return Optional.ofNullable(this.dataSetName);
    }

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

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

    /**
     * Prefix for blob folder
     * 
     */
    @Import(name="prefix", required=true)
    private Output prefix;

    /**
     * @return Prefix for blob folder
     * 
     */
    public Output prefix() {
        return this.prefix;
    }

    /**
     * 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 to add the data set to.
     * 
     */
    @Import(name="shareName", required=true)
    private Output shareName;

    /**
     * @return The name of the share to add the data set to.
     * 
     */
    public Output shareName() {
        return this.shareName;
    }

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

    private BlobFolderDataSetArgs(BlobFolderDataSetArgs $) {
        this.accountName = $.accountName;
        this.containerName = $.containerName;
        this.dataSetName = $.dataSetName;
        this.kind = $.kind;
        this.prefix = $.prefix;
        this.resourceGroup = $.resourceGroup;
        this.resourceGroupName = $.resourceGroupName;
        this.shareName = $.shareName;
        this.storageAccountName = $.storageAccountName;
        this.subscriptionId = $.subscriptionId;
    }

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

    public static final class Builder {
        private BlobFolderDataSetArgs $;

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

        public Builder(BlobFolderDataSetArgs defaults) {
            $ = new BlobFolderDataSetArgs(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 containerName Container that has the file path.
         * 
         * @return builder
         * 
         */
        public Builder containerName(Output containerName) {
            $.containerName = containerName;
            return this;
        }

        /**
         * @param containerName Container that has the file path.
         * 
         * @return builder
         * 
         */
        public Builder containerName(String containerName) {
            return containerName(Output.of(containerName));
        }

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

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

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

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

        /**
         * @param prefix Prefix for blob folder
         * 
         * @return builder
         * 
         */
        public Builder prefix(Output prefix) {
            $.prefix = prefix;
            return this;
        }

        /**
         * @param prefix Prefix for blob folder
         * 
         * @return builder
         * 
         */
        public Builder prefix(String prefix) {
            return prefix(Output.of(prefix));
        }

        /**
         * @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 shareName The name of the share to add the data set to.
         * 
         * @return builder
         * 
         */
        public Builder shareName(Output shareName) {
            $.shareName = shareName;
            return this;
        }

        /**
         * @param shareName The name of the share to add the data set to.
         * 
         * @return builder
         * 
         */
        public Builder shareName(String shareName) {
            return shareName(Output.of(shareName));
        }

        /**
         * @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 BlobFolderDataSetArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "accountName");
            }
            if ($.containerName == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "containerName");
            }
            $.kind = Codegen.stringProp("kind").output().arg($.kind).require();
            if ($.prefix == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "prefix");
            }
            if ($.resourceGroup == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "resourceGroup");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "resourceGroupName");
            }
            if ($.shareName == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "shareName");
            }
            if ($.storageAccountName == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "storageAccountName");
            }
            if ($.subscriptionId == null) {
                throw new MissingRequiredPropertyException("BlobFolderDataSetArgs", "subscriptionId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy