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

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

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
Show 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.V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs Empty = new V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs();

    /**
     * Whether the user can interrupt a speech response from Amazon Lex.
     * 
     */
    @Import(name="allowInterrupt")
    private @Nullable Output allowInterrupt;

    /**
     * @return Whether the user can interrupt a speech response from Amazon Lex.
     * 
     */
    public Optional> allowInterrupt() {
        return Optional.ofNullable(this.allowInterrupt);
    }

    /**
     * How often a message should be sent to the user.
     * 
     */
    @Import(name="frequencyInSeconds", required=true)
    private Output frequencyInSeconds;

    /**
     * @return How often a message should be sent to the user.
     * 
     */
    public Output frequencyInSeconds() {
        return this.frequencyInSeconds;
    }

    @Import(name="messageGroups")
    private @Nullable Output> messageGroups;

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

    /**
     * If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
     * 
     */
    @Import(name="timeoutInSeconds", required=true)
    private Output timeoutInSeconds;

    /**
     * @return If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
     * 
     */
    public Output timeoutInSeconds() {
        return this.timeoutInSeconds;
    }

    private V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs() {}

    private V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs(V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs $) {
        this.allowInterrupt = $.allowInterrupt;
        this.frequencyInSeconds = $.frequencyInSeconds;
        this.messageGroups = $.messageGroups;
        this.timeoutInSeconds = $.timeoutInSeconds;
    }

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

    public static final class Builder {
        private V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs $;

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

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

        /**
         * @param allowInterrupt Whether the user can interrupt a speech response from Amazon Lex.
         * 
         * @return builder
         * 
         */
        public Builder allowInterrupt(@Nullable Output allowInterrupt) {
            $.allowInterrupt = allowInterrupt;
            return this;
        }

        /**
         * @param allowInterrupt Whether the user can interrupt a speech response from Amazon Lex.
         * 
         * @return builder
         * 
         */
        public Builder allowInterrupt(Boolean allowInterrupt) {
            return allowInterrupt(Output.of(allowInterrupt));
        }

        /**
         * @param frequencyInSeconds How often a message should be sent to the user.
         * 
         * @return builder
         * 
         */
        public Builder frequencyInSeconds(Output frequencyInSeconds) {
            $.frequencyInSeconds = frequencyInSeconds;
            return this;
        }

        /**
         * @param frequencyInSeconds How often a message should be sent to the user.
         * 
         * @return builder
         * 
         */
        public Builder frequencyInSeconds(Integer frequencyInSeconds) {
            return frequencyInSeconds(Output.of(frequencyInSeconds));
        }

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

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

        public Builder messageGroups(V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseMessageGroupArgs... messageGroups) {
            return messageGroups(List.of(messageGroups));
        }

        /**
         * @param timeoutInSeconds If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(Output timeoutInSeconds) {
            $.timeoutInSeconds = timeoutInSeconds;
            return this;
        }

        /**
         * @param timeoutInSeconds If Amazon Lex waits longer than this length of time for a response, it will stop sending messages.
         * 
         * @return builder
         * 
         */
        public Builder timeoutInSeconds(Integer timeoutInSeconds) {
            return timeoutInSeconds(Output.of(timeoutInSeconds));
        }

        public V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs build() {
            if ($.frequencyInSeconds == null) {
                throw new MissingRequiredPropertyException("V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs", "frequencyInSeconds");
            }
            if ($.timeoutInSeconds == null) {
                throw new MissingRequiredPropertyException("V2modelsSlotValueElicitationSettingWaitAndContinueSpecificationStillWaitingResponseArgs", "timeoutInSeconds");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy