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

com.pulumi.aws.lex.outputs.V2modelsIntentClosingSetting 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.outputs;

import com.pulumi.aws.lex.outputs.V2modelsIntentClosingSettingClosingResponse;
import com.pulumi.aws.lex.outputs.V2modelsIntentClosingSettingConditional;
import com.pulumi.aws.lex.outputs.V2modelsIntentClosingSettingNextStep;
import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class V2modelsIntentClosingSetting {
    /**
     * @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.
     * 
     */
    private @Nullable Boolean active;
    /**
     * @return Configuration block for response that Amazon Lex sends to the user when the intent is complete. See `closing_response`.
     * 
     */
    private @Nullable V2modelsIntentClosingSettingClosingResponse closingResponse;
    /**
     * @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`.
     * 
     */
    private @Nullable V2modelsIntentClosingSettingConditional conditional;
    /**
     * @return Next step that the bot executes after playing the intent's closing response. See `next_step`.
     * 
     */
    private @Nullable V2modelsIntentClosingSettingNextStep nextStep;

    private V2modelsIntentClosingSetting() {}
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @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);
    }
    /**
     * @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);
    }

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

    public static Builder builder(V2modelsIntentClosingSetting defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean active;
        private @Nullable V2modelsIntentClosingSettingClosingResponse closingResponse;
        private @Nullable V2modelsIntentClosingSettingConditional conditional;
        private @Nullable V2modelsIntentClosingSettingNextStep nextStep;
        public Builder() {}
        public Builder(V2modelsIntentClosingSetting defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.closingResponse = defaults.closingResponse;
    	      this.conditional = defaults.conditional;
    	      this.nextStep = defaults.nextStep;
        }

        @CustomType.Setter
        public Builder active(@Nullable Boolean active) {

            this.active = active;
            return this;
        }
        @CustomType.Setter
        public Builder closingResponse(@Nullable V2modelsIntentClosingSettingClosingResponse closingResponse) {

            this.closingResponse = closingResponse;
            return this;
        }
        @CustomType.Setter
        public Builder conditional(@Nullable V2modelsIntentClosingSettingConditional conditional) {

            this.conditional = conditional;
            return this;
        }
        @CustomType.Setter
        public Builder nextStep(@Nullable V2modelsIntentClosingSettingNextStep nextStep) {

            this.nextStep = nextStep;
            return this;
        }
        public V2modelsIntentClosingSetting build() {
            final var _resultValue = new V2modelsIntentClosingSetting();
            _resultValue.active = active;
            _resultValue.closingResponse = closingResponse;
            _resultValue.conditional = conditional;
            _resultValue.nextStep = nextStep;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy