Class CfnCampaignMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnCampaignMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignMixinProps>
- Enclosing interface:
CfnCampaignMixinProps
@Stability(Stable)
public static final class CfnCampaignMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignMixinProps>
A builder for
CfnCampaignMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalTreatments(List<? extends Object> additionalTreatments) Sets the value ofCfnCampaignMixinProps.getAdditionalTreatments()additionalTreatments(IResolvable additionalTreatments) Sets the value ofCfnCampaignMixinProps.getAdditionalTreatments()applicationId(String applicationId) Sets the value ofCfnCampaignMixinProps.getApplicationId()build()Builds the configured instance.campaignHook(CfnCampaignPropsMixin.CampaignHookProperty campaignHook) Sets the value ofCfnCampaignMixinProps.getCampaignHook()campaignHook(IResolvable campaignHook) Sets the value ofCfnCampaignMixinProps.getCampaignHook()customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) Sets the value ofCfnCampaignMixinProps.getCustomDeliveryConfiguration()customDeliveryConfiguration(IResolvable customDeliveryConfiguration) Sets the value ofCfnCampaignMixinProps.getCustomDeliveryConfiguration()description(String description) Sets the value ofCfnCampaignMixinProps.getDescription()holdoutPercent(Number holdoutPercent) Sets the value ofCfnCampaignMixinProps.getHoldoutPercent()Sets the value ofCfnCampaignMixinProps.getIsPaused()isPaused(IResolvable isPaused) Sets the value ofCfnCampaignMixinProps.getIsPaused()Sets the value ofCfnCampaignMixinProps.getLimits()limits(IResolvable limits) Sets the value ofCfnCampaignMixinProps.getLimits()messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) Sets the value ofCfnCampaignMixinProps.getMessageConfiguration()messageConfiguration(IResolvable messageConfiguration) Sets the value ofCfnCampaignMixinProps.getMessageConfiguration()Sets the value ofCfnCampaignMixinProps.getName()Sets the value ofCfnCampaignMixinProps.getPriority()Sets the value ofCfnCampaignMixinProps.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnCampaignMixinProps.getSchedule()Sets the value ofCfnCampaignMixinProps.getSegmentId()segmentVersion(Number segmentVersion) Sets the value ofCfnCampaignMixinProps.getSegmentVersion()Sets the value ofCfnCampaignMixinProps.getTags()templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) Sets the value ofCfnCampaignMixinProps.getTemplateConfiguration()templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnCampaignMixinProps.getTemplateConfiguration()treatmentDescription(String treatmentDescription) Sets the value ofCfnCampaignMixinProps.getTreatmentDescription()treatmentName(String treatmentName) Sets the value ofCfnCampaignMixinProps.getTreatmentName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalTreatments
@Stability(Stable) public CfnCampaignMixinProps.Builder additionalTreatments(IResolvable additionalTreatments) Sets the value ofCfnCampaignMixinProps.getAdditionalTreatments()- Parameters:
additionalTreatments- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Returns:
this
-
additionalTreatments
@Stability(Stable) public CfnCampaignMixinProps.Builder additionalTreatments(List<? extends Object> additionalTreatments) Sets the value ofCfnCampaignMixinProps.getAdditionalTreatments()- Parameters:
additionalTreatments- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Returns:
this
-
applicationId
Sets the value ofCfnCampaignMixinProps.getApplicationId()- Parameters:
applicationId- The unique identifier for the Amazon Pinpoint application that the campaign is associated with.- Returns:
this
-
campaignHook
Sets the value ofCfnCampaignMixinProps.getCampaignHook()- Parameters:
campaignHook- Specifies the Lambda function to use as a code hook for a campaign.- Returns:
this
-
campaignHook
@Stability(Stable) public CfnCampaignMixinProps.Builder campaignHook(CfnCampaignPropsMixin.CampaignHookProperty campaignHook) Sets the value ofCfnCampaignMixinProps.getCampaignHook()- Parameters:
campaignHook- Specifies the Lambda function to use as a code hook for a campaign.- Returns:
this
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder customDeliveryConfiguration(IResolvable customDeliveryConfiguration) Sets the value ofCfnCampaignMixinProps.getCustomDeliveryConfiguration()- Parameters:
customDeliveryConfiguration- The delivery configuration settings for sending the treatment through a custom channel. This object is required if theMessageConfigurationobject for the treatment specifies aCustomMessageobject.- Returns:
this
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) Sets the value ofCfnCampaignMixinProps.getCustomDeliveryConfiguration()- Parameters:
customDeliveryConfiguration- The delivery configuration settings for sending the treatment through a custom channel. This object is required if theMessageConfigurationobject for the treatment specifies aCustomMessageobject.- Returns:
this
-
description
Sets the value ofCfnCampaignMixinProps.getDescription()- Parameters:
description- A custom description of the campaign.- Returns:
this
-
holdoutPercent
Sets the value ofCfnCampaignMixinProps.getHoldoutPercent()- Parameters:
holdoutPercent- The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.- Returns:
this
-
isPaused
Sets the value ofCfnCampaignMixinProps.getIsPaused()- Parameters:
isPaused- Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value tofalse. If you restart a campaign, the campaign restarts from the beginning and not at the point you paused it. If a campaign is running it will complete and then pause. Pause only pauses or skips the next run for a recurring future scheduled campaign. A campaign scheduled for immediate can't be paused.- Returns:
this
-
isPaused
Sets the value ofCfnCampaignMixinProps.getIsPaused()- Parameters:
isPaused- Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by changing this value tofalse. If you restart a campaign, the campaign restarts from the beginning and not at the point you paused it. If a campaign is running it will complete and then pause. Pause only pauses or skips the next run for a recurring future scheduled campaign. A campaign scheduled for immediate can't be paused.- Returns:
this
-
limits
Sets the value ofCfnCampaignMixinProps.getLimits()- Parameters:
limits- The messaging limits for the campaign.- Returns:
this
-
limits
@Stability(Stable) public CfnCampaignMixinProps.Builder limits(CfnCampaignPropsMixin.LimitsProperty limits) Sets the value ofCfnCampaignMixinProps.getLimits()- Parameters:
limits- The messaging limits for the campaign.- Returns:
this
-
messageConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder messageConfiguration(IResolvable messageConfiguration) Sets the value ofCfnCampaignMixinProps.getMessageConfiguration()- Parameters:
messageConfiguration- The message configuration settings for the treatment.- Returns:
this
-
messageConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) Sets the value ofCfnCampaignMixinProps.getMessageConfiguration()- Parameters:
messageConfiguration- The message configuration settings for the treatment.- Returns:
this
-
name
Sets the value ofCfnCampaignMixinProps.getName()- Parameters:
name- The name of the campaign.- Returns:
this
-
priority
Sets the value ofCfnCampaignMixinProps.getPriority()- Parameters:
priority- An integer between 1 and 5, inclusive, that represents the priority of the in-app message campaign, where 1 is the highest priority and 5 is the lowest. If there are multiple messages scheduled to be displayed at the same time, the priority determines the order in which those messages are displayed.- Returns:
this
-
schedule
Sets the value ofCfnCampaignMixinProps.getSchedule()- Parameters:
schedule- The schedule settings for the treatment.- Returns:
this
-
schedule
@Stability(Stable) public CfnCampaignMixinProps.Builder schedule(CfnCampaignPropsMixin.ScheduleProperty schedule) Sets the value ofCfnCampaignMixinProps.getSchedule()- Parameters:
schedule- The schedule settings for the treatment.- Returns:
this
-
segmentId
Sets the value ofCfnCampaignMixinProps.getSegmentId()- Parameters:
segmentId- The unique identifier for the segment to associate with the campaign.- Returns:
this
-
segmentVersion
Sets the value ofCfnCampaignMixinProps.getSegmentVersion()- Parameters:
segmentVersion- The version of the segment to associate with the campaign.- Returns:
this
-
tags
Sets the value ofCfnCampaignMixinProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnCampaignMixinProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The message template to use for the treatment.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaignMixinProps.Builder templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) Sets the value ofCfnCampaignMixinProps.getTemplateConfiguration()- Parameters:
templateConfiguration- The message template to use for the treatment.- Returns:
this
-
treatmentDescription
@Stability(Stable) public CfnCampaignMixinProps.Builder treatmentDescription(String treatmentDescription) Sets the value ofCfnCampaignMixinProps.getTreatmentDescription()- Parameters:
treatmentDescription- A custom description of the treatment.- Returns:
this
-
treatmentName
Sets the value ofCfnCampaignMixinProps.getTreatmentName()- Parameters:
treatmentName- A custom name for the treatment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignMixinProps>- Returns:
- a new instance of
CfnCampaignMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-