Class CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.pinpoint.CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaignPropsMixin.WriteTreatmentResourceProperty>
- Enclosing interface:
CfnCampaignPropsMixin.WriteTreatmentResourceProperty
@Stability(Stable)
public static final class CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaignPropsMixin.WriteTreatmentResourceProperty>
A builder for
CfnCampaignPropsMixin.WriteTreatmentResourceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) customDeliveryConfiguration(IResolvable customDeliveryConfiguration) messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) messageConfiguration(IResolvable messageConfiguration) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSchedule()schedule(IResolvable schedule) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSchedule()sizePercent(Number sizePercent) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSizePercent()templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) templateConfiguration(IResolvable templateConfiguration) treatmentDescription(String treatmentDescription) treatmentName(String treatmentName) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getTreatmentName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(IResolvable customDeliveryConfiguration) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.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 CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(CfnCampaignPropsMixin.CustomDeliveryConfigurationProperty customDeliveryConfiguration) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.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
-
messageConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder messageConfiguration(IResolvable messageConfiguration) - Parameters:
messageConfiguration- The message configuration settings for the treatment.- Returns:
this
-
messageConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder messageConfiguration(CfnCampaignPropsMixin.MessageConfigurationProperty messageConfiguration) - Parameters:
messageConfiguration- The message configuration settings for the treatment.- Returns:
this
-
schedule
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder schedule(IResolvable schedule) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSchedule()- Parameters:
schedule- The schedule settings for the treatment.- Returns:
this
-
schedule
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder schedule(CfnCampaignPropsMixin.ScheduleProperty schedule) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSchedule()- Parameters:
schedule- The schedule settings for the treatment.- Returns:
this
-
sizePercent
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder sizePercent(Number sizePercent) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getSizePercent()- Parameters:
sizePercent- The allocated percentage of users (segment members) to send the treatment to.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder templateConfiguration(IResolvable templateConfiguration) - Parameters:
templateConfiguration- The message template to use for the treatment.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder templateConfiguration(CfnCampaignPropsMixin.TemplateConfigurationProperty templateConfiguration) - Parameters:
templateConfiguration- The message template to use for the treatment.- Returns:
this
-
treatmentDescription
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder treatmentDescription(String treatmentDescription) - Parameters:
treatmentDescription- A custom description of the treatment.- Returns:
this
-
treatmentName
@Stability(Stable) public CfnCampaignPropsMixin.WriteTreatmentResourceProperty.Builder treatmentName(String treatmentName) Sets the value ofCfnCampaignPropsMixin.WriteTreatmentResourceProperty.getTreatmentName()- Parameters:
treatmentName- A custom name for the treatment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnCampaignPropsMixin.WriteTreatmentResourceProperty>- Returns:
- a new instance of
CfnCampaignPropsMixin.WriteTreatmentResourceProperty - Throws:
NullPointerException- if any required attribute was not provided
-