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

com.pulumi.azure.hdinsight.outputs.SparkClusterStorageAccount 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.outputs;

import com.pulumi.core.annotations.CustomType;
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;

@CustomType
public final class SparkClusterStorageAccount {
    /**
     * @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.
     * 
     */
    private Boolean isDefault;
    /**
     * @return The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    private String storageAccountKey;
    /**
     * @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.
     * 
     */
    private String storageContainerId;
    /**
     * @return The ID of the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    private @Nullable String storageResourceId;

    private SparkClusterStorageAccount() {}
    /**
     * @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 Boolean isDefault() {
        return this.isDefault;
    }
    /**
     * @return The Access Key which should be used to connect to the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    public String storageAccountKey() {
        return this.storageAccountKey;
    }
    /**
     * @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 String storageContainerId() {
        return this.storageContainerId;
    }
    /**
     * @return The ID of the Storage Account. Changing this forces a new resource to be created.
     * 
     */
    public Optional storageResourceId() {
        return Optional.ofNullable(this.storageResourceId);
    }

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

    public static Builder builder(SparkClusterStorageAccount defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean isDefault;
        private String storageAccountKey;
        private String storageContainerId;
        private @Nullable String storageResourceId;
        public Builder() {}
        public Builder(SparkClusterStorageAccount defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.isDefault = defaults.isDefault;
    	      this.storageAccountKey = defaults.storageAccountKey;
    	      this.storageContainerId = defaults.storageContainerId;
    	      this.storageResourceId = defaults.storageResourceId;
        }

        @CustomType.Setter
        public Builder isDefault(Boolean isDefault) {
            if (isDefault == null) {
              throw new MissingRequiredPropertyException("SparkClusterStorageAccount", "isDefault");
            }
            this.isDefault = isDefault;
            return this;
        }
        @CustomType.Setter
        public Builder storageAccountKey(String storageAccountKey) {
            if (storageAccountKey == null) {
              throw new MissingRequiredPropertyException("SparkClusterStorageAccount", "storageAccountKey");
            }
            this.storageAccountKey = storageAccountKey;
            return this;
        }
        @CustomType.Setter
        public Builder storageContainerId(String storageContainerId) {
            if (storageContainerId == null) {
              throw new MissingRequiredPropertyException("SparkClusterStorageAccount", "storageContainerId");
            }
            this.storageContainerId = storageContainerId;
            return this;
        }
        @CustomType.Setter
        public Builder storageResourceId(@Nullable String storageResourceId) {

            this.storageResourceId = storageResourceId;
            return this;
        }
        public SparkClusterStorageAccount build() {
            final var _resultValue = new SparkClusterStorageAccount();
            _resultValue.isDefault = isDefault;
            _resultValue.storageAccountKey = storageAccountKey;
            _resultValue.storageContainerId = storageContainerId;
            _resultValue.storageResourceId = storageResourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy