Class CfnCampaignPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin>
- Enclosing class:
CfnCampaignPropsMixin
CfnCampaignPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionadditionalTreatments(List<? extends Object> additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.additionalTreatments(IResolvable additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.applicationId(String applicationId) The unique identifier for the Amazon Pinpoint application that the campaign is associated with.build()campaignHook(CfnCampaignPropsMixin.CampaignHookProperty campaignHook) Specifies the Lambda function to use as a code hook for a campaign.campaignHook(IResolvable campaignHook) Specifies the Lambda function to use as a code hook for a campaign.create()create(CfnPropertyMixinOptions options) customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.customDeliveryConfiguration(IResolvable customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.description(String description) A custom description of the campaign.holdoutPercent(Number holdoutPercent) The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.Specifies whether to pause the campaign.isPaused(IResolvable isPaused) Specifies whether to pause the campaign.The messaging limits for the campaign.limits(IResolvable limits) The messaging limits for the campaign.messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) The message configuration settings for the treatment.messageConfiguration(IResolvable messageConfiguration) The message configuration settings for the treatment.The name of the campaign.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.The schedule settings for the treatment.schedule(IResolvable schedule) The schedule settings for the treatment.The unique identifier for the segment to associate with the campaign.segmentVersion(Number segmentVersion) The version of the segment to associate with the campaign.An array of key-value pairs to apply to this resource.templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) The message template to use for the treatment.templateConfiguration(IResolvable templateConfiguration) The message template to use for the treatment.treatmentDescription(String treatmentDescription) A custom description of the treatment.treatmentName(String treatmentName) A custom name for the treatment.
-
Method Details
-
create
@Stability(Stable) public static CfnCampaignPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnCampaignPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnCampaignPropsMixin.Builder.
-
additionalTreatments
@Stability(Stable) public CfnCampaignPropsMixin.Builder additionalTreatments(IResolvable additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Parameters:
additionalTreatments- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign. This parameter is required.- Returns:
this- See Also:
-
additionalTreatments
@Stability(Stable) public CfnCampaignPropsMixin.Builder additionalTreatments(List<? extends Object> additionalTreatments) An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.- Parameters:
additionalTreatments- An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign. This parameter is required.- Returns:
this- See Also:
-
applicationId
The unique identifier for the Amazon Pinpoint application that the campaign is associated with.- Parameters:
applicationId- The unique identifier for the Amazon Pinpoint application that the campaign is associated with. This parameter is required.- Returns:
this- See Also:
-
campaignHook
Specifies the Lambda function to use as a code hook for a campaign.- Parameters:
campaignHook- Specifies the Lambda function to use as a code hook for a campaign. This parameter is required.- Returns:
this- See Also:
-
campaignHook
@Stability(Stable) public CfnCampaignPropsMixin.Builder campaignHook(CfnCampaignPropsMixin.CampaignHookProperty campaignHook) Specifies the Lambda function to use as a code hook for a campaign.- Parameters:
campaignHook- Specifies the Lambda function to use as a code hook for a campaign. This parameter is required.- Returns:
this- See Also:
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder customDeliveryConfiguration(IResolvable customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.This object is required if the
MessageConfigurationobject for the treatment specifies aCustomMessageobject.- Parameters:
customDeliveryConfiguration- The delivery configuration settings for sending the treatment through a custom channel. This parameter is required.- Returns:
this- See Also:
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) The delivery configuration settings for sending the treatment through a custom channel.This object is required if the
MessageConfigurationobject for the treatment specifies aCustomMessageobject.- Parameters:
customDeliveryConfiguration- The delivery configuration settings for sending the treatment through a custom channel. This parameter is required.- Returns:
this- See Also:
-
description
A custom description of the campaign.- Parameters:
description- A custom description of the campaign. This parameter is required.- Returns:
this- See Also:
-
holdoutPercent
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.- Parameters:
holdoutPercent- The allocated percentage of users (segment members) who shouldn't receive messages from the campaign. This parameter is required.- Returns:
this- See Also:
-
isPaused
Specifies whether to pause the campaign.A paused campaign doesn't run unless you resume it by changing this value to
false. 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.- Parameters:
isPaused- Specifies whether to pause the campaign. This parameter is required.- Returns:
this- See Also:
-
isPaused
Specifies whether to pause the campaign.A paused campaign doesn't run unless you resume it by changing this value to
false. 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.- Parameters:
isPaused- Specifies whether to pause the campaign. This parameter is required.- Returns:
this- See Also:
-
limits
The messaging limits for the campaign.- Parameters:
limits- The messaging limits for the campaign. This parameter is required.- Returns:
this- See Also:
-
limits
@Stability(Stable) public CfnCampaignPropsMixin.Builder limits(CfnCampaignPropsMixin.LimitsProperty limits) The messaging limits for the campaign.- Parameters:
limits- The messaging limits for the campaign. This parameter is required.- Returns:
this- See Also:
-
messageConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder messageConfiguration(IResolvable messageConfiguration) The message configuration settings for the treatment.- Parameters:
messageConfiguration- The message configuration settings for the treatment. This parameter is required.- Returns:
this- See Also:
-
messageConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) The message configuration settings for the treatment.- Parameters:
messageConfiguration- The message configuration settings for the treatment. This parameter is required.- Returns:
this- See Also:
-
name
The name of the campaign.- Parameters:
name- The name of the campaign. This parameter is required.- Returns:
this- See Also:
-
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.
- 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. This parameter is required.- Returns:
this- See Also:
-
schedule
The schedule settings for the treatment.- Parameters:
schedule- The schedule settings for the treatment. This parameter is required.- Returns:
this- See Also:
-
schedule
@Stability(Stable) public CfnCampaignPropsMixin.Builder schedule(CfnCampaignPropsMixin.ScheduleProperty schedule) The schedule settings for the treatment.- Parameters:
schedule- The schedule settings for the treatment. This parameter is required.- Returns:
this- See Also:
-
segmentId
The unique identifier for the segment to associate with the campaign.- Parameters:
segmentId- The unique identifier for the segment to associate with the campaign. This parameter is required.- Returns:
this- See Also:
-
segmentVersion
The version of the segment to associate with the campaign.- Parameters:
segmentVersion- The version of the segment to associate with the campaign. This parameter is required.- Returns:
this- See Also:
-
tags
An array of key-value pairs to apply to this resource.For more information, see Tag .
- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
templateConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder templateConfiguration(IResolvable templateConfiguration) The message template to use for the treatment.- Parameters:
templateConfiguration- The message template to use for the treatment. This parameter is required.- Returns:
this- See Also:
-
templateConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.Builder templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) The message template to use for the treatment.- Parameters:
templateConfiguration- The message template to use for the treatment. This parameter is required.- Returns:
this- See Also:
-
treatmentDescription
@Stability(Stable) public CfnCampaignPropsMixin.Builder treatmentDescription(String treatmentDescription) A custom description of the treatment.- Parameters:
treatmentDescription- A custom description of the treatment. This parameter is required.- Returns:
this- See Also:
-
treatmentName
A custom name for the treatment.- Parameters:
treatmentName- A custom name for the treatment. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin>- Returns:
- a newly built instance of
CfnCampaignPropsMixin.
-