Class ConditionalBranch
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.ConditionalBranch
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>
@Generated("software.amazon.awssdk:codegen") public final class ConditionalBranch extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>
A set of actions that Amazon Lex should run if the condition is matched.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceConditionalBranch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ConditionalBranch.Builderbuilder()Conditioncondition()Contains the expression to evaluate.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the branch.DialogStatenextStep()The next step in the conversation.ResponseSpecificationresponse()Returns the value of the Response property for this object.List<SdkField<?>>sdkFields()static Class<? extends ConditionalBranch.Builder>serializableBuilderClass()ConditionalBranch.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
The name of the branch.
- Returns:
- The name of the branch.
-
condition
public final Condition condition()
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
- Returns:
- Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
-
nextStep
public final DialogState nextStep()
The next step in the conversation.
- Returns:
- The next step in the conversation.
-
response
public final ResponseSpecification response()
Returns the value of the Response property for this object.- Returns:
- The value of the Response property for this object.
-
toBuilder
public ConditionalBranch.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConditionalBranch.Builder,ConditionalBranch>
-
builder
public static ConditionalBranch.Builder builder()
-
serializableBuilderClass
public static Class<? extends ConditionalBranch.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-