@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConditionalSplitActivity extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the settings for a yes/no split activity in a journey. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.
To create yes/no split activities that send participants down different paths based on push notification events (such as Open or Received events), your mobile app has to specify the User ID and Endpoint ID values. For more information, see Integrating Amazon Pinpoint with your application in the Amazon Pinpoint Developer Guide.
Constructor and Description |
---|
ConditionalSplitActivity() |
Modifier and Type | Method and Description |
---|---|
ConditionalSplitActivity |
clone() |
boolean |
equals(Object obj) |
Condition |
getCondition()
The conditions that define the paths for the activity, and the relationship between the conditions.
|
WaitTime |
getEvaluationWaitTime()
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon
Pinpoint determines whether the conditions are met.
|
String |
getFalseActivity()
The unique identifier for the activity to perform if the conditions aren't met.
|
String |
getTrueActivity()
The unique identifier for the activity to perform if the conditions are met.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCondition(Condition condition)
The conditions that define the paths for the activity, and the relationship between the conditions.
|
void |
setEvaluationWaitTime(WaitTime evaluationWaitTime)
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon
Pinpoint determines whether the conditions are met.
|
void |
setFalseActivity(String falseActivity)
The unique identifier for the activity to perform if the conditions aren't met.
|
void |
setTrueActivity(String trueActivity)
The unique identifier for the activity to perform if the conditions are met.
|
String |
toString()
Returns a string representation of this object.
|
ConditionalSplitActivity |
withCondition(Condition condition)
The conditions that define the paths for the activity, and the relationship between the conditions.
|
ConditionalSplitActivity |
withEvaluationWaitTime(WaitTime evaluationWaitTime)
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon
Pinpoint determines whether the conditions are met.
|
ConditionalSplitActivity |
withFalseActivity(String falseActivity)
The unique identifier for the activity to perform if the conditions aren't met.
|
ConditionalSplitActivity |
withTrueActivity(String trueActivity)
The unique identifier for the activity to perform if the conditions are met.
|
public void setCondition(Condition condition)
The conditions that define the paths for the activity, and the relationship between the conditions.
condition
- The conditions that define the paths for the activity, and the relationship between the conditions.public Condition getCondition()
The conditions that define the paths for the activity, and the relationship between the conditions.
public ConditionalSplitActivity withCondition(Condition condition)
The conditions that define the paths for the activity, and the relationship between the conditions.
condition
- The conditions that define the paths for the activity, and the relationship between the conditions.public void setEvaluationWaitTime(WaitTime evaluationWaitTime)
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.
evaluationWaitTime
- The amount of time to wait before determining whether the conditions are met, or the date and time when
Amazon Pinpoint determines whether the conditions are met.public WaitTime getEvaluationWaitTime()
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.
public ConditionalSplitActivity withEvaluationWaitTime(WaitTime evaluationWaitTime)
The amount of time to wait before determining whether the conditions are met, or the date and time when Amazon Pinpoint determines whether the conditions are met.
evaluationWaitTime
- The amount of time to wait before determining whether the conditions are met, or the date and time when
Amazon Pinpoint determines whether the conditions are met.public void setFalseActivity(String falseActivity)
The unique identifier for the activity to perform if the conditions aren't met.
falseActivity
- The unique identifier for the activity to perform if the conditions aren't met.public String getFalseActivity()
The unique identifier for the activity to perform if the conditions aren't met.
public ConditionalSplitActivity withFalseActivity(String falseActivity)
The unique identifier for the activity to perform if the conditions aren't met.
falseActivity
- The unique identifier for the activity to perform if the conditions aren't met.public void setTrueActivity(String trueActivity)
The unique identifier for the activity to perform if the conditions are met.
trueActivity
- The unique identifier for the activity to perform if the conditions are met.public String getTrueActivity()
The unique identifier for the activity to perform if the conditions are met.
public ConditionalSplitActivity withTrueActivity(String trueActivity)
The unique identifier for the activity to perform if the conditions are met.
trueActivity
- The unique identifier for the activity to perform if the conditions are met.public String toString()
toString
in class Object
Object.toString()
public ConditionalSplitActivity clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.