@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignResponse extends Object implements Serializable, Cloneable, StructuredPojo
Constructor and Description |
---|
CampaignResponse() |
Modifier and Type | Method and Description |
---|---|
CampaignResponse |
clone() |
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.
|
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 |
isPaused()
Indicates whether the campaign is paused.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
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 |
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)
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 CampaignResponse withAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
additionalTreatments
- Treatments that are defined in addition to the default treatment.public void setApplicationId(String applicationId)
applicationId
- The ID of the application to which the campaign applies.public String getApplicationId()
public CampaignResponse withApplicationId(String applicationId)
applicationId
- The ID of the application to which the campaign applies.public void setCreationDate(String creationDate)
creationDate
- The date the campaign was created in ISO 8601 format.public String getCreationDate()
public CampaignResponse withCreationDate(String creationDate)
creationDate
- The date the campaign was created in ISO 8601 format.public void setDefaultState(CampaignState defaultState)
defaultState
- The status of the campaign's default treatment. Only present for A/B test campaigns.public CampaignState getDefaultState()
public CampaignResponse withDefaultState(CampaignState defaultState)
defaultState
- The status of the campaign's default treatment. Only present for A/B test campaigns.public void setDescription(String description)
description
- A description of the campaign.public String getDescription()
public CampaignResponse 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 CampaignResponse withHoldoutPercent(Integer holdoutPercent)
holdoutPercent
- The allocated percentage of end users who will not receive messages from this campaign.public void setId(String id)
id
- The unique campaign ID.public String getId()
public CampaignResponse withId(String id)
id
- The unique campaign ID.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 CampaignResponse 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 setLastModifiedDate(String lastModifiedDate)
lastModifiedDate
- The date the campaign was last updated in ISO 8601 format.public String getLastModifiedDate()
public CampaignResponse withLastModifiedDate(String lastModifiedDate)
lastModifiedDate
- The date the campaign was last updated in ISO 8601 format.public void setLimits(CampaignLimits limits)
limits
- The campaign limits settings.public CampaignLimits getLimits()
public CampaignResponse withLimits(CampaignLimits limits)
limits
- The campaign limits settings.public void setMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public MessageConfiguration getMessageConfiguration()
public CampaignResponse withMessageConfiguration(MessageConfiguration messageConfiguration)
messageConfiguration
- The message configuration settings.public void setName(String name)
name
- The custom name of the campaign.public String getName()
public CampaignResponse withName(String name)
name
- The custom name of the campaign.public void setSchedule(Schedule schedule)
schedule
- The campaign schedule.public Schedule getSchedule()
public CampaignResponse 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 CampaignResponse 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 CampaignResponse withSegmentVersion(Integer segmentVersion)
segmentVersion
- The version of the segment to which the campaign sends messages.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 CampaignState getState()
public CampaignResponse withState(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 void setTreatmentDescription(String treatmentDescription)
treatmentDescription
- A custom description for the treatment.public String getTreatmentDescription()
public CampaignResponse 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 CampaignResponse withTreatmentName(String treatmentName)
treatmentName
- The custom name of a variation of the campaign used for A/B testing.public void setVersion(Integer version)
version
- The campaign version number.public Integer getVersion()
public CampaignResponse withVersion(Integer version)
version
- The campaign version number.public String toString()
toString
in class Object
Object.toString()
public CampaignResponse 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.