com.pulumi.aws.lex.outputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch 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.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchCondition;
import com.pulumi.aws.lex.outputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchNextStep;
import com.pulumi.aws.lex.outputs.V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch {
/**
* @return Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
*
*/
private V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchCondition condition;
/**
* @return Name of the branch.
*
*/
private String name;
/**
* @return Configuration block for the next step in the conversation. See `next_step`.
*
*/
private V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchNextStep nextStep;
/**
* @return Configuration block for a list of message groups that Amazon Lex uses to respond to the user input. See `response`.
*
*/
private @Nullable V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchResponse response;
private V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch() {}
/**
* @return Configuration block for the expression to evaluate. If the condition is true, the branch's actions are taken. See `condition`.
*
*/
public V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchCondition condition() {
return this.condition;
}
/**
* @return Name of the branch.
*
*/
public String name() {
return this.name;
}
/**
* @return Configuration block for the next step in the conversation. See `next_step`.
*
*/
public V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchNextStep nextStep() {
return this.nextStep;
}
/**
* @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);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchCondition condition;
private String name;
private V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchNextStep nextStep;
private @Nullable V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchResponse response;
public Builder() {}
public Builder(V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch defaults) {
Objects.requireNonNull(defaults);
this.condition = defaults.condition;
this.name = defaults.name;
this.nextStep = defaults.nextStep;
this.response = defaults.response;
}
@CustomType.Setter
public Builder condition(V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchCondition condition) {
if (condition == null) {
throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch", "condition");
}
this.condition = condition;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder nextStep(V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchNextStep nextStep) {
if (nextStep == null) {
throw new MissingRequiredPropertyException("V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch", "nextStep");
}
this.nextStep = nextStep;
return this;
}
@CustomType.Setter
public Builder response(@Nullable V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranchResponse response) {
this.response = response;
return this;
}
public V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch build() {
final var _resultValue = new V2modelsIntentConfirmationSettingCodeHookPostCodeHookSpecificationSuccessConditionalConditionalBranch();
_resultValue.condition = condition;
_resultValue.name = name;
_resultValue.nextStep = nextStep;
_resultValue.response = response;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy