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