// *** 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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class BucketNotificationQueue {
    /**
     * @return Specifies [event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
     * 
     */
    private List<String> events;
    /**
     * @return Object key name prefix.
     * 
     */
    private @Nullable String filterPrefix;
    /**
     * @return Object key name suffix.
     * 
     */
    private @Nullable String filterSuffix;
    /**
     * @return Unique identifier for each of the notification configurations.
     * 
     */
    private @Nullable String id;
    /**
     * @return SQS queue ARN.
     * 
     */
    private String queueArn;

    private BucketNotificationQueue() {}
    /**
     * @return Specifies [event](http://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html#notification-how-to-event-types-and-destinations) for which to send notifications.
     * 
     */
    public List<String> events() {
        return this.events;
    }
    /**
     * @return Object key name prefix.
     * 
     */
    public Optional<String> filterPrefix() {
        return Optional.ofNullable(this.filterPrefix);
    }
    /**
     * @return Object key name suffix.
     * 
     */
    public Optional<String> filterSuffix() {
        return Optional.ofNullable(this.filterSuffix);
    }
    /**
     * @return Unique identifier for each of the notification configurations.
     * 
     */
    public Optional<String> id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return SQS queue ARN.
     * 
     */
    public String queueArn() {
        return this.queueArn;
    }

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

    public static Builder builder(BucketNotificationQueue defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<String> events;
        private @Nullable String filterPrefix;
        private @Nullable String filterSuffix;
        private @Nullable String id;
        private String queueArn;
        public Builder() {}
        public Builder(BucketNotificationQueue defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.events = defaults.events;
    	      this.filterPrefix = defaults.filterPrefix;
    	      this.filterSuffix = defaults.filterSuffix;
    	      this.id = defaults.id;
    	      this.queueArn = defaults.queueArn;
        }

        @CustomType.Setter
        public Builder events(List<String> events) {
            this.events = Objects.requireNonNull(events);
            return this;
        }
        public Builder events(String... events) {
            return events(List.of(events));
        }
        @CustomType.Setter
        public Builder filterPrefix(@Nullable String filterPrefix) {
            this.filterPrefix = filterPrefix;
            return this;
        }
        @CustomType.Setter
        public Builder filterSuffix(@Nullable String filterSuffix) {
            this.filterSuffix = filterSuffix;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder queueArn(String queueArn) {
            this.queueArn = Objects.requireNonNull(queueArn);
            return this;
        }
        public BucketNotificationQueue build() {
            final var o = new BucketNotificationQueue();
            o.events = events;
            o.filterPrefix = filterPrefix;
            o.filterSuffix = filterSuffix;
            o.id = id;
            o.queueArn = queueArn;
            return o;
        }
    }
}
