@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteCampaignRequest extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
WriteCampaignRequest() |
Modifier and Type | Method and Description |
---|---|
WriteCampaignRequest |
clone() |
boolean |
equals(Object obj) |
List<WriteTreatmentResource> |
getAdditionalTreatments()
Treatments that are defined in addition to the default treatment.
|
String |
getDescription()
A description of the campaign.
|
Integer |
getHoldoutPercent()
The allocated percentage of end users who will not receive messages from this campaign.
|
Boolean |
getIsPaused()
Indicates whether the campaign is paused.
|
CampaignLimits |
getLimits()
The campaign limits settings.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings.
|
String |
getName()
The custom name of the campaign.
|
Schedule |
getSchedule()
The campaign schedule.
|
String |
getSegmentId()
The ID of the segment to which the campaign sends messages.
|
Integer |
getSegmentVersion()
The version of the segment to which the campaign sends messages.
|
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() |
Boolean |
isPaused()
Indicates whether the campaign is paused.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
void |
setDescription(String description)
A description of the campaign.
|
void |
setHoldoutPercent(Integer holdoutPercent)
The allocated percentage of end users who will not receive messages from this campaign.
|
void |
setIsPaused(Boolean isPaused)
Indicates whether the campaign is paused.
|
void |
setLimits(CampaignLimits limits)
The campaign limits settings.
|
void |
setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings.
|
void |
setName(String name)
The custom name of the campaign.
|
void |
setSchedule(Schedule schedule)
The campaign schedule.
|
void |
setSegmentId(String segmentId)
The ID of the segment to which the campaign sends messages.
|
void |
setSegmentVersion(Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
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.
|
WriteCampaignRequest |
withAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
WriteCampaignRequest |
withAdditionalTreatments(WriteTreatmentResource... additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
WriteCampaignRequest |
withDescription(String description)
A description of the campaign.
|
WriteCampaignRequest |
withHoldoutPercent(Integer holdoutPercent)
The allocated percentage of end users who will not receive messages from this campaign.
|
WriteCampaignRequest |
withIsPaused(Boolean isPaused)
Indicates whether the campaign is paused.
|
WriteCampaignRequest |
withLimits(CampaignLimits limits)
The campaign limits settings.
|
WriteCampaignRequest |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings.
|
WriteCampaignRequest |
withName(String name)
The custom name of the campaign.
|
WriteCampaignRequest |
withSchedule(Schedule schedule)
The campaign schedule.
|
WriteCampaignRequest |
withSegmentId(String segmentId)
The ID of the segment to which the campaign sends messages.
|
WriteCampaignRequest |
withSegmentVersion(Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
WriteCampaignRequest |
withTreatmentDescription(String treatmentDescription)
A custom description for the treatment.
|
WriteCampaignRequest |
withTreatmentName(String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
public List<WriteTreatmentResource> getAdditionalTreatments()
public void setAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
additionalTreatments
- Treatments that are defined in addition to the default treatment.public WriteCampaignRequest withAdditionalTreatments(WriteTreatmentResource... additionalTreatments)
NOTE: This method appends the values to the existing list (if any). Use
setAdditionalTreatments(java.util.Collection)
or withAdditionalTreatments(java.util.Collection)
if you want to override the existing values.
additionalTreatments
- Treatments that are defined in addition to the default treatment.public WriteCampaignRequest withAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
additionalTreatments
- Treatments that are defined in addition to the default treatment.public void setDescription(String description)
description
- A description of the campaign.public String getDescription()
public WriteCampaignRequest withDescription(String description)
description
- A description of the campaign.public void setHoldoutPercent(Integer holdoutPercent)
holdoutPercent
- The allocated percentage of end users who will not receive messages from this campaign.public Integer getHoldoutPercent()
public WriteCampaignRequest withHoldoutPercent(Integer holdoutPercent)
holdoutPercent
- The allocated percentage of end users who will not receive messages from this campaign.public void setIsPaused(Boolean isPaused)
isPaused
- Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by
setting IsPaused to false.public Boolean getIsPaused()
public WriteCampaignRequest withIsPaused(Boolean isPaused)
isPaused
- Indicates whether the campaign is paused. A paused campaign does not send messages unless you resume it by
setting IsPaused to false.public Boolean isPaused()
public void setLimits(CampaignLimits limits)
limits
- The campaign limits settings.public CampaignLimits getLimits()
public WriteCampaignRequest withLimits(CampaignLimits limits)
limits
- The campaign limits settings.public void setMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public MessageConfiguration getMessageConfiguration()
public WriteCampaignRequest withMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public void setName(String name)
name
- The custom name of the campaign.public String getName()
public WriteCampaignRequest withName(String name)
name
- The custom name of the campaign.public void setSchedule(Schedule schedule)
schedule
- The campaign schedule.public Schedule getSchedule()
public WriteCampaignRequest withSchedule(Schedule schedule)
schedule
- The campaign schedule.public void setSegmentId(String segmentId)
segmentId
- The ID of the segment to which the campaign sends messages.public String getSegmentId()
public WriteCampaignRequest withSegmentId(String segmentId)
segmentId
- The ID of the segment to which the campaign sends messages.public void setSegmentVersion(Integer segmentVersion)
segmentVersion
- The version of the segment to which the campaign sends messages.public Integer getSegmentVersion()
public WriteCampaignRequest withSegmentVersion(Integer segmentVersion)
segmentVersion
- The version of the segment to which the campaign sends messages.public void setTreatmentDescription(String treatmentDescription)
treatmentDescription
- A custom description for the treatment.public String getTreatmentDescription()
public WriteCampaignRequest 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 WriteCampaignRequest 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 WriteCampaignRequest 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.