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

com.pulumi.azure.hdinsight.inputs.SparkClusterStorageAccountGen2Args 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;


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

    public static final SparkClusterStorageAccountGen2Args Empty = new SparkClusterStorageAccountGen2Args();

    /**
     * The ID of the Gen2 Filesystem. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="filesystemId", required=true)
    private Output filesystemId;

    /**
     * @return The ID of the Gen2 Filesystem. Changing this forces a new resource to be created.
     * 
     */
    public Output filesystemId() {
        return this.filesystemId;
    }

    /**
     * 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 ID of Managed Identity to use for accessing the Gen2 filesystem. 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="managedIdentityResourceId", required=true)
    private Output managedIdentityResourceId;

    /**
     * @return The ID of Managed Identity to use for accessing the Gen2 filesystem. 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 managedIdentityResourceId() {
        return this.managedIdentityResourceId;
    }

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

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

    private SparkClusterStorageAccountGen2Args() {}

    private SparkClusterStorageAccountGen2Args(SparkClusterStorageAccountGen2Args $) {
        this.filesystemId = $.filesystemId;
        this.isDefault = $.isDefault;
        this.managedIdentityResourceId = $.managedIdentityResourceId;
        this.storageResourceId = $.storageResourceId;
    }

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

    public static final class Builder {
        private SparkClusterStorageAccountGen2Args $;

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

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

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

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

        /**
         * @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 managedIdentityResourceId The ID of Managed Identity to use for accessing the Gen2 filesystem. 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 managedIdentityResourceId(Output managedIdentityResourceId) {
            $.managedIdentityResourceId = managedIdentityResourceId;
            return this;
        }

        /**
         * @param managedIdentityResourceId The ID of Managed Identity to use for accessing the Gen2 filesystem. 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 managedIdentityResourceId(String managedIdentityResourceId) {
            return managedIdentityResourceId(Output.of(managedIdentityResourceId));
        }

        /**
         * @param storageResourceId The ID of the Storage Account. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder storageResourceId(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 SparkClusterStorageAccountGen2Args build() {
            if ($.filesystemId == null) {
                throw new MissingRequiredPropertyException("SparkClusterStorageAccountGen2Args", "filesystemId");
            }
            if ($.isDefault == null) {
                throw new MissingRequiredPropertyException("SparkClusterStorageAccountGen2Args", "isDefault");
            }
            if ($.managedIdentityResourceId == null) {
                throw new MissingRequiredPropertyException("SparkClusterStorageAccountGen2Args", "managedIdentityResourceId");
            }
            if ($.storageResourceId == null) {
                throw new MissingRequiredPropertyException("SparkClusterStorageAccountGen2Args", "storageResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy