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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class BucketWebsiteConfigurationV2IndexDocument {
    /**
     * @return Suffix that is appended to a request that is for a directory on the website endpoint.
     * For example, if the suffix is `index.html` and you make a request to `samplebucket/images/`, the data that is returned will be for the object with the key name `images/index.html`.
     * The suffix must not be empty and must not include a slash character.
     * 
     */
    private String suffix;

    private BucketWebsiteConfigurationV2IndexDocument() {}
    /**
     * @return Suffix that is appended to a request that is for a directory on the website endpoint.
     * For example, if the suffix is `index.html` and you make a request to `samplebucket/images/`, the data that is returned will be for the object with the key name `images/index.html`.
     * The suffix must not be empty and must not include a slash character.
     * 
     */
    public String suffix() {
        return this.suffix;
    }

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

    public static Builder builder(BucketWebsiteConfigurationV2IndexDocument defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String suffix;
        public Builder() {}
        public Builder(BucketWebsiteConfigurationV2IndexDocument defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.suffix = defaults.suffix;
        }

        @CustomType.Setter
        public Builder suffix(String suffix) {
            this.suffix = Objects.requireNonNull(suffix);
            return this;
        }
        public BucketWebsiteConfigurationV2IndexDocument build() {
            final var o = new BucketWebsiteConfigurationV2IndexDocument();
            o.suffix = suffix;
            return o;
        }
    }
}
