@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConditionalBranch extends Object implements Serializable, Cloneable, StructuredPojo
A set of actions that Amazon Lex should run if the condition is matched.
Constructor and Description |
---|
ConditionalBranch() |
Modifier and Type | Method and Description |
---|---|
ConditionalBranch |
clone() |
boolean |
equals(Object obj) |
Condition |
getCondition()
Contains the expression to evaluate.
|
String |
getName()
The name of the branch.
|
DialogState |
getNextStep()
The next step in the conversation.
|
ResponseSpecification |
getResponse() |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(Condition condition)
Contains the expression to evaluate.
|
void |
setName(String name)
The name of the branch.
|
void |
setNextStep(DialogState nextStep)
The next step in the conversation.
|
void |
setResponse(ResponseSpecification response) |
String |
toString()
Returns a string representation of this object.
|
ConditionalBranch |
withCondition(Condition condition)
Contains the expression to evaluate.
|
ConditionalBranch |
withName(String name)
The name of the branch.
|
ConditionalBranch |
withNextStep(DialogState nextStep)
The next step in the conversation.
|
ConditionalBranch |
withResponse(ResponseSpecification response) |
public void setName(String name)
The name of the branch.
name
- The name of the branch.public String getName()
The name of the branch.
public ConditionalBranch withName(String name)
The name of the branch.
name
- The name of the branch.public void setCondition(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.public Condition getCondition()
Contains the expression to evaluate. If the condition is true, the branch's actions are taken.
public ConditionalBranch withCondition(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.public void setNextStep(DialogState nextStep)
The next step in the conversation.
nextStep
- The next step in the conversation.public DialogState getNextStep()
The next step in the conversation.
public ConditionalBranch withNextStep(DialogState nextStep)
The next step in the conversation.
nextStep
- The next step in the conversation.public void setResponse(ResponseSpecification response)
response
- public ResponseSpecification getResponse()
public ConditionalBranch withResponse(ResponseSpecification response)
response
- public String toString()
toString
in class Object
Object.toString()
public ConditionalBranch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.