// *** 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.aws.lex.inputs.BotAbortStatementMessageArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BotAbortStatementArgs Empty = new BotAbortStatementArgs();

    @Import(name="messages", required=true)
    private Output<List<BotAbortStatementMessageArgs>> messages;

    public Output<List<BotAbortStatementMessageArgs>> messages() {
        return this.messages;
    }

    /**
     * The response card. Amazon Lex will substitute session attributes and
     * slot values into the response card. For more information, see
     * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
     * slot values into the response card. For more information, see
     * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
     * 
     */
    @Import(name="responseCard")
    private @Nullable Output<String> responseCard;

    /**
     * @return The response card. Amazon Lex will substitute session attributes and
     * slot values into the response card. For more information, see
     * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
     * slot values into the response card. For more information, see
     * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
     * 
     */
    public Optional<Output<String>> responseCard() {
        return Optional.ofNullable(this.responseCard);
    }

    private BotAbortStatementArgs() {}

    private BotAbortStatementArgs(BotAbortStatementArgs $) {
        this.messages = $.messages;
        this.responseCard = $.responseCard;
    }

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

    public static final class Builder {
        private BotAbortStatementArgs $;

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

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

        public Builder messages(Output<List<BotAbortStatementMessageArgs>> messages) {
            $.messages = messages;
            return this;
        }

        public Builder messages(List<BotAbortStatementMessageArgs> messages) {
            return messages(Output.of(messages));
        }

        public Builder messages(BotAbortStatementMessageArgs... messages) {
            return messages(List.of(messages));
        }

        /**
         * @param responseCard The response card. Amazon Lex will substitute session attributes and
         * slot values into the response card. For more information, see
         * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
         * slot values into the response card. For more information, see
         * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
         * 
         * @return builder
         * 
         */
        public Builder responseCard(@Nullable Output<String> responseCard) {
            $.responseCard = responseCard;
            return this;
        }

        /**
         * @param responseCard The response card. Amazon Lex will substitute session attributes and
         * slot values into the response card. For more information, see
         * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
         * slot values into the response card. For more information, see
         * [Example: Using a Response Card](https://docs.aws.amazon.com/lex/latest/dg/ex-resp-card.html).
         * 
         * @return builder
         * 
         */
        public Builder responseCard(String responseCard) {
            return responseCard(Output.of(responseCard));
        }

        public BotAbortStatementArgs build() {
            $.messages = Objects.requireNonNull($.messages, "expected parameter 'messages' to be non-null");
            return $;
        }
    }

}
