// *** 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.aws.lex.outputs.IntentFollowUpPromptRejectionStatementMessage;
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 IntentFollowUpPromptRejectionStatement {
    private List<IntentFollowUpPromptRejectionStatementMessage> messages;
    /**
     * @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). Must be less than or equal to 50000 characters in length.
     * 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). Must be less than or equal to 50000 characters in length.
     * 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). Must be less than or equal to 50000 characters in length.
     * 
     */
    private @Nullable String responseCard;

    private IntentFollowUpPromptRejectionStatement() {}
    public List<IntentFollowUpPromptRejectionStatementMessage> messages() {
        return this.messages;
    }
    /**
     * @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). Must be less than or equal to 50000 characters in length.
     * 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). Must be less than or equal to 50000 characters in length.
     * 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). Must be less than or equal to 50000 characters in length.
     * 
     */
    public Optional<String> responseCard() {
        return Optional.ofNullable(this.responseCard);
    }

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

    public static Builder builder(IntentFollowUpPromptRejectionStatement defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private List<IntentFollowUpPromptRejectionStatementMessage> messages;
        private @Nullable String responseCard;
        public Builder() {}
        public Builder(IntentFollowUpPromptRejectionStatement defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.messages = defaults.messages;
    	      this.responseCard = defaults.responseCard;
        }

        @CustomType.Setter
        public Builder messages(List<IntentFollowUpPromptRejectionStatementMessage> messages) {
            this.messages = Objects.requireNonNull(messages);
            return this;
        }
        public Builder messages(IntentFollowUpPromptRejectionStatementMessage... messages) {
            return messages(List.of(messages));
        }
        @CustomType.Setter
        public Builder responseCard(@Nullable String responseCard) {
            this.responseCard = responseCard;
            return this;
        }
        public IntentFollowUpPromptRejectionStatement build() {
            final var o = new IntentFollowUpPromptRejectionStatement();
            o.messages = messages;
            o.responseCard = responseCard;
            return o;
        }
    }
}
