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

com.pulumi.alicloud.oss.inputs.BucketWebsiteArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.oss.inputs;

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 BucketWebsiteArgs extends com.pulumi.resources.ResourceArgs {

    public static final BucketWebsiteArgs Empty = new BucketWebsiteArgs();

    /**
     * An absolute path to the document to return in case of a 4XX error.
     * 
     */
    @Import(name="errorDocument")
    private @Nullable Output errorDocument;

    /**
     * @return An absolute path to the document to return in case of a 4XX error.
     * 
     */
    public Optional> errorDocument() {
        return Optional.ofNullable(this.errorDocument);
    }

    /**
     * Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
     * 
     */
    @Import(name="indexDocument", required=true)
    private Output indexDocument;

    /**
     * @return Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
     * 
     */
    public Output indexDocument() {
        return this.indexDocument;
    }

    private BucketWebsiteArgs() {}

    private BucketWebsiteArgs(BucketWebsiteArgs $) {
        this.errorDocument = $.errorDocument;
        this.indexDocument = $.indexDocument;
    }

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

    public static final class Builder {
        private BucketWebsiteArgs $;

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

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

        /**
         * @param errorDocument An absolute path to the document to return in case of a 4XX error.
         * 
         * @return builder
         * 
         */
        public Builder errorDocument(@Nullable Output errorDocument) {
            $.errorDocument = errorDocument;
            return this;
        }

        /**
         * @param errorDocument An absolute path to the document to return in case of a 4XX error.
         * 
         * @return builder
         * 
         */
        public Builder errorDocument(String errorDocument) {
            return errorDocument(Output.of(errorDocument));
        }

        /**
         * @param indexDocument Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
         * 
         * @return builder
         * 
         */
        public Builder indexDocument(Output indexDocument) {
            $.indexDocument = indexDocument;
            return this;
        }

        /**
         * @param indexDocument Alicloud OSS returns this index document when requests are made to the root domain or any of the subfolders.
         * 
         * @return builder
         * 
         */
        public Builder indexDocument(String indexDocument) {
            return indexDocument(Output.of(indexDocument));
        }

        public BucketWebsiteArgs build() {
            if ($.indexDocument == null) {
                throw new MissingRequiredPropertyException("BucketWebsiteArgs", "indexDocument");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy