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

com.pulumi.azure.hdinsight.inputs.HadoopClusterStorageAccountArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.hdinsight.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 HadoopClusterStorageAccountArgs extends com.pulumi.resources.ResourceArgs {

    public static final HadoopClusterStorageAccountArgs Empty = new HadoopClusterStorageAccountArgs();

    /**
     * Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
     * 
     * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
     * 
     */
    @Import(name="isDefault", required=true)
    private Output isDefault;

    /**
     * @return Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
     * 
     * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
     * 
     */
    public Output isDefault() {
        return this.isDefault;
    }

    /**
     * The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="storageAccountKey", required=true)
    private Output storageAccountKey;

    /**
     * @return The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    public Output storageAccountKey() {
        return this.storageAccountKey;
    }

    /**
     * The ID of the Storage Container. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
     * 
     */
    @Import(name="storageContainerId", required=true)
    private Output storageContainerId;

    /**
     * @return The ID of the Storage Container. Changing this forces a new resource to be created.
     * 
     * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
     * 
     */
    public Output storageContainerId() {
        return this.storageContainerId;
    }

    /**
     * The ID of the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="storageResourceId")
    private @Nullable Output storageResourceId;

    /**
     * @return The ID of the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    public Optional> storageResourceId() {
        return Optional.ofNullable(this.storageResourceId);
    }

    private HadoopClusterStorageAccountArgs() {}

    private HadoopClusterStorageAccountArgs(HadoopClusterStorageAccountArgs $) {
        this.isDefault = $.isDefault;
        this.storageAccountKey = $.storageAccountKey;
        this.storageContainerId = $.storageContainerId;
        this.storageResourceId = $.storageResourceId;
    }

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

    public static final class Builder {
        private HadoopClusterStorageAccountArgs $;

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

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

        /**
         * @param isDefault Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
         * 
         * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Output isDefault) {
            $.isDefault = isDefault;
            return this;
        }

        /**
         * @param isDefault Is this the Default Storage Account for the HDInsight Hadoop Cluster? Changing this forces a new resource to be created.
         * 
         * > **NOTE:** One of the `storage_account` or `storage_account_gen2` blocks must be marked as the default.
         * 
         * @return builder
         * 
         */
        public Builder isDefault(Boolean isDefault) {
            return isDefault(Output.of(isDefault));
        }

        /**
         * @param storageAccountKey The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(Output storageAccountKey) {
            $.storageAccountKey = storageAccountKey;
            return this;
        }

        /**
         * @param storageAccountKey The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(String storageAccountKey) {
            return storageAccountKey(Output.of(storageAccountKey));
        }

        /**
         * @param storageContainerId The ID of the Storage Container. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerId(Output storageContainerId) {
            $.storageContainerId = storageContainerId;
            return this;
        }

        /**
         * @param storageContainerId The ID of the Storage Container. Changing this forces a new resource to be created.
         * 
         * > **NOTE:** This can be obtained from the `id` of the `azure.storage.Container` resource.
         * 
         * @return builder
         * 
         */
        public Builder storageContainerId(String storageContainerId) {
            return storageContainerId(Output.of(storageContainerId));
        }

        /**
         * @param storageResourceId The ID of the Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageResourceId(@Nullable Output storageResourceId) {
            $.storageResourceId = storageResourceId;
            return this;
        }

        /**
         * @param storageResourceId The ID of the Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageResourceId(String storageResourceId) {
            return storageResourceId(Output.of(storageResourceId));
        }

        public HadoopClusterStorageAccountArgs build() {
            if ($.isDefault == null) {
                throw new MissingRequiredPropertyException("HadoopClusterStorageAccountArgs", "isDefault");
            }
            if ($.storageAccountKey == null) {
                throw new MissingRequiredPropertyException("HadoopClusterStorageAccountArgs", "storageAccountKey");
            }
            if ($.storageContainerId == null) {
                throw new MissingRequiredPropertyException("HadoopClusterStorageAccountArgs", "storageContainerId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy