public class WriteCampaignRequest
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
WriteCampaignRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<WriteTreatmentResource> |
getAdditionalTreatments()
Treatments that are defined in addition to the default treatment.
|
java.lang.String |
getDescription()
A description of the campaign.
|
java.lang.Integer |
getHoldoutPercent()
The allocated percentage of end users who will not receive messages from
this campaign.
|
CampaignHook |
getHook()
Campaign hook information.
|
java.lang.Boolean |
getIsPaused()
Indicates whether the campaign is paused.
|
CampaignLimits |
getLimits()
The campaign limits settings.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings.
|
java.lang.String |
getName()
The custom name of the campaign.
|
Schedule |
getSchedule()
The campaign schedule.
|
java.lang.String |
getSegmentId()
The ID of the segment to which the campaign sends messages.
|
java.lang.Integer |
getSegmentVersion()
The version of the segment to which the campaign sends messages.
|
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() |
java.lang.Boolean |
isIsPaused()
Indicates whether the campaign is paused.
|
void |
setAdditionalTreatments(java.util.Collection<WriteTreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
void |
setDescription(java.lang.String description)
A description of the campaign.
|
void |
setHoldoutPercent(java.lang.Integer holdoutPercent)
The allocated percentage of end users who will not receive messages from
this campaign.
|
void |
setHook(CampaignHook hook)
Campaign hook information.
|
void |
setIsPaused(java.lang.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(java.lang.String name)
The custom name of the campaign.
|
void |
setSchedule(Schedule schedule)
The campaign schedule.
|
void |
setSegmentId(java.lang.String segmentId)
The ID of the segment to which the campaign sends messages.
|
void |
setSegmentVersion(java.lang.Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
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.
|
WriteCampaignRequest |
withAdditionalTreatments(java.util.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(java.lang.String description)
A description of the campaign.
|
WriteCampaignRequest |
withHoldoutPercent(java.lang.Integer holdoutPercent)
The allocated percentage of end users who will not receive messages from
this campaign.
|
WriteCampaignRequest |
withHook(CampaignHook hook)
Campaign hook information.
|
WriteCampaignRequest |
withIsPaused(java.lang.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(java.lang.String name)
The custom name of the campaign.
|
WriteCampaignRequest |
withSchedule(Schedule schedule)
The campaign schedule.
|
WriteCampaignRequest |
withSegmentId(java.lang.String segmentId)
The ID of the segment to which the campaign sends messages.
|
WriteCampaignRequest |
withSegmentVersion(java.lang.Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
WriteCampaignRequest |
withTreatmentDescription(java.lang.String treatmentDescription)
A custom description for the treatment.
|
WriteCampaignRequest |
withTreatmentName(java.lang.String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
public java.util.List<WriteTreatmentResource> getAdditionalTreatments()
public void setAdditionalTreatments(java.util.Collection<WriteTreatmentResource> additionalTreatments)
additionalTreatments - Treatments that are defined in addition to
the default treatment.public WriteCampaignRequest withAdditionalTreatments(WriteTreatmentResource... additionalTreatments)
Returns a reference to this object so that method calls can be chained together.
additionalTreatments - Treatments that are defined in addition to
the default treatment.public WriteCampaignRequest withAdditionalTreatments(java.util.Collection<WriteTreatmentResource> additionalTreatments)
Returns a reference to this object so that method calls can be chained together.
additionalTreatments - Treatments that are defined in addition to
the default treatment.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - A description of the campaign.public WriteCampaignRequest withDescription(java.lang.String description)
Returns a reference to this object so that method calls can be chained together.
description - A description of the campaign.public java.lang.Integer getHoldoutPercent()
public void setHoldoutPercent(java.lang.Integer holdoutPercent)
holdoutPercent - The allocated percentage of end users who will not
receive messages from this campaign.public WriteCampaignRequest withHoldoutPercent(java.lang.Integer holdoutPercent)
Returns a reference to this object so that method calls can be chained together.
holdoutPercent - The allocated percentage of end users who will not
receive messages from this campaign.public CampaignHook getHook()
public void setHook(CampaignHook hook)
hook - Campaign hook information.public WriteCampaignRequest withHook(CampaignHook hook)
Returns a reference to this object so that method calls can be chained together.
hook - Campaign hook information.public java.lang.Boolean isIsPaused()
public java.lang.Boolean getIsPaused()
public void setIsPaused(java.lang.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 WriteCampaignRequest withIsPaused(java.lang.Boolean isPaused)
Returns a reference to this object so that method calls can be chained together.
isPaused - Indicates whether the campaign is paused. A paused
campaign does not send messages unless you resume it by
setting IsPaused to false.public CampaignLimits getLimits()
public void setLimits(CampaignLimits limits)
limits - The campaign limits settings.public WriteCampaignRequest withLimits(CampaignLimits limits)
Returns a reference to this object so that method calls can be chained together.
limits - The campaign limits settings.public MessageConfiguration getMessageConfiguration()
public void setMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration - The message configuration settings.public WriteCampaignRequest withMessageConfiguration(MessageConfiguration messageConfiguration)
Returns a reference to this object so that method calls can be chained together.
messageConfiguration - The message configuration settings.public java.lang.String getName()
public void setName(java.lang.String name)
name - The custom name of the campaign.public WriteCampaignRequest withName(java.lang.String name)
Returns a reference to this object so that method calls can be chained together.
name - The custom name of the campaign.public Schedule getSchedule()
public void setSchedule(Schedule schedule)
schedule - The campaign schedule.public WriteCampaignRequest withSchedule(Schedule schedule)
Returns a reference to this object so that method calls can be chained together.
schedule - The campaign schedule.public java.lang.String getSegmentId()
public void setSegmentId(java.lang.String segmentId)
segmentId - The ID of the segment to which the campaign sends
messages.public WriteCampaignRequest withSegmentId(java.lang.String segmentId)
Returns a reference to this object so that method calls can be chained together.
segmentId - The ID of the segment to which the campaign sends
messages.public java.lang.Integer getSegmentVersion()
public void setSegmentVersion(java.lang.Integer segmentVersion)
segmentVersion - The version of the segment to which the campaign
sends messages.public WriteCampaignRequest withSegmentVersion(java.lang.Integer segmentVersion)
Returns a reference to this object so that method calls can be chained together.
segmentVersion - The version of the segment to which the campaign
sends messages.public java.lang.String getTreatmentDescription()
public void setTreatmentDescription(java.lang.String treatmentDescription)
treatmentDescription - A custom description for the treatment.public WriteCampaignRequest 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 WriteCampaignRequest 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.