Interface Activity.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Activity.Builder,
,Activity> SdkBuilder<Activity.Builder,
,Activity> SdkPojo
- Enclosing class:
Activity
-
Method Summary
Modifier and TypeMethodDescriptiondefault Activity.Builder
conditionalSplit
(Consumer<ConditionalSplitActivity.Builder> conditionalSplit) The settings for a yes/no split activity.conditionalSplit
(ConditionalSplitActivity conditionalSplit) The settings for a yes/no split activity.default Activity.Builder
contactCenter
(Consumer<ContactCenterActivity.Builder> contactCenter) The settings for a connect activity.contactCenter
(ContactCenterActivity contactCenter) The settings for a connect activity.default Activity.Builder
custom
(Consumer<CustomMessageActivity.Builder> custom) The settings for a custom message activity.custom
(CustomMessageActivity custom) The settings for a custom message activity.description
(String description) The custom description of the activity.default Activity.Builder
The settings for an email activity.email
(EmailMessageActivity email) The settings for an email activity.default Activity.Builder
holdout
(Consumer<HoldoutActivity.Builder> holdout) The settings for a holdout activity.holdout
(HoldoutActivity holdout) The settings for a holdout activity.default Activity.Builder
multiCondition
(Consumer<MultiConditionalSplitActivity.Builder> multiCondition) The settings for a multivariate split activity.multiCondition
(MultiConditionalSplitActivity multiCondition) The settings for a multivariate split activity.default Activity.Builder
The settings for a push notification activity.push
(PushMessageActivity push) The settings for a push notification activity.default Activity.Builder
randomSplit
(Consumer<RandomSplitActivity.Builder> randomSplit) The settings for a random split activity.randomSplit
(RandomSplitActivity randomSplit) The settings for a random split activity.default Activity.Builder
The settings for an SMS activity.sms
(SMSMessageActivity sms) The settings for an SMS activity.default Activity.Builder
The settings for a wait activity.waitValue
(WaitActivity wait) The settings for a wait activity.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 Details
-
custom
The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.
- Parameters:
custom
- The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
custom
The settings for a custom message activity. This type of activity calls an AWS Lambda function or web hook that sends messages to participants.
This is a convenience method that creates an instance of theCustomMessageActivity.Builder
avoiding the need to create one manually viaCustomMessageActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocustom(CustomMessageActivity)
.- Parameters:
custom
- a consumer that will call methods onCustomMessageActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conditionalSplit
The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.
- Parameters:
conditionalSplit
- The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conditionalSplit
default Activity.Builder conditionalSplit(Consumer<ConditionalSplitActivity.Builder> conditionalSplit) The settings for a yes/no split activity. This type of activity sends participants down one of two paths in a journey, based on conditions that you specify.
This is a convenience method that creates an instance of theConditionalSplitActivity.Builder
avoiding the need to create one manually viaConditionalSplitActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconditionalSplit(ConditionalSplitActivity)
.- Parameters:
conditionalSplit
- a consumer that will call methods onConditionalSplitActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
The custom description of the activity.
- Parameters:
description
- The custom description of the activity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
The settings for an email activity. This type of activity sends an email message to participants.
- Parameters:
email
- The settings for an email activity. This type of activity sends an email message to participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
email
The settings for an email activity. This type of activity sends an email message to participants.
This is a convenience method that creates an instance of theEmailMessageActivity.Builder
avoiding the need to create one manually viaEmailMessageActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toemail(EmailMessageActivity)
.- Parameters:
email
- a consumer that will call methods onEmailMessageActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
holdout
The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.
- Parameters:
holdout
- The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
holdout
The settings for a holdout activity. This type of activity stops a journey for a specified percentage of participants.
This is a convenience method that creates an instance of theHoldoutActivity.Builder
avoiding the need to create one manually viaHoldoutActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toholdout(HoldoutActivity)
.- Parameters:
holdout
- a consumer that will call methods onHoldoutActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
multiCondition
The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) in a journey, based on conditions that you specify.
- Parameters:
multiCondition
- The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) in a journey, based on conditions that you specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiCondition
default Activity.Builder multiCondition(Consumer<MultiConditionalSplitActivity.Builder> multiCondition) The settings for a multivariate split activity. This type of activity sends participants down one of as many as five paths (including a default Else path) in a journey, based on conditions that you specify.
This is a convenience method that creates an instance of theMultiConditionalSplitActivity.Builder
avoiding the need to create one manually viaMultiConditionalSplitActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomultiCondition(MultiConditionalSplitActivity)
.- Parameters:
multiCondition
- a consumer that will call methods onMultiConditionalSplitActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
push
The settings for a push notification activity. This type of activity sends a push notification to participants.
- Parameters:
push
- The settings for a push notification activity. This type of activity sends a push notification to participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
push
The settings for a push notification activity. This type of activity sends a push notification to participants.
This is a convenience method that creates an instance of thePushMessageActivity.Builder
avoiding the need to create one manually viaPushMessageActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topush(PushMessageActivity)
.- Parameters:
push
- a consumer that will call methods onPushMessageActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
randomSplit
The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.
- Parameters:
randomSplit
- The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
randomSplit
The settings for a random split activity. This type of activity randomly sends specified percentages of participants down one of as many as five paths in a journey, based on conditions that you specify.
This is a convenience method that creates an instance of theRandomSplitActivity.Builder
avoiding the need to create one manually viaRandomSplitActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torandomSplit(RandomSplitActivity)
.- Parameters:
randomSplit
- a consumer that will call methods onRandomSplitActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sms
The settings for an SMS activity. This type of activity sends a text message to participants.
- Parameters:
sms
- The settings for an SMS activity. This type of activity sends a text message to participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sms
The settings for an SMS activity. This type of activity sends a text message to participants.
This is a convenience method that creates an instance of theSMSMessageActivity.Builder
avoiding the need to create one manually viaSMSMessageActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosms(SMSMessageActivity)
.- Parameters:
sms
- a consumer that will call methods onSMSMessageActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
waitValue
The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.
- Parameters:
wait
- The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
waitValue
The settings for a wait activity. This type of activity waits for a certain amount of time or until a specific date and time before moving participants to the next activity in a journey.
This is a convenience method that creates an instance of theWaitActivity.Builder
avoiding the need to create one manually viaWaitActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed towaitValue(WaitActivity)
.- Parameters:
wait
- a consumer that will call methods onWaitActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
contactCenter
The settings for a connect activity. This type of activity initiates a contact center call to participants.
- Parameters:
contactCenter
- The settings for a connect activity. This type of activity initiates a contact center call to participants.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contactCenter
The settings for a connect activity. This type of activity initiates a contact center call to participants.
This is a convenience method that creates an instance of theContactCenterActivity.Builder
avoiding the need to create one manually viaContactCenterActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tocontactCenter(ContactCenterActivity)
.- Parameters:
contactCenter
- a consumer that will call methods onContactCenterActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-