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

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

import com.pulumi.aws.lex.outputs.V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalConditionalBranch;
import com.pulumi.aws.lex.outputs.V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalDefaultBranch;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional {
    /**
     * @return Whether a conditional branch is active. When active is false, the conditions are not evaluated.
     * 
     */
    private Boolean active;
    /**
     * @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`.
     * 
     */
    private @Nullable List conditionalBranches;
    /**
     * @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`.
     * 
     */
    private V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalDefaultBranch defaultBranch;

    private V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional() {}
    /**
     * @return Whether a conditional branch is active. When active is false, the conditions are not evaluated.
     * 
     */
    public Boolean active() {
        return this.active;
    }
    /**
     * @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 List conditionalBranches() {
        return this.conditionalBranches == null ? List.of() : this.conditionalBranches;
    }
    /**
     * @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 V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalDefaultBranch defaultBranch() {
        return this.defaultBranch;
    }

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

    public static Builder builder(V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean active;
        private @Nullable List conditionalBranches;
        private V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalDefaultBranch defaultBranch;
        public Builder() {}
        public Builder(V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.active = defaults.active;
    	      this.conditionalBranches = defaults.conditionalBranches;
    	      this.defaultBranch = defaults.defaultBranch;
        }

        @CustomType.Setter
        public Builder active(Boolean active) {
            if (active == null) {
              throw new MissingRequiredPropertyException("V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional", "active");
            }
            this.active = active;
            return this;
        }
        @CustomType.Setter
        public Builder conditionalBranches(@Nullable List conditionalBranches) {

            this.conditionalBranches = conditionalBranches;
            return this;
        }
        public Builder conditionalBranches(V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalConditionalBranch... conditionalBranches) {
            return conditionalBranches(List.of(conditionalBranches));
        }
        @CustomType.Setter
        public Builder defaultBranch(V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditionalDefaultBranch defaultBranch) {
            if (defaultBranch == null) {
              throw new MissingRequiredPropertyException("V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional", "defaultBranch");
            }
            this.defaultBranch = defaultBranch;
            return this;
        }
        public V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional build() {
            final var _resultValue = new V2modelsIntentFulfillmentCodeHookPostFulfillmentStatusSpecificationSuccessConditional();
            _resultValue.active = active;
            _resultValue.conditionalBranches = conditionalBranches;
            _resultValue.defaultBranch = defaultBranch;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy