@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TreatmentResource extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
TreatmentResource() |
Modifier and Type | Method and Description |
---|---|
TreatmentResource |
clone() |
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 void setId(String id)
id
- The unique treatment ID.public String getId()
public TreatmentResource withId(String id)
id
- The unique treatment ID.public void setMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public MessageConfiguration getMessageConfiguration()
public TreatmentResource withMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public void setSchedule(Schedule schedule)
schedule
- The campaign schedule.public Schedule getSchedule()
public TreatmentResource withSchedule(Schedule schedule)
schedule
- The campaign schedule.public void setSizePercent(Integer sizePercent)
sizePercent
- The allocated percentage of users for this treatment.public Integer getSizePercent()
public TreatmentResource withSizePercent(Integer sizePercent)
sizePercent
- The allocated percentage of users for this treatment.public void setState(CampaignState state)
state
- The treatment status.public CampaignState getState()
public TreatmentResource withState(CampaignState state)
state
- The treatment status.public void setTreatmentDescription(String treatmentDescription)
treatmentDescription
- A custom description for the treatment.public String getTreatmentDescription()
public TreatmentResource withTreatmentDescription(String treatmentDescription)
treatmentDescription
- A custom description for the treatment.public void setTreatmentName(String treatmentName)
treatmentName
- The custom name of a variation of the campaign used for A/B testing.public String getTreatmentName()
public TreatmentResource withTreatmentName(String treatmentName)
treatmentName
- The custom name of a variation of the campaign used for A/B testing.public String toString()
toString
in class Object
Object.toString()
public TreatmentResource clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.