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

com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs 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.V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchConditionArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchNextStepArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchResponseArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs Empty = new V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs();

    /**
     * Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
     * 
     */
    @Import(name="condition", required=true)
    private Output condition;

    /**
     * @return Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
     * 
     */
    public Output condition() {
        return this.condition;
    }

    /**
     * Name of the branch.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return Name of the branch.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * Configuration block for the next step in the conversation. See `next_step`.
     * 
     */
    @Import(name="nextStep", required=true)
    private Output nextStep;

    /**
     * @return Configuration block for the next step in the conversation. See `next_step`.
     * 
     */
    public Output nextStep() {
        return this.nextStep;
    }

    /**
     * Configuration block for a list of message groups that Amazon Lex uses to respond to the user input. See `response`.
     * 
     */
    @Import(name="response")
    private @Nullable Output response;

    /**
     * @return Configuration block for a list of message groups that Amazon Lex uses to respond to the user input. See `response`.
     * 
     */
    public Optional> response() {
        return Optional.ofNullable(this.response);
    }

    private V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs() {}

    private V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs(V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs $) {
        this.condition = $.condition;
        this.name = $.name;
        this.nextStep = $.nextStep;
        this.response = $.response;
    }

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

    public static final class Builder {
        private V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs $;

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

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

        /**
         * @param condition Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
         * 
         * @return builder
         * 
         */
        public Builder condition(Output condition) {
            $.condition = condition;
            return this;
        }

        /**
         * @param condition Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
         * 
         * @return builder
         * 
         */
        public Builder condition(V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchConditionArgs condition) {
            return condition(Output.of(condition));
        }

        /**
         * @param name Name of the branch.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the branch.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nextStep Configuration block for the next step in the conversation. See `next_step`.
         * 
         * @return builder
         * 
         */
        public Builder nextStep(Output nextStep) {
            $.nextStep = nextStep;
            return this;
        }

        /**
         * @param nextStep Configuration block for the next step in the conversation. See `next_step`.
         * 
         * @return builder
         * 
         */
        public Builder nextStep(V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchNextStepArgs nextStep) {
            return nextStep(Output.of(nextStep));
        }

        /**
         * @param response Configuration block for a list of message groups that Amazon Lex uses to respond to the user input. See `response`.
         * 
         * @return builder
         * 
         */
        public Builder response(@Nullable Output response) {
            $.response = response;
            return this;
        }

        /**
         * @param response Configuration block for a list of message groups that Amazon Lex uses to respond to the user input. See `response`.
         * 
         * @return builder
         * 
         */
        public Builder response(V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchResponseArgs response) {
            return response(Output.of(response));
        }

        public V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs build() {
            if ($.condition == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs", "condition");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs", "name");
            }
            if ($.nextStep == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingDeclinationConditionalConditionalBranchArgs", "nextStep");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy