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

com.pulumi.aws.lex.inputs.V2modelsIntentClosingSettingConditionalArgs 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.V2modelsIntentClosingSettingConditionalConditionalBranchArgs;
import com.pulumi.aws.lex.inputs.V2modelsIntentClosingSettingConditionalDefaultBranchArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final V2modelsIntentClosingSettingConditionalArgs Empty = new V2modelsIntentClosingSettingConditionalArgs();

    /**
     * Whether a conditional branch is active. When active is false, the conditions are not evaluated.
     * 
     */
    @Import(name="active", required=true)
    private Output active;

    /**
     * @return Whether a conditional branch is active. When active is false, the conditions are not evaluated.
     * 
     */
    public Output active() {
        return this.active;
    }

    /**
     * Configuration blocks for conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true. See `conditional_branch`.
     * 
     */
    @Import(name="conditionalBranches")
    private @Nullable Output> conditionalBranches;

    /**
     * @return Configuration blocks for conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true. See `conditional_branch`.
     * 
     */
    public Optional>> conditionalBranches() {
        return Optional.ofNullable(this.conditionalBranches);
    }

    /**
     * Configuration block for the conditional branch that should be followed when the conditions for other branches are not satisfied. A branch is made up of a condition, a response and a next step. See `default_branch`.
     * 
     */
    @Import(name="defaultBranch", required=true)
    private Output defaultBranch;

    /**
     * @return Configuration block for the conditional branch that should be followed when the conditions for other branches are not satisfied. A branch is made up of a condition, a response and a next step. See `default_branch`.
     * 
     */
    public Output defaultBranch() {
        return this.defaultBranch;
    }

    private V2modelsIntentClosingSettingConditionalArgs() {}

    private V2modelsIntentClosingSettingConditionalArgs(V2modelsIntentClosingSettingConditionalArgs $) {
        this.active = $.active;
        this.conditionalBranches = $.conditionalBranches;
        this.defaultBranch = $.defaultBranch;
    }

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

    public static final class Builder {
        private V2modelsIntentClosingSettingConditionalArgs $;

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

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

        /**
         * @param active Whether a conditional branch is active. When active is false, the conditions are not evaluated.
         * 
         * @return builder
         * 
         */
        public Builder active(Output active) {
            $.active = active;
            return this;
        }

        /**
         * @param active Whether a conditional branch is active. When active is false, the conditions are not evaluated.
         * 
         * @return builder
         * 
         */
        public Builder active(Boolean active) {
            return active(Output.of(active));
        }

        /**
         * @param conditionalBranches Configuration blocks for conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true. See `conditional_branch`.
         * 
         * @return builder
         * 
         */
        public Builder conditionalBranches(@Nullable Output> conditionalBranches) {
            $.conditionalBranches = conditionalBranches;
            return this;
        }

        /**
         * @param conditionalBranches Configuration blocks for conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true. See `conditional_branch`.
         * 
         * @return builder
         * 
         */
        public Builder conditionalBranches(List conditionalBranches) {
            return conditionalBranches(Output.of(conditionalBranches));
        }

        /**
         * @param conditionalBranches Configuration blocks for conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true. See `conditional_branch`.
         * 
         * @return builder
         * 
         */
        public Builder conditionalBranches(V2modelsIntentClosingSettingConditionalConditionalBranchArgs... conditionalBranches) {
            return conditionalBranches(List.of(conditionalBranches));
        }

        /**
         * @param defaultBranch Configuration block for the conditional branch that should be followed when the conditions for other branches are not satisfied. A branch is made up of a condition, a response and a next step. See `default_branch`.
         * 
         * @return builder
         * 
         */
        public Builder defaultBranch(Output defaultBranch) {
            $.defaultBranch = defaultBranch;
            return this;
        }

        /**
         * @param defaultBranch Configuration block for the conditional branch that should be followed when the conditions for other branches are not satisfied. A branch is made up of a condition, a response and a next step. See `default_branch`.
         * 
         * @return builder
         * 
         */
        public Builder defaultBranch(V2modelsIntentClosingSettingConditionalDefaultBranchArgs defaultBranch) {
            return defaultBranch(Output.of(defaultBranch));
        }

        public V2modelsIntentClosingSettingConditionalArgs build() {
            if ($.active == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentClosingSettingConditionalArgs", "active");
            }
            if ($.defaultBranch == null) {
                throw new MissingRequiredPropertyException("V2modelsIntentClosingSettingConditionalArgs", "defaultBranch");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy