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

com.pulumi.azurenative.storage.BlobContainerArgs 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.storage;

import com.pulumi.azurenative.storage.enums.PublicAccess;
import com.pulumi.azurenative.storage.inputs.ImmutableStorageWithVersioningArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BlobContainerArgs Empty = new BlobContainerArgs();

    /**
     * The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
     * 
     */
    @Import(name="containerName")
    private @Nullable Output containerName;

    /**
     * @return The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
     * 
     */
    public Optional> containerName() {
        return Optional.ofNullable(this.containerName);
    }

    /**
     * Default the container to use specified encryption scope for all writes.
     * 
     */
    @Import(name="defaultEncryptionScope")
    private @Nullable Output defaultEncryptionScope;

    /**
     * @return Default the container to use specified encryption scope for all writes.
     * 
     */
    public Optional> defaultEncryptionScope() {
        return Optional.ofNullable(this.defaultEncryptionScope);
    }

    /**
     * Block override of encryption scope from the container default.
     * 
     */
    @Import(name="denyEncryptionScopeOverride")
    private @Nullable Output denyEncryptionScopeOverride;

    /**
     * @return Block override of encryption scope from the container default.
     * 
     */
    public Optional> denyEncryptionScopeOverride() {
        return Optional.ofNullable(this.denyEncryptionScopeOverride);
    }

    /**
     * Enable NFSv3 all squash on blob container.
     * 
     */
    @Import(name="enableNfsV3AllSquash")
    private @Nullable Output enableNfsV3AllSquash;

    /**
     * @return Enable NFSv3 all squash on blob container.
     * 
     */
    public Optional> enableNfsV3AllSquash() {
        return Optional.ofNullable(this.enableNfsV3AllSquash);
    }

    /**
     * Enable NFSv3 root squash on blob container.
     * 
     */
    @Import(name="enableNfsV3RootSquash")
    private @Nullable Output enableNfsV3RootSquash;

    /**
     * @return Enable NFSv3 root squash on blob container.
     * 
     */
    public Optional> enableNfsV3RootSquash() {
        return Optional.ofNullable(this.enableNfsV3RootSquash);
    }

    /**
     * The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.
     * 
     */
    @Import(name="immutableStorageWithVersioning")
    private @Nullable Output immutableStorageWithVersioning;

    /**
     * @return The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.
     * 
     */
    public Optional> immutableStorageWithVersioning() {
        return Optional.ofNullable(this.immutableStorageWithVersioning);
    }

    /**
     * A name-value pair to associate with the container as metadata.
     * 
     */
    @Import(name="metadata")
    private @Nullable Output> metadata;

    /**
     * @return A name-value pair to associate with the container as metadata.
     * 
     */
    public Optional>> metadata() {
        return Optional.ofNullable(this.metadata);
    }

    /**
     * Specifies whether data in the container may be accessed publicly and the level of access.
     * 
     */
    @Import(name="publicAccess")
    private @Nullable Output publicAccess;

    /**
     * @return Specifies whether data in the container may be accessed publicly and the level of access.
     * 
     */
    public Optional> publicAccess() {
        return Optional.ofNullable(this.publicAccess);
    }

    /**
     * The name of the resource group within the user's subscription. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group within the user's subscription. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private BlobContainerArgs() {}

    private BlobContainerArgs(BlobContainerArgs $) {
        this.accountName = $.accountName;
        this.containerName = $.containerName;
        this.defaultEncryptionScope = $.defaultEncryptionScope;
        this.denyEncryptionScopeOverride = $.denyEncryptionScopeOverride;
        this.enableNfsV3AllSquash = $.enableNfsV3AllSquash;
        this.enableNfsV3RootSquash = $.enableNfsV3RootSquash;
        this.immutableStorageWithVersioning = $.immutableStorageWithVersioning;
        this.metadata = $.metadata;
        this.publicAccess = $.publicAccess;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private BlobContainerArgs $;

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

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

        /**
         * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
         * 
         * @return builder
         * 
         */
        public Builder containerName(@Nullable Output containerName) {
            $.containerName = containerName;
            return this;
        }

        /**
         * @param containerName The name of the blob container within the specified storage account. Blob container names must be between 3 and 63 characters in length and use numbers, lower-case letters and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or number.
         * 
         * @return builder
         * 
         */
        public Builder containerName(String containerName) {
            return containerName(Output.of(containerName));
        }

        /**
         * @param defaultEncryptionScope Default the container to use specified encryption scope for all writes.
         * 
         * @return builder
         * 
         */
        public Builder defaultEncryptionScope(@Nullable Output defaultEncryptionScope) {
            $.defaultEncryptionScope = defaultEncryptionScope;
            return this;
        }

        /**
         * @param defaultEncryptionScope Default the container to use specified encryption scope for all writes.
         * 
         * @return builder
         * 
         */
        public Builder defaultEncryptionScope(String defaultEncryptionScope) {
            return defaultEncryptionScope(Output.of(defaultEncryptionScope));
        }

        /**
         * @param denyEncryptionScopeOverride Block override of encryption scope from the container default.
         * 
         * @return builder
         * 
         */
        public Builder denyEncryptionScopeOverride(@Nullable Output denyEncryptionScopeOverride) {
            $.denyEncryptionScopeOverride = denyEncryptionScopeOverride;
            return this;
        }

        /**
         * @param denyEncryptionScopeOverride Block override of encryption scope from the container default.
         * 
         * @return builder
         * 
         */
        public Builder denyEncryptionScopeOverride(Boolean denyEncryptionScopeOverride) {
            return denyEncryptionScopeOverride(Output.of(denyEncryptionScopeOverride));
        }

        /**
         * @param enableNfsV3AllSquash Enable NFSv3 all squash on blob container.
         * 
         * @return builder
         * 
         */
        public Builder enableNfsV3AllSquash(@Nullable Output enableNfsV3AllSquash) {
            $.enableNfsV3AllSquash = enableNfsV3AllSquash;
            return this;
        }

        /**
         * @param enableNfsV3AllSquash Enable NFSv3 all squash on blob container.
         * 
         * @return builder
         * 
         */
        public Builder enableNfsV3AllSquash(Boolean enableNfsV3AllSquash) {
            return enableNfsV3AllSquash(Output.of(enableNfsV3AllSquash));
        }

        /**
         * @param enableNfsV3RootSquash Enable NFSv3 root squash on blob container.
         * 
         * @return builder
         * 
         */
        public Builder enableNfsV3RootSquash(@Nullable Output enableNfsV3RootSquash) {
            $.enableNfsV3RootSquash = enableNfsV3RootSquash;
            return this;
        }

        /**
         * @param enableNfsV3RootSquash Enable NFSv3 root squash on blob container.
         * 
         * @return builder
         * 
         */
        public Builder enableNfsV3RootSquash(Boolean enableNfsV3RootSquash) {
            return enableNfsV3RootSquash(Output.of(enableNfsV3RootSquash));
        }

        /**
         * @param immutableStorageWithVersioning The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.
         * 
         * @return builder
         * 
         */
        public Builder immutableStorageWithVersioning(@Nullable Output immutableStorageWithVersioning) {
            $.immutableStorageWithVersioning = immutableStorageWithVersioning;
            return this;
        }

        /**
         * @param immutableStorageWithVersioning The object level immutability property of the container. The property is immutable and can only be set to true at the container creation time. Existing containers must undergo a migration process.
         * 
         * @return builder
         * 
         */
        public Builder immutableStorageWithVersioning(ImmutableStorageWithVersioningArgs immutableStorageWithVersioning) {
            return immutableStorageWithVersioning(Output.of(immutableStorageWithVersioning));
        }

        /**
         * @param metadata A name-value pair to associate with the container as metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(@Nullable Output> metadata) {
            $.metadata = metadata;
            return this;
        }

        /**
         * @param metadata A name-value pair to associate with the container as metadata.
         * 
         * @return builder
         * 
         */
        public Builder metadata(Map metadata) {
            return metadata(Output.of(metadata));
        }

        /**
         * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access.
         * 
         * @return builder
         * 
         */
        public Builder publicAccess(@Nullable Output publicAccess) {
            $.publicAccess = publicAccess;
            return this;
        }

        /**
         * @param publicAccess Specifies whether data in the container may be accessed publicly and the level of access.
         * 
         * @return builder
         * 
         */
        public Builder publicAccess(PublicAccess publicAccess) {
            return publicAccess(Output.of(publicAccess));
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group within the user's subscription. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public BlobContainerArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("BlobContainerArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("BlobContainerArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy