Interface ConditionalBranch.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>,SdkBuilder<ConditionalBranch.Builder,ConditionalBranch>,SdkPojo
- Enclosing class:
- ConditionalBranch
public static interface ConditionalBranch.Builder extends SdkPojo, CopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ConditionalBranch.Buildercondition(Consumer<Condition.Builder> condition)Contains the expression to evaluate.ConditionalBranch.Buildercondition(Condition condition)Contains the expression to evaluate.ConditionalBranch.Buildername(String name)The name of the branch.default ConditionalBranch.BuildernextStep(Consumer<DialogState.Builder> nextStep)The next step in the conversation.ConditionalBranch.BuildernextStep(DialogState nextStep)The next step in the conversation.default ConditionalBranch.Builderresponse(Consumer<ResponseSpecification.Builder> response)Sets the value of the Response property for this object.ConditionalBranch.Builderresponse(ResponseSpecification response)Sets the value of the Response property for this object.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
name
ConditionalBranch.Builder name(String name)
The name of the branch.
- Parameters:
name- The name of the branch.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
ConditionalBranch.Builder condition(Condition condition)
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
- Parameters:
condition- Contains the expression to evaluate. If the condition is true, the branch's actions are taken.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
condition
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.Builderavoiding the need to create one manually viaCondition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocondition(Condition).- Parameters:
condition- a consumer that will call methods onCondition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
condition(Condition)
-
nextStep
ConditionalBranch.Builder nextStep(DialogState nextStep)
The next step in the conversation.
- Parameters:
nextStep- The next step in the conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextStep
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.Builderavoiding the need to create one manually viaDialogState.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tonextStep(DialogState).- Parameters:
nextStep- a consumer that will call methods onDialogState.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
nextStep(DialogState)
-
response
ConditionalBranch.Builder response(ResponseSpecification response)
Sets the value of the Response property for this object.- Parameters:
response- The new value for the Response property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
response
default ConditionalBranch.Builder response(Consumer<ResponseSpecification.Builder> response)
Sets the value of the Response property for this object. This is a convenience method that creates an instance of theResponseSpecification.Builderavoiding the need to create one manually viaResponseSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresponse(ResponseSpecification).- Parameters:
response- a consumer that will call methods onResponseSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
response(ResponseSpecification)
-
-