public static final class CfnCampaign.WriteTreatmentResourceProperty.Builder
extends java.lang.Object
CfnCampaign.WriteTreatmentResourceProperty
Constructor and Description |
---|
Builder() |
public CfnCampaign.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(IResolvable customDeliveryConfiguration)
customDeliveryConfiguration
- The delivery configuration settings for sending the treatment through a custom channel.
This object is required if the MessageConfiguration
object for the treatment specifies a CustomMessage
object.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder customDeliveryConfiguration(CfnCampaign.CustomDeliveryConfigurationProperty customDeliveryConfiguration)
customDeliveryConfiguration
- The delivery configuration settings for sending the treatment through a custom channel.
This object is required if the MessageConfiguration
object for the treatment specifies a CustomMessage
object.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder messageConfiguration(IResolvable messageConfiguration)
CfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
messageConfiguration
- The message configuration settings for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder messageConfiguration(CfnCampaign.MessageConfigurationProperty messageConfiguration)
CfnCampaign.WriteTreatmentResourceProperty.getMessageConfiguration()
messageConfiguration
- The message configuration settings for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder schedule(IResolvable schedule)
CfnCampaign.WriteTreatmentResourceProperty.getSchedule()
schedule
- The schedule settings for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder schedule(CfnCampaign.ScheduleProperty schedule)
CfnCampaign.WriteTreatmentResourceProperty.getSchedule()
schedule
- The schedule settings for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder sizePercent(java.lang.Number sizePercent)
CfnCampaign.WriteTreatmentResourceProperty.getSizePercent()
sizePercent
- The allocated percentage of users (segment members) to send the treatment to.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder templateConfiguration(IResolvable templateConfiguration)
CfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
templateConfiguration
- The message template to use for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder templateConfiguration(CfnCampaign.TemplateConfigurationProperty templateConfiguration)
CfnCampaign.WriteTreatmentResourceProperty.getTemplateConfiguration()
templateConfiguration
- The message template to use for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder treatmentDescription(java.lang.String treatmentDescription)
CfnCampaign.WriteTreatmentResourceProperty.getTreatmentDescription()
treatmentDescription
- A custom description of the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty.Builder treatmentName(java.lang.String treatmentName)
CfnCampaign.WriteTreatmentResourceProperty.getTreatmentName()
treatmentName
- A custom name for the treatment.this
public CfnCampaign.WriteTreatmentResourceProperty build()
CfnCampaign.WriteTreatmentResourceProperty
java.lang.NullPointerException
- if any required attribute was not provided