public class CampaignResponse extends Object implements Serializable
| Constructor and Description |
|---|
CampaignResponse() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<TreatmentResource> |
getAdditionalTreatments()
Treatments that are defined in addition to the default treatment.
|
String |
getApplicationId()
The ID of the application to which the campaign applies.
|
String |
getCreationDate()
The date the campaign was created in ISO 8601 format.
|
CampaignState |
getDefaultState()
The status of the campaign's 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.
|
CampaignHook |
getHook()
Campaign hook information.
|
String |
getId()
The unique campaign ID.
|
Boolean |
getIsPaused()
Indicates whether the campaign is paused.
|
String |
getLastModifiedDate()
The date the campaign was last updated in ISO 8601 format.
|
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.
|
CampaignState |
getState()
The campaign 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.
|
Integer |
getVersion()
The campaign version number.
|
int |
hashCode() |
Boolean |
isIsPaused()
Indicates whether the campaign is paused.
|
void |
setAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
void |
setApplicationId(String applicationId)
The ID of the application to which the campaign applies.
|
void |
setCreationDate(String creationDate)
The date the campaign was created in ISO 8601 format.
|
void |
setDefaultState(CampaignState defaultState)
The status of the campaign's 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 |
setHook(CampaignHook hook)
Campaign hook information.
|
void |
setId(String id)
The unique campaign ID.
|
void |
setIsPaused(Boolean isPaused)
Indicates whether the campaign is paused.
|
void |
setLastModifiedDate(String lastModifiedDate)
The date the campaign was last updated in ISO 8601 format.
|
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 |
setState(CampaignState state)
The campaign 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.
|
void |
setVersion(Integer version)
The campaign version number.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignResponse |
withAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
CampaignResponse |
withAdditionalTreatments(TreatmentResource... additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
CampaignResponse |
withApplicationId(String applicationId)
The ID of the application to which the campaign applies.
|
CampaignResponse |
withCreationDate(String creationDate)
The date the campaign was created in ISO 8601 format.
|
CampaignResponse |
withDefaultState(CampaignState defaultState)
The status of the campaign's default treatment.
|
CampaignResponse |
withDescription(String description)
A description of the campaign.
|
CampaignResponse |
withHoldoutPercent(Integer holdoutPercent)
The allocated percentage of end users who will not receive messages from
this campaign.
|
CampaignResponse |
withHook(CampaignHook hook)
Campaign hook information.
|
CampaignResponse |
withId(String id)
The unique campaign ID.
|
CampaignResponse |
withIsPaused(Boolean isPaused)
Indicates whether the campaign is paused.
|
CampaignResponse |
withLastModifiedDate(String lastModifiedDate)
The date the campaign was last updated in ISO 8601 format.
|
CampaignResponse |
withLimits(CampaignLimits limits)
The campaign limits settings.
|
CampaignResponse |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings.
|
CampaignResponse |
withName(String name)
The custom name of the campaign.
|
CampaignResponse |
withSchedule(Schedule schedule)
The campaign schedule.
|
CampaignResponse |
withSegmentId(String segmentId)
The ID of the segment to which the campaign sends messages.
|
CampaignResponse |
withSegmentVersion(Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
CampaignResponse |
withState(CampaignState state)
The campaign status.
|
CampaignResponse |
withTreatmentDescription(String treatmentDescription)
A custom description for the treatment.
|
CampaignResponse |
withTreatmentName(String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
CampaignResponse |
withVersion(Integer version)
The campaign version number.
|
public List<TreatmentResource> getAdditionalTreatments()
public void setAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
additionalTreatments - Treatments that are defined in addition to
the default treatment.public CampaignResponse withAdditionalTreatments(TreatmentResource... 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 CampaignResponse withAdditionalTreatments(Collection<TreatmentResource> 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 String getApplicationId()
public void setApplicationId(String applicationId)
applicationId - The ID of the application to which the campaign
applies.public CampaignResponse withApplicationId(String applicationId)
Returns a reference to this object so that method calls can be chained together.
applicationId - The ID of the application to which the campaign
applies.public String getCreationDate()
public void setCreationDate(String creationDate)
creationDate - The date the campaign was created in ISO 8601 format.public CampaignResponse withCreationDate(String creationDate)
Returns a reference to this object so that method calls can be chained together.
creationDate - The date the campaign was created in ISO 8601 format.public CampaignState getDefaultState()
public void setDefaultState(CampaignState defaultState)
defaultState - The status of the campaign's default treatment. Only
present for A/B test campaigns.public CampaignResponse withDefaultState(CampaignState defaultState)
Returns a reference to this object so that method calls can be chained together.
defaultState - The status of the campaign's default treatment. Only
present for A/B test campaigns.public String getDescription()
public void setDescription(String description)
description - A description of the campaign.public CampaignResponse withDescription(String description)
Returns a reference to this object so that method calls can be chained together.
description - A description of the campaign.public Integer getHoldoutPercent()
public void setHoldoutPercent(Integer holdoutPercent)
holdoutPercent - The allocated percentage of end users who will not
receive messages from this campaign.public CampaignResponse withHoldoutPercent(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 CampaignResponse withHook(CampaignHook hook)
Returns a reference to this object so that method calls can be chained together.
hook - Campaign hook information.public String getId()
public void setId(String id)
id - The unique campaign ID.public CampaignResponse withId(String id)
Returns a reference to this object so that method calls can be chained together.
id - The unique campaign ID.public Boolean isIsPaused()
public Boolean getIsPaused()
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 CampaignResponse withIsPaused(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 String getLastModifiedDate()
public void setLastModifiedDate(String lastModifiedDate)
lastModifiedDate - The date the campaign was last updated in ISO
8601 format.public CampaignResponse withLastModifiedDate(String lastModifiedDate)
Returns a reference to this object so that method calls can be chained together.
lastModifiedDate - The date the campaign was last updated in ISO
8601 format.public CampaignLimits getLimits()
public void setLimits(CampaignLimits limits)
limits - The campaign limits settings.public CampaignResponse 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 CampaignResponse withMessageConfiguration(MessageConfiguration messageConfiguration)
Returns a reference to this object so that method calls can be chained together.
messageConfiguration - The message configuration settings.public String getName()
public void setName(String name)
name - The custom name of the campaign.public CampaignResponse withName(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 CampaignResponse withSchedule(Schedule schedule)
Returns a reference to this object so that method calls can be chained together.
schedule - The campaign schedule.public String getSegmentId()
public void setSegmentId(String segmentId)
segmentId - The ID of the segment to which the campaign sends
messages.public CampaignResponse withSegmentId(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 Integer getSegmentVersion()
public void setSegmentVersion(Integer segmentVersion)
segmentVersion - The version of the segment to which the campaign
sends messages.public CampaignResponse withSegmentVersion(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 CampaignState getState()
public void setState(CampaignState state)
state - The campaign status. An A/B test campaign will have a status
of COMPLETED only when all treatments have a status of
COMPLETED.public CampaignResponse withState(CampaignState state)
Returns a reference to this object so that method calls can be chained together.
state - The campaign status. An A/B test campaign will have a status
of COMPLETED only when all treatments have a status of
COMPLETED.public String getTreatmentDescription()
public void setTreatmentDescription(String treatmentDescription)
treatmentDescription - A custom description for the treatment.public CampaignResponse 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 CampaignResponse 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 Integer getVersion()
public void setVersion(Integer version)
version - The campaign version number.public CampaignResponse withVersion(Integer version)
Returns a reference to this object so that method calls can be chained together.
version - The campaign version number.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.