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

com.pulumi.aws.lex.inputs.V2modelsIntentClosingSettingArgs 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.aws.lex.inputs.V2modelsIntentClosingSettingClosingResponseArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentClosingSettingConditionalArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentClosingSettingNextStepArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsIntentClosingSettingArgs Empty = new V2modelsIntentClosingSettingArgs();

    /**
     * Whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.
     * 
     */
    @Import(name="active")
    private @Nullable Output active;

    /**
     * @return Whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.
     * 
     */
    public Optional> active() {
        return Optional.ofNullable(this.active);
    }

    /**
     * Configuration block for response that Amazon Lex sends to the user when the intent is complete. See `closing_response`.
     * 
     */
    @Import(name="closingResponse")
    private @Nullable Output closingResponse;

    /**
     * @return Configuration block for response that Amazon Lex sends to the user when the intent is complete. See `closing_response`.
     * 
     */
    public Optional> closingResponse() {
        return Optional.ofNullable(this.closingResponse);
    }

    /**
     * Configuration block for list of conditional branches associated with the intent's closing response. These branches are executed when the `next_step` attribute is set to `EvalutateConditional`. See `conditional`.
     * 
     */
    @Import(name="conditional")
    private @Nullable Output conditional;

    /**
     * @return Configuration block for list of conditional branches associated with the intent's closing response. These branches are executed when the `next_step` attribute is set to `EvalutateConditional`. See `conditional`.
     * 
     */
    public Optional> conditional() {
        return Optional.ofNullable(this.conditional);
    }

    /**
     * Next step that the bot executes after playing the intent's closing response. See `next_step`.
     * 
     */
    @Import(name="nextStep")
    private @Nullable Output nextStep;

    /**
     * @return Next step that the bot executes after playing the intent's closing response. See `next_step`.
     * 
     */
    public Optional> nextStep() {
        return Optional.ofNullable(this.nextStep);
    }

    private V2modelsIntentClosingSettingArgs() {}

    private V2modelsIntentClosingSettingArgs(V2modelsIntentClosingSettingArgs $) {
        this.active = $.active;
        this.closingResponse = $.closingResponse;
        this.conditional = $.conditional;
        this.nextStep = $.nextStep;
    }

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

    public static final class Builder {
        private V2modelsIntentClosingSettingArgs $;

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

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

        /**
         * @param active Whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.
         * 
         * @return builder
         * 
         */
        public Builder active(@Nullable Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Whether an intent's closing response is used. When this field is false, the closing response isn't sent to the user. If the active field isn't specified, the default is true.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param closingResponse Configuration block for response that Amazon Lex sends to the user when the intent is complete. See `closing_response`.
         * 
         * @return builder
         * 
         */
        public Builder closingResponse(@Nullable Output closingResponse) {
            $.closingResponse = closingResponse;
            return this;
        }

        /**
         * @param closingResponse Configuration block for response that Amazon Lex sends to the user when the intent is complete. See `closing_response`.
         * 
         * @return builder
         * 
         */
        public Builder closingResponse(V2modelsIntentClosingSettingClosingResponseArgs closingResponse) {
            return closingResponse(Output.of(closingResponse));
        }

        /**
         * @param conditional Configuration block for list of conditional branches associated with the intent's closing response. These branches are executed when the `next_step` attribute is set to `EvalutateConditional`. See `conditional`.
         * 
         * @return builder
         * 
         */
        public Builder conditional(@Nullable Output conditional) {
            $.conditional = conditional;
            return this;
        }

        /**
         * @param conditional Configuration block for list of conditional branches associated with the intent's closing response. These branches are executed when the `next_step` attribute is set to `EvalutateConditional`. See `conditional`.
         * 
         * @return builder
         * 
         */
        public Builder conditional(V2modelsIntentClosingSettingConditionalArgs conditional) {
            return conditional(Output.of(conditional));
        }

        /**
         * @param nextStep Next step that the bot executes after playing the intent's closing response. See `next_step`.
         * 
         * @return builder
         * 
         */
        public Builder nextStep(@Nullable Output nextStep) {
            $.nextStep = nextStep;
            return this;
        }

        /**
         * @param nextStep Next step that the bot executes after playing the intent's closing response. See `next_step`.
         * 
         * @return builder
         * 
         */
        public Builder nextStep(V2modelsIntentClosingSettingNextStepArgs nextStep) {
            return nextStep(Output.of(nextStep));
        }

        public V2modelsIntentClosingSettingArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy