Interface InAppMessageCampaign.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<InAppMessageCampaign.Builder,
,InAppMessageCampaign> SdkBuilder<InAppMessageCampaign.Builder,
,InAppMessageCampaign> SdkPojo
- Enclosing class:
InAppMessageCampaign
-
Method Summary
Modifier and TypeMethodDescriptioncampaignId
(String campaignId) Campaign id of the corresponding campaign.Daily cap which controls the number of times any in-app messages can be shown to the endpoint during a day.default InAppMessageCampaign.Builder
inAppMessage
(Consumer<InAppMessage.Builder> inAppMessage) In-app message content with all fields required for rendering an in-app message.inAppMessage
(InAppMessage inAppMessage) In-app message content with all fields required for rendering an in-app message.Priority of the in-app message.default InAppMessageCampaign.Builder
schedule
(Consumer<InAppCampaignSchedule.Builder> schedule) Schedule of the campaign.schedule
(InAppCampaignSchedule schedule) Schedule of the campaign.sessionCap
(Integer sessionCap) Session cap which controls the number of times an in-app message can be shown to the endpoint during an application session.Total cap which controls the number of times an in-app message can be shown to the endpoint.treatmentId
(String treatmentId) Treatment id of the campaign.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
-
campaignId
Campaign id of the corresponding campaign.
- Parameters:
campaignId
- Campaign id of the corresponding campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dailyCap
Daily cap which controls the number of times any in-app messages can be shown to the endpoint during a day.
- Parameters:
dailyCap
- Daily cap which controls the number of times any in-app messages can be shown to the endpoint during a day.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inAppMessage
In-app message content with all fields required for rendering an in-app message.
- Parameters:
inAppMessage
- In-app message content with all fields required for rendering an in-app message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inAppMessage
In-app message content with all fields required for rendering an in-app message.
This is a convenience method that creates an instance of theInAppMessage.Builder
avoiding the need to create one manually viaInAppMessage.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinAppMessage(InAppMessage)
.- Parameters:
inAppMessage
- a consumer that will call methods onInAppMessage.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
priority
Priority of the in-app message.
- Parameters:
priority
- Priority of the in-app message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Schedule of the campaign.
- Parameters:
schedule
- Schedule of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedule
Schedule of the campaign.
This is a convenience method that creates an instance of theInAppCampaignSchedule.Builder
avoiding the need to create one manually viaInAppCampaignSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toschedule(InAppCampaignSchedule)
.- Parameters:
schedule
- a consumer that will call methods onInAppCampaignSchedule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sessionCap
Session cap which controls the number of times an in-app message can be shown to the endpoint during an application session.
- Parameters:
sessionCap
- Session cap which controls the number of times an in-app message can be shown to the endpoint during an application session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
totalCap
Total cap which controls the number of times an in-app message can be shown to the endpoint.
- Parameters:
totalCap
- Total cap which controls the number of times an in-app message can be shown to the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
treatmentId
Treatment id of the campaign.
- Parameters:
treatmentId
- Treatment id of the campaign.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-