public class CampaignResponse
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CampaignResponse() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<TreatmentResource> |
getAdditionalTreatments()
Treatments that are defined in addition to the default treatment.
|
java.lang.String |
getApplicationId()
The ID of the application to which the campaign applies.
|
java.lang.String |
getCreationDate()
The date the campaign was created in ISO 8601 format.
|
CampaignState |
getDefaultState()
The status of the campaign's 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.String |
getId()
The unique campaign ID.
|
java.lang.Boolean |
getIsPaused()
Indicates whether the campaign is paused.
|
java.lang.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.
|
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.
|
CampaignState |
getState()
The campaign 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.
|
java.lang.Integer |
getVersion()
The campaign version number.
|
int |
hashCode() |
java.lang.Boolean |
isIsPaused()
Indicates whether the campaign is paused.
|
void |
setAdditionalTreatments(java.util.Collection<TreatmentResource> additionalTreatments)
Treatments that are defined in addition to the default treatment.
|
void |
setApplicationId(java.lang.String applicationId)
The ID of the application to which the campaign applies.
|
void |
setCreationDate(java.lang.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(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 |
setId(java.lang.String id)
The unique campaign ID.
|
void |
setIsPaused(java.lang.Boolean isPaused)
Indicates whether the campaign is paused.
|
void |
setLastModifiedDate(java.lang.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(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 |
setState(CampaignState state)
The campaign 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.
|
void |
setVersion(java.lang.Integer version)
The campaign version number.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CampaignResponse |
withAdditionalTreatments(java.util.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(java.lang.String applicationId)
The ID of the application to which the campaign applies.
|
CampaignResponse |
withCreationDate(java.lang.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(java.lang.String description)
A description of the campaign.
|
CampaignResponse |
withHoldoutPercent(java.lang.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(java.lang.String id)
The unique campaign ID.
|
CampaignResponse |
withIsPaused(java.lang.Boolean isPaused)
Indicates whether the campaign is paused.
|
CampaignResponse |
withLastModifiedDate(java.lang.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(java.lang.String name)
The custom name of the campaign.
|
CampaignResponse |
withSchedule(Schedule schedule)
The campaign schedule.
|
CampaignResponse |
withSegmentId(java.lang.String segmentId)
The ID of the segment to which the campaign sends messages.
|
CampaignResponse |
withSegmentVersion(java.lang.Integer segmentVersion)
The version of the segment to which the campaign sends messages.
|
CampaignResponse |
withState(CampaignState state)
The campaign status.
|
CampaignResponse |
withTreatmentDescription(java.lang.String treatmentDescription)
A custom description for the treatment.
|
CampaignResponse |
withTreatmentName(java.lang.String treatmentName)
The custom name of a variation of the campaign used for A/B testing.
|
CampaignResponse |
withVersion(java.lang.Integer version)
The campaign version number.
|
public java.util.List<TreatmentResource> getAdditionalTreatments()
public void setAdditionalTreatments(java.util.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(java.util.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 java.lang.String getApplicationId()
public void setApplicationId(java.lang.String applicationId)
applicationId
- The ID of the application to which the campaign
applies.public CampaignResponse withApplicationId(java.lang.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 java.lang.String getCreationDate()
public void setCreationDate(java.lang.String creationDate)
creationDate
- The date the campaign was created in ISO 8601 format.public CampaignResponse withCreationDate(java.lang.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 java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- A description of the campaign.public CampaignResponse 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 CampaignResponse 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 CampaignResponse withHook(CampaignHook hook)
Returns a reference to this object so that method calls can be chained together.
hook
- Campaign hook information.public java.lang.String getId()
public void setId(java.lang.String id)
id
- The unique campaign ID.public CampaignResponse withId(java.lang.String id)
Returns a reference to this object so that method calls can be chained together.
id
- The unique campaign ID.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 CampaignResponse 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 java.lang.String getLastModifiedDate()
public void setLastModifiedDate(java.lang.String lastModifiedDate)
lastModifiedDate
- The date the campaign was last updated in ISO
8601 format.public CampaignResponse withLastModifiedDate(java.lang.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 java.lang.String getName()
public void setName(java.lang.String name)
name
- The custom name of the campaign.public CampaignResponse 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 CampaignResponse 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 CampaignResponse 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 CampaignResponse 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 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 java.lang.String getTreatmentDescription()
public void setTreatmentDescription(java.lang.String treatmentDescription)
treatmentDescription
- A custom description for the treatment.public CampaignResponse 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 CampaignResponse 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.Integer getVersion()
public void setVersion(java.lang.Integer version)
version
- The campaign version number.public CampaignResponse withVersion(java.lang.Integer version)
Returns a reference to this object so that method calls can be chained together.
version
- The campaign version number.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.