public static interface ConditionalBranch.Builder extends SdkPojo, CopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>
| Modifier and Type | Method and Description |
|---|---|
ConditionalBranch.Builder |
condition(Condition condition)
Contains the expression to evaluate.
|
default ConditionalBranch.Builder |
condition(Consumer<Condition.Builder> condition)
Contains the expression to evaluate.
|
ConditionalBranch.Builder |
name(String name)
The name of the branch.
|
default ConditionalBranch.Builder |
nextStep(Consumer<DialogState.Builder> nextStep)
The next step in the conversation.
|
ConditionalBranch.Builder |
nextStep(DialogState nextStep)
The next step in the conversation.
|
default ConditionalBranch.Builder |
response(Consumer<ResponseSpecification.Builder> response)
Sets the value of the Response property for this object.
|
ConditionalBranch.Builder |
response(ResponseSpecification response)
Sets the value of the Response property for this object.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildConditionalBranch.Builder name(String name)
The name of the branch.
name - The name of the branch.ConditionalBranch.Builder condition(Condition condition)
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
condition - Contains the expression to evaluate. If the condition is true, the branch's actions are taken.default ConditionalBranch.Builder condition(Consumer<Condition.Builder> condition)
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
This is a convenience method that creates an instance of theCondition.Builder avoiding the need to
create one manually via Condition.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to condition(Condition).
condition - a consumer that will call methods on Condition.Buildercondition(Condition)ConditionalBranch.Builder nextStep(DialogState nextStep)
The next step in the conversation.
nextStep - The next step in the conversation.default ConditionalBranch.Builder nextStep(Consumer<DialogState.Builder> nextStep)
The next step in the conversation.
This is a convenience method that creates an instance of theDialogState.Builder avoiding the need to
create one manually via DialogState.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to nextStep(DialogState).
nextStep - a consumer that will call methods on DialogState.BuildernextStep(DialogState)ConditionalBranch.Builder response(ResponseSpecification response)
response - The new value for the Response property for this object.default ConditionalBranch.Builder response(Consumer<ResponseSpecification.Builder> response)
ResponseSpecification.Builder avoiding
the need to create one manually via ResponseSpecification.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to response(ResponseSpecification).
response - a consumer that will call methods on ResponseSpecification.Builderresponse(ResponseSpecification)Copyright © 2022. All rights reserved.