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

com.pulumi.azurenative.storage.StorageAccountStaticWebsiteArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final StorageAccountStaticWebsiteArgs Empty = new StorageAccountStaticWebsiteArgs();

    /**
     * The name of the storage account within the specified resource group.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The name of the storage account within the specified resource group.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
     * 
     */
    @Import(name="error404Document")
    private @Nullable Output error404Document;

    /**
     * @return The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
     * 
     */
    public Optional> error404Document() {
        return Optional.ofNullable(this.error404Document);
    }

    /**
     * The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
     * 
     */
    @Import(name="indexDocument")
    private @Nullable Output indexDocument;

    /**
     * @return The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
     * 
     */
    public Optional> indexDocument() {
        return Optional.ofNullable(this.indexDocument);
    }

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

    private StorageAccountStaticWebsiteArgs(StorageAccountStaticWebsiteArgs $) {
        this.accountName = $.accountName;
        this.error404Document = $.error404Document;
        this.indexDocument = $.indexDocument;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private StorageAccountStaticWebsiteArgs $;

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

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

        /**
         * @param accountName The name of the storage account within the specified resource group.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The name of the storage account within the specified resource group.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param error404Document The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
         * 
         * @return builder
         * 
         */
        public Builder error404Document(@Nullable Output error404Document) {
            $.error404Document = error404Document;
            return this;
        }

        /**
         * @param error404Document The absolute path to a custom webpage that should be used when a request is made which does not correspond to an existing file.
         * 
         * @return builder
         * 
         */
        public Builder error404Document(String error404Document) {
            return error404Document(Output.of(error404Document));
        }

        /**
         * @param indexDocument The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder indexDocument(@Nullable Output indexDocument) {
            $.indexDocument = indexDocument;
            return this;
        }

        /**
         * @param indexDocument The webpage that Azure Storage serves for requests to the root of a website or any sub-folder. For example, 'index.html'. The value is case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder indexDocument(String indexDocument) {
            return indexDocument(Output.of(indexDocument));
        }

        /**
         * @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 StorageAccountStaticWebsiteArgs build() {
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("StorageAccountStaticWebsiteArgs", "accountName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("StorageAccountStaticWebsiteArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy