Class CfnCampaign.WriteTreatmentResourceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pinpoint.CfnCampaign.WriteTreatmentResourceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnCampaign.WriteTreatmentResourceProperty>
- Enclosing interface:
CfnCampaign.WriteTreatmentResourceProperty
@Stability(Stable)
public static final class CfnCampaign.WriteTreatmentResourceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnCampaign.WriteTreatmentResourceProperty>
A builder for
CfnCampaign.WriteTreatmentResourceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customDeliveryConfiguration
(IResolvable customDeliveryConfiguration) customDeliveryConfiguration
(CfnCampaign.CustomDeliveryConfigurationProperty customDeliveryConfiguration) messageConfiguration
(IResolvable messageConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
messageConfiguration
(CfnCampaign.MessageConfigurationProperty messageConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
schedule
(IResolvable schedule) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSchedule()
schedule
(CfnCampaign.ScheduleProperty schedule) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSchedule()
sizePercent
(Number sizePercent) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSizePercent()
templateConfiguration
(IResolvable templateConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
templateConfiguration
(CfnCampaign.TemplateConfigurationProperty templateConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
treatmentDescription
(String treatmentDescription) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTreatmentDescription()
treatmentName
(String treatmentName) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTreatmentName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(IResolvable customDeliveryConfiguration) - Parameters:
customDeliveryConfiguration
- The delivery configuration settings for sending the treatment through a custom channel. This object is required if theMessageConfiguration
object for the treatment specifies aCustomMessage
object.- Returns:
this
-
customDeliveryConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(CfnCampaign.CustomDeliveryConfigurationProperty customDeliveryConfiguration) - Parameters:
customDeliveryConfiguration
- The delivery configuration settings for sending the treatment through a custom channel. This object is required if theMessageConfiguration
object for the treatment specifies aCustomMessage
object.- Returns:
this
-
messageConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder messageConfiguration(IResolvable messageConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
- Parameters:
messageConfiguration
- The message configuration settings for the treatment.- Returns:
this
-
messageConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder messageConfiguration(CfnCampaign.MessageConfigurationProperty messageConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
- Parameters:
messageConfiguration
- The message configuration settings for the treatment.- Returns:
this
-
schedule
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder schedule(IResolvable schedule) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSchedule()
- Parameters:
schedule
- The schedule settings for the treatment.- Returns:
this
-
schedule
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder schedule(CfnCampaign.ScheduleProperty schedule) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSchedule()
- Parameters:
schedule
- The schedule settings for the treatment.- Returns:
this
-
sizePercent
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder sizePercent(Number sizePercent) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getSizePercent()
- Parameters:
sizePercent
- The allocated percentage of users (segment members) to send the treatment to.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder templateConfiguration(IResolvable templateConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
- Parameters:
templateConfiguration
- The message template to use for the treatment.- Returns:
this
-
templateConfiguration
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder templateConfiguration(CfnCampaign.TemplateConfigurationProperty templateConfiguration) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
- Parameters:
templateConfiguration
- The message template to use for the treatment.- Returns:
this
-
treatmentDescription
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder treatmentDescription(String treatmentDescription) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTreatmentDescription()
- Parameters:
treatmentDescription
- A custom description of the treatment.- Returns:
this
-
treatmentName
@Stability(Stable) public CfnCampaign.WriteTreatmentResourceProperty.Builder treatmentName(String treatmentName) Sets the value ofCfnCampaign.WriteTreatmentResourceProperty.getTreatmentName()
- Parameters:
treatmentName
- A custom name for the treatment.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnCampaign.WriteTreatmentResourceProperty>
- Returns:
- a new instance of
CfnCampaign.WriteTreatmentResourceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-