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

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

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** 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.BotClarificationPromptMessageArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BotClarificationPromptArgs Empty = new BotClarificationPromptArgs();

    /**
     * The number of times to prompt the user for information.
     * 
     */
    @Import(name="maxAttempts", required=true)
    private Output maxAttempts;

    /**
     * @return The number of times to prompt the user for information.
     * 
     */
    public Output maxAttempts() {
        return this.maxAttempts;
    }

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

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

    @Import(name="responseCard")
    private @Nullable Output responseCard;

    public Optional> responseCard() {
        return Optional.ofNullable(this.responseCard);
    }

    private BotClarificationPromptArgs() {}

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

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

    public static final class Builder {
        private BotClarificationPromptArgs $;

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

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

        /**
         * @param maxAttempts The number of times to prompt the user for information.
         * 
         * @return builder
         * 
         */
        public Builder maxAttempts(Output maxAttempts) {
            $.maxAttempts = maxAttempts;
            return this;
        }

        /**
         * @param maxAttempts The number of times to prompt the user for information.
         * 
         * @return builder
         * 
         */
        public Builder maxAttempts(Integer maxAttempts) {
            return maxAttempts(Output.of(maxAttempts));
        }

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

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

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

        public Builder responseCard(@Nullable Output responseCard) {
            $.responseCard = responseCard;
            return this;
        }

        public Builder responseCard(String responseCard) {
            return responseCard(Output.of(responseCard));
        }

        public BotClarificationPromptArgs build() {
            if ($.maxAttempts == null) {
                throw new MissingRequiredPropertyException("BotClarificationPromptArgs", "maxAttempts");
            }
            if ($.messages == null) {
                throw new MissingRequiredPropertyException("BotClarificationPromptArgs", "messages");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy