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

com.pulumi.aws.s3.inputs.BucketWebsiteConfigurationV2ErrorDocumentArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.s3.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;


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

    public static final BucketWebsiteConfigurationV2ErrorDocumentArgs Empty = new BucketWebsiteConfigurationV2ErrorDocumentArgs();

    /**
     * Object key name to use when a 4XX class error occurs.
     * 
     */
    @Import(name="key", required=true)
    private Output key;

    /**
     * @return Object key name to use when a 4XX class error occurs.
     * 
     */
    public Output key() {
        return this.key;
    }

    private BucketWebsiteConfigurationV2ErrorDocumentArgs() {}

    private BucketWebsiteConfigurationV2ErrorDocumentArgs(BucketWebsiteConfigurationV2ErrorDocumentArgs $) {
        this.key = $.key;
    }

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

    public static final class Builder {
        private BucketWebsiteConfigurationV2ErrorDocumentArgs $;

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

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

        /**
         * @param key Object key name to use when a 4XX class error occurs.
         * 
         * @return builder
         * 
         */
        public Builder key(Output key) {
            $.key = key;
            return this;
        }

        /**
         * @param key Object key name to use when a 4XX class error occurs.
         * 
         * @return builder
         * 
         */
        public Builder key(String key) {
            return key(Output.of(key));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy