@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TreatmentResource 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 |
---|
TreatmentResource() |
Modifier and Type | Method and Description |
---|---|
TreatmentResource |
clone() |
boolean |
equals(Object obj) |
CustomDeliveryConfiguration |
getCustomDeliveryConfiguration()
The delivery configuration settings for sending the treatment through a custom channel.
|
String |
getId()
The unique identifier for the treatment.
|
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) that the treatment is sent to.
|
CampaignState |
getState()
The current status of the treatment.
|
TemplateConfiguration |
getTemplateConfiguration()
The message template to use for the treatment.
|
String |
getTreatmentDescription()
The custom description of the treatment.
|
String |
getTreatmentName()
The custom name of the treatment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
void |
setId(String id)
The unique identifier for the treatment.
|
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) that the treatment is sent to.
|
void |
setState(CampaignState state)
The current status of the treatment.
|
void |
setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
|
void |
setTreatmentDescription(String treatmentDescription)
The custom description of the treatment.
|
void |
setTreatmentName(String treatmentName)
The custom name of the treatment.
|
String |
toString()
Returns a string representation of this object.
|
TreatmentResource |
withCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the treatment through a custom channel.
|
TreatmentResource |
withId(String id)
The unique identifier for the treatment.
|
TreatmentResource |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the treatment.
|
TreatmentResource |
withSchedule(Schedule schedule)
The schedule settings for the treatment.
|
TreatmentResource |
withSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) that the treatment is sent to.
|
TreatmentResource |
withState(CampaignState state)
The current status of the treatment.
|
TreatmentResource |
withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the treatment.
|
TreatmentResource |
withTreatmentDescription(String treatmentDescription)
The custom description of the treatment.
|
TreatmentResource |
withTreatmentName(String treatmentName)
The custom name of 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 TreatmentResource 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 setId(String id)
The unique identifier for the treatment.
id
- The unique identifier for the treatment.public String getId()
The unique identifier for the treatment.
public TreatmentResource withId(String id)
The unique identifier for the treatment.
id
- The unique identifier for the treatment.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 TreatmentResource 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 TreatmentResource 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) that the treatment is sent to.
sizePercent
- The allocated percentage of users (segment members) that the treatment is sent to.public Integer getSizePercent()
The allocated percentage of users (segment members) that the treatment is sent to.
public TreatmentResource withSizePercent(Integer sizePercent)
The allocated percentage of users (segment members) that the treatment is sent to.
sizePercent
- The allocated percentage of users (segment members) that the treatment is sent to.public void setState(CampaignState state)
The current status of the treatment.
state
- The current status of the treatment.public CampaignState getState()
The current status of the treatment.
public TreatmentResource withState(CampaignState state)
The current status of the treatment.
state
- The current status of the treatment.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 TreatmentResource 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)
The custom description of the treatment.
treatmentDescription
- The custom description of the treatment.public String getTreatmentDescription()
The custom description of the treatment.
public TreatmentResource withTreatmentDescription(String treatmentDescription)
The custom description of the treatment.
treatmentDescription
- The custom description of the treatment.public void setTreatmentName(String treatmentName)
The custom name of the treatment.
treatmentName
- The custom name of the treatment.public String getTreatmentName()
The custom name of the treatment.
public TreatmentResource withTreatmentName(String treatmentName)
The custom name of the treatment.
treatmentName
- The custom name of the treatment.public String toString()
toString
in class Object
Object.toString()
public TreatmentResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.