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

com.pulumi.azure.storage.inputs.AccountStaticWebsiteArgs Maven / Gradle / Ivy

// *** 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.storage.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final AccountStaticWebsiteArgs Empty = new AccountStaticWebsiteArgs();

    /**
     * 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 subfolder. 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 subfolder. For example, index.html. The value is case-sensitive.
     * 
     */
    public Optional> indexDocument() {
        return Optional.ofNullable(this.indexDocument);
    }

    private AccountStaticWebsiteArgs() {}

    private AccountStaticWebsiteArgs(AccountStaticWebsiteArgs $) {
        this.error404Document = $.error404Document;
        this.indexDocument = $.indexDocument;
    }

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

    public static final class Builder {
        private AccountStaticWebsiteArgs $;

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

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

        /**
         * @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 subfolder. 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 subfolder. For example, index.html. The value is case-sensitive.
         * 
         * @return builder
         * 
         */
        public Builder indexDocument(String indexDocument) {
            return indexDocument(Output.of(indexDocument));
        }

        public AccountStaticWebsiteArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy