@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteTreatmentResource extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the settings for a campaign treatment. A treatment is a variation of a campaign that's used for A/B testing of a campaign.
Constructor and Description |
---|
WriteTreatmentResource() |
Modifier and Type | Method and Description |
---|---|
WriteTreatmentResource |
clone() |
boolean |
equals(Object obj) |
CustomDeliveryConfiguration |
getCustomDeliveryConfiguration()
The delivery configuration settings for sending the treatment through a custom channel.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings for the treatment.
|
Schedule |
getSchedule()
The schedule settings for the treatment.
|
Integer |
getSizePercent()
The allocated percentage of users (segment members) to send the treatment to.
|
TemplateConfiguration |
getTemplateConfiguration()
The message template to use for the treatment.
|
String |
getTreatmentDescription()
A custom description of the treatment.
|
String |
getTreatmentName()
A custom name for the treatment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
void |
setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
|
void |
setSchedule(Schedule schedule)
The schedule settings for the treatment.
|
void |
setSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) to send the treatment to.
|
void |
setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
|
void |
setTreatmentDescription(String treatmentDescription)
A custom description of the treatment.
|
void |
setTreatmentName(String treatmentName)
A custom name for the treatment.
|
String |
toString()
Returns a string representation of this object.
|
WriteTreatmentResource |
withCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
WriteTreatmentResource |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
|
WriteTreatmentResource |
withSchedule(Schedule schedule)
The schedule settings for the treatment.
|
WriteTreatmentResource |
withSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) to send the treatment to.
|
WriteTreatmentResource |
withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
|
WriteTreatmentResource |
withTreatmentDescription(String treatmentDescription)
A custom description of the treatment.
|
WriteTreatmentResource |
withTreatmentName(String treatmentName)
A custom name for the treatment.
|
public void setCustomDeliveryConfiguration(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.
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.public CustomDeliveryConfiguration getCustomDeliveryConfiguration()
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.
public WriteTreatmentResource withCustomDeliveryConfiguration(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.
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.public void setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
messageConfiguration
- The message configuration settings for the treatment.public MessageConfiguration getMessageConfiguration()
The message configuration settings for the treatment.
public WriteTreatmentResource withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
messageConfiguration
- The message configuration settings for the treatment.public void setSchedule(Schedule schedule)
The schedule settings for the treatment.
schedule
- The schedule settings for the treatment.public Schedule getSchedule()
The schedule settings for the treatment.
public WriteTreatmentResource withSchedule(Schedule schedule)
The schedule settings for the treatment.
schedule
- The schedule settings for the treatment.public void setSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) to send the treatment to.
sizePercent
- The allocated percentage of users (segment members) to send the treatment to.public Integer getSizePercent()
The allocated percentage of users (segment members) to send the treatment to.
public WriteTreatmentResource withSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) to send the treatment to.
sizePercent
- The allocated percentage of users (segment members) to send the treatment to.public void setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
templateConfiguration
- The message template to use for the treatment.public TemplateConfiguration getTemplateConfiguration()
The message template to use for the treatment.
public WriteTreatmentResource withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
templateConfiguration
- The message template to use for the treatment.public void setTreatmentDescription(String treatmentDescription)
A custom description of the treatment.
treatmentDescription
- A custom description of the treatment.public String getTreatmentDescription()
A custom description of the treatment.
public WriteTreatmentResource withTreatmentDescription(String treatmentDescription)
A custom description of the treatment.
treatmentDescription
- A custom description of the treatment.public void setTreatmentName(String treatmentName)
A custom name for the treatment.
treatmentName
- A custom name for the treatment.public String getTreatmentName()
A custom name for the treatment.
public WriteTreatmentResource withTreatmentName(String treatmentName)
A custom name for the treatment.
treatmentName
- A custom name for the treatment.public String toString()
toString
in class Object
Object.toString()
public WriteTreatmentResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.