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

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

@CustomType
public final class BotClarificationPromptMessage {
    /**
     * @return The text of the message.
     * 
     */
    private String content;
    /**
     * @return The content type of the message string.
     * 
     */
    private String contentType;
    /**
     * @return Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response.
     * 
     */
    private @Nullable Integer groupNumber;

    private BotClarificationPromptMessage() {}
    /**
     * @return The text of the message.
     * 
     */
    public String content() {
        return this.content;
    }
    /**
     * @return The content type of the message string.
     * 
     */
    public String contentType() {
        return this.contentType;
    }
    /**
     * @return Identifies the message group that the message belongs to. When a group
     * is assigned to a message, Amazon Lex returns one message from each group in the response.
     * 
     */
    public Optional<Integer> groupNumber() {
        return Optional.ofNullable(this.groupNumber);
    }

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

    public static Builder builder(BotClarificationPromptMessage defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String content;
        private String contentType;
        private @Nullable Integer groupNumber;
        public Builder() {}
        public Builder(BotClarificationPromptMessage defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.content = defaults.content;
    	      this.contentType = defaults.contentType;
    	      this.groupNumber = defaults.groupNumber;
        }

        @CustomType.Setter
        public Builder content(String content) {
            this.content = Objects.requireNonNull(content);
            return this;
        }
        @CustomType.Setter
        public Builder contentType(String contentType) {
            this.contentType = Objects.requireNonNull(contentType);
            return this;
        }
        @CustomType.Setter
        public Builder groupNumber(@Nullable Integer groupNumber) {
            this.groupNumber = groupNumber;
            return this;
        }
        public BotClarificationPromptMessage build() {
            final var o = new BotClarificationPromptMessage();
            o.content = content;
            o.contentType = contentType;
            o.groupNumber = groupNumber;
            return o;
        }
    }
}
