public class TreatmentResource extends Object implements Serializable
| Constructor and Description |
|---|
TreatmentResource() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getId()
The unique treatment ID.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings.
|
Schedule |
getSchedule()
The campaign schedule.
|
Integer |
getSizePercent()
The allocated percentage of users for this treatment.
|
CampaignState |
getState()
The treatment status.
|
String |
getTreatmentDescription()
A custom description for the treatment.
|
String |
getTreatmentName()
The custom name of a variation of the campaign used for A/B testing.
|
int |
hashCode() |
void |
setId(String id)
The unique treatment ID.
|
void |
setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings.
|
void |
setSchedule(Schedule schedule)
The campaign schedule.
|
void |
setSizePercent(Integer sizePercent)
The allocated percentage of users for this treatment.
|
void |
setState(CampaignState state)
The treatment status.
|
void |
setTreatmentDescription(String treatmentDescription)
A custom description for the treatment.
|
void |
setTreatmentName(String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TreatmentResource |
withId(String id)
The unique treatment ID.
|
TreatmentResource |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings.
|
TreatmentResource |
withSchedule(Schedule schedule)
The campaign schedule.
|
TreatmentResource |
withSizePercent(Integer sizePercent)
The allocated percentage of users for this treatment.
|
TreatmentResource |
withState(CampaignState state)
The treatment status.
|
TreatmentResource |
withTreatmentDescription(String treatmentDescription)
A custom description for the treatment.
|
TreatmentResource |
withTreatmentName(String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
public String getId()
public void setId(String id)
id - The unique treatment ID.public TreatmentResource withId(String id)
Returns a reference to this object so that method calls can be chained together.
id - The unique treatment ID.public MessageConfiguration getMessageConfiguration()
public void setMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration - The message configuration settings.public TreatmentResource withMessageConfiguration(MessageConfiguration messageConfiguration)
Returns a reference to this object so that method calls can be chained together.
messageConfiguration - The message configuration settings.public Schedule getSchedule()
public void setSchedule(Schedule schedule)
schedule - The campaign schedule.public TreatmentResource withSchedule(Schedule schedule)
Returns a reference to this object so that method calls can be chained together.
schedule - The campaign schedule.public Integer getSizePercent()
public void setSizePercent(Integer sizePercent)
sizePercent - The allocated percentage of users for this treatment.public TreatmentResource withSizePercent(Integer sizePercent)
Returns a reference to this object so that method calls can be chained together.
sizePercent - The allocated percentage of users for this treatment.public CampaignState getState()
public void setState(CampaignState state)
state - The treatment status.public TreatmentResource withState(CampaignState state)
Returns a reference to this object so that method calls can be chained together.
state - The treatment status.public String getTreatmentDescription()
public void setTreatmentDescription(String treatmentDescription)
treatmentDescription - A custom description for the treatment.public TreatmentResource withTreatmentDescription(String treatmentDescription)
Returns a reference to this object so that method calls can be chained together.
treatmentDescription - A custom description for the treatment.public String getTreatmentName()
public void setTreatmentName(String treatmentName)
treatmentName - The custom name of a variation of the campaign used
for A/B testing.public TreatmentResource withTreatmentName(String treatmentName)
Returns a reference to this object so that method calls can be chained together.
treatmentName - The custom name of a variation of the campaign used
for A/B testing.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.