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

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

@CustomType
public final class RoomMessageReviewHandler {
    /**
     * @return The fallback behavior (whether the message
     * is allowed or denied) if the handler does not return a valid response,
     * encounters an error, or times out. Valid values: `ALLOW`, `DENY`.
     * 
     */
    private @Nullable String fallbackResult;
    /**
     * @return ARN of the lambda message review handler function.
     * 
     */
    private @Nullable String uri;

    private RoomMessageReviewHandler() {}
    /**
     * @return The fallback behavior (whether the message
     * is allowed or denied) if the handler does not return a valid response,
     * encounters an error, or times out. Valid values: `ALLOW`, `DENY`.
     * 
     */
    public Optional<String> fallbackResult() {
        return Optional.ofNullable(this.fallbackResult);
    }
    /**
     * @return ARN of the lambda message review handler function.
     * 
     */
    public Optional<String> uri() {
        return Optional.ofNullable(this.uri);
    }

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

    public static Builder builder(RoomMessageReviewHandler defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String fallbackResult;
        private @Nullable String uri;
        public Builder() {}
        public Builder(RoomMessageReviewHandler defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.fallbackResult = defaults.fallbackResult;
    	      this.uri = defaults.uri;
        }

        @CustomType.Setter
        public Builder fallbackResult(@Nullable String fallbackResult) {
            this.fallbackResult = fallbackResult;
            return this;
        }
        @CustomType.Setter
        public Builder uri(@Nullable String uri) {
            this.uri = uri;
            return this;
        }
        public RoomMessageReviewHandler build() {
            final var o = new RoomMessageReviewHandler();
            o.fallbackResult = fallbackResult;
            o.uri = uri;
            return o;
        }
    }
}
