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

com.pulumi.aws.lex.inputs.BotClarificationPromptMessageArgs Maven / Gradle / Ivy

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BotClarificationPromptMessageArgs Empty = new BotClarificationPromptMessageArgs();

    /**
     * The text of the message.
     * 
     */
    @Import(name="content", required=true)
    private Output content;

    /**
     * @return The text of the message.
     * 
     */
    public Output content() {
        return this.content;
    }

    /**
     * The content type of the message string.
     * 
     */
    @Import(name="contentType", required=true)
    private Output contentType;

    /**
     * @return The content type of the message string.
     * 
     */
    public Output contentType() {
        return this.contentType;
    }

    /**
     * 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.
     * 
     */
    @Import(name="groupNumber")
    private @Nullable Output groupNumber;

    /**
     * @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> groupNumber() {
        return Optional.ofNullable(this.groupNumber);
    }

    private BotClarificationPromptMessageArgs() {}

    private BotClarificationPromptMessageArgs(BotClarificationPromptMessageArgs $) {
        this.content = $.content;
        this.contentType = $.contentType;
        this.groupNumber = $.groupNumber;
    }

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

    public static final class Builder {
        private BotClarificationPromptMessageArgs $;

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

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

        /**
         * @param content The text of the message.
         * 
         * @return builder
         * 
         */
        public Builder content(Output content) {
            $.content = content;
            return this;
        }

        /**
         * @param content The text of the message.
         * 
         * @return builder
         * 
         */
        public Builder content(String content) {
            return content(Output.of(content));
        }

        /**
         * @param contentType The content type of the message string.
         * 
         * @return builder
         * 
         */
        public Builder contentType(Output contentType) {
            $.contentType = contentType;
            return this;
        }

        /**
         * @param contentType The content type of the message string.
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Output.of(contentType));
        }

        /**
         * @param groupNumber 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.
         * 
         * @return builder
         * 
         */
        public Builder groupNumber(@Nullable Output groupNumber) {
            $.groupNumber = groupNumber;
            return this;
        }

        /**
         * @param groupNumber 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.
         * 
         * @return builder
         * 
         */
        public Builder groupNumber(Integer groupNumber) {
            return groupNumber(Output.of(groupNumber));
        }

        public BotClarificationPromptMessageArgs build() {
            if ($.content == null) {
                throw new MissingRequiredPropertyException("BotClarificationPromptMessageArgs", "content");
            }
            if ($.contentType == null) {
                throw new MissingRequiredPropertyException("BotClarificationPromptMessageArgs", "contentType");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy