@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CampaignResponse extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the status, configuration, and other settings for a campaign.
Constructor and Description |
---|
CampaignResponse() |
Modifier and Type | Method and Description |
---|---|
CampaignResponse |
addTagsEntry(String key,
String value)
Add a single Tags entry
|
CampaignResponse |
clearTagsEntries()
Removes all the entries added into Tags.
|
CampaignResponse |
clone() |
boolean |
equals(Object obj) |
List<TreatmentResource> |
getAdditionalTreatments()
An array of responses, one for each treatment that you defined for the campaign, in addition to the default
treatment.
|
String |
getApplicationId()
The unique identifier for the application that the campaign applies to.
|
String |
getArn()
The Amazon Resource Name (ARN) of the campaign.
|
String |
getCreationDate()
The date, in ISO 8601 format, when the campaign was created.
|
CustomDeliveryConfiguration |
getCustomDeliveryConfiguration()
The delivery configuration settings for sending the campaign through a custom channel.
|
CampaignState |
getDefaultState()
The current status of the campaign's default treatment.
|
String |
getDescription()
The custom description of the campaign.
|
Integer |
getHoldoutPercent()
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
|
CampaignHook |
getHook()
The settings for the AWS Lambda function to use as a code hook for the campaign.
|
String |
getId()
The unique identifier for the campaign.
|
Boolean |
getIsPaused()
Specifies whether the campaign is paused.
|
String |
getLastModifiedDate()
The date, in ISO 8601 format, when the campaign was last modified.
|
CampaignLimits |
getLimits()
The messaging limits for the campaign.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings for the campaign.
|
String |
getName()
The name of the campaign.
|
Integer |
getPriority()
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are
multiple messages scheduled to be displayed at the same moment.
|
Schedule |
getSchedule()
The schedule settings for the campaign.
|
String |
getSegmentId()
The unique identifier for the segment that's associated with the campaign.
|
Integer |
getSegmentVersion()
The version number of the segment that's associated with the campaign.
|
CampaignState |
getState()
The current status of the campaign.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.
|
TemplateConfiguration |
getTemplateConfiguration()
The message template that’s used for the campaign.
|
String |
getTreatmentDescription()
The custom description of the default treatment for the campaign.
|
String |
getTreatmentName()
The custom name of the default treatment for the campaign, if the campaign has multiple treatments.
|
Integer |
getVersion()
The version number of the campaign.
|
int |
hashCode() |
Boolean |
isPaused()
Specifies whether the campaign is paused.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default
treatment.
|
void |
setApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the campaign.
|
void |
setCreationDate(String creationDate)
The date, in ISO 8601 format, when the campaign was created.
|
void |
setCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the campaign through a custom channel.
|
void |
setDefaultState(CampaignState defaultState)
The current status of the campaign's default treatment.
|
void |
setDescription(String description)
The custom description of the campaign.
|
void |
setHoldoutPercent(Integer holdoutPercent)
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
|
void |
setHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign.
|
void |
setId(String id)
The unique identifier for the campaign.
|
void |
setIsPaused(Boolean isPaused)
Specifies whether the campaign is paused.
|
void |
setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the campaign was last modified.
|
void |
setLimits(CampaignLimits limits)
The messaging limits for the campaign.
|
void |
setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
|
void |
setName(String name)
The name of the campaign.
|
void |
setPriority(Integer priority)
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are
multiple messages scheduled to be displayed at the same moment.
|
void |
setSchedule(Schedule schedule)
The schedule settings for the campaign.
|
void |
setSegmentId(String segmentId)
The unique identifier for the segment that's associated with the campaign.
|
void |
setSegmentVersion(Integer segmentVersion)
The version number of the segment that's associated with the campaign.
|
void |
setState(CampaignState state)
The current status of the campaign.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.
|
void |
setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template that’s used for the campaign.
|
void |
setTreatmentDescription(String treatmentDescription)
The custom description of the default treatment for the campaign.
|
void |
setTreatmentName(String treatmentName)
The custom name of the default treatment for the campaign, if the campaign has multiple treatments.
|
void |
setVersion(Integer version)
The version number of the campaign.
|
String |
toString()
Returns a string representation of this object.
|
CampaignResponse |
withAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default
treatment.
|
CampaignResponse |
withAdditionalTreatments(TreatmentResource... additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default
treatment.
|
CampaignResponse |
withApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
|
CampaignResponse |
withArn(String arn)
The Amazon Resource Name (ARN) of the campaign.
|
CampaignResponse |
withCreationDate(String creationDate)
The date, in ISO 8601 format, when the campaign was created.
|
CampaignResponse |
withCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the campaign through a custom channel.
|
CampaignResponse |
withDefaultState(CampaignState defaultState)
The current status of the campaign's default treatment.
|
CampaignResponse |
withDescription(String description)
The custom description of the campaign.
|
CampaignResponse |
withHoldoutPercent(Integer holdoutPercent)
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
|
CampaignResponse |
withHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign.
|
CampaignResponse |
withId(String id)
The unique identifier for the campaign.
|
CampaignResponse |
withIsPaused(Boolean isPaused)
Specifies whether the campaign is paused.
|
CampaignResponse |
withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the campaign was last modified.
|
CampaignResponse |
withLimits(CampaignLimits limits)
The messaging limits for the campaign.
|
CampaignResponse |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
|
CampaignResponse |
withName(String name)
The name of the campaign.
|
CampaignResponse |
withPriority(Integer priority)
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are
multiple messages scheduled to be displayed at the same moment.
|
CampaignResponse |
withSchedule(Schedule schedule)
The schedule settings for the campaign.
|
CampaignResponse |
withSegmentId(String segmentId)
The unique identifier for the segment that's associated with the campaign.
|
CampaignResponse |
withSegmentVersion(Integer segmentVersion)
The version number of the segment that's associated with the campaign.
|
CampaignResponse |
withState(CampaignState state)
The current status of the campaign.
|
CampaignResponse |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.
|
CampaignResponse |
withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template that’s used for the campaign.
|
CampaignResponse |
withTreatmentDescription(String treatmentDescription)
The custom description of the default treatment for the campaign.
|
CampaignResponse |
withTreatmentName(String treatmentName)
The custom name of the default treatment for the campaign, if the campaign has multiple treatments.
|
CampaignResponse |
withVersion(Integer version)
The version number of the campaign.
|
public List<TreatmentResource> getAdditionalTreatments()
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
public void setAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
additionalTreatments
- An array of responses, one for each treatment that you defined for the campaign, in addition to the
default treatment.public CampaignResponse withAdditionalTreatments(TreatmentResource... additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
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
- An array of responses, one for each treatment that you defined for the campaign, in addition to the
default treatment.public CampaignResponse withAdditionalTreatments(Collection<TreatmentResource> additionalTreatments)
An array of responses, one for each treatment that you defined for the campaign, in addition to the default treatment.
additionalTreatments
- An array of responses, one for each treatment that you defined for the campaign, in addition to the
default treatment.public void setApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
applicationId
- The unique identifier for the application that the campaign applies to.public String getApplicationId()
The unique identifier for the application that the campaign applies to.
public CampaignResponse withApplicationId(String applicationId)
The unique identifier for the application that the campaign applies to.
applicationId
- The unique identifier for the application that the campaign applies to.public void setArn(String arn)
The Amazon Resource Name (ARN) of the campaign.
arn
- The Amazon Resource Name (ARN) of the campaign.public String getArn()
The Amazon Resource Name (ARN) of the campaign.
public CampaignResponse withArn(String arn)
The Amazon Resource Name (ARN) of the campaign.
arn
- The Amazon Resource Name (ARN) of the campaign.public void setCreationDate(String creationDate)
The date, in ISO 8601 format, when the campaign was created.
creationDate
- The date, in ISO 8601 format, when the campaign was created.public String getCreationDate()
The date, in ISO 8601 format, when the campaign was created.
public CampaignResponse withCreationDate(String creationDate)
The date, in ISO 8601 format, when the campaign was created.
creationDate
- The date, in ISO 8601 format, when the campaign was created.public void setCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the campaign through a custom channel.
customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a custom channel.public CustomDeliveryConfiguration getCustomDeliveryConfiguration()
The delivery configuration settings for sending the campaign through a custom channel.
public CampaignResponse withCustomDeliveryConfiguration(CustomDeliveryConfiguration customDeliveryConfiguration)
The delivery configuration settings for sending the campaign through a custom channel.
customDeliveryConfiguration
- The delivery configuration settings for sending the campaign through a custom channel.public void setDefaultState(CampaignState defaultState)
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
defaultState
- The current status of the campaign's default treatment. This value exists only for campaigns that have
more than one treatment.public CampaignState getDefaultState()
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
public CampaignResponse withDefaultState(CampaignState defaultState)
The current status of the campaign's default treatment. This value exists only for campaigns that have more than one treatment.
defaultState
- The current status of the campaign's default treatment. This value exists only for campaigns that have
more than one treatment.public void setDescription(String description)
The custom description of the campaign.
description
- The custom description of the campaign.public String getDescription()
The custom description of the campaign.
public CampaignResponse withDescription(String description)
The custom description of the campaign.
description
- The custom description of the campaign.public void setHoldoutPercent(Integer holdoutPercent)
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
holdoutPercent
- The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.public Integer getHoldoutPercent()
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
public CampaignResponse withHoldoutPercent(Integer holdoutPercent)
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
holdoutPercent
- The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.public void setHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
hook
- The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to
customize the segment that's used by the campaign.public CampaignHook getHook()
The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
public CampaignResponse withHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to customize the segment that's used by the campaign.
hook
- The settings for the AWS Lambda function to use as a code hook for the campaign. You can use this hook to
customize the segment that's used by the campaign.public void setId(String id)
The unique identifier for the campaign.
id
- The unique identifier for the campaign.public String getId()
The unique identifier for the campaign.
public CampaignResponse withId(String id)
The unique identifier for the campaign.
id
- The unique identifier for the campaign.public void setIsPaused(Boolean isPaused)
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
isPaused
- Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing
this value to false.public Boolean getIsPaused()
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
public CampaignResponse withIsPaused(Boolean isPaused)
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
isPaused
- Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing
this value to false.public Boolean isPaused()
Specifies whether the campaign is paused. A paused campaign doesn't run unless you resume it by changing this value to false.
public void setLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the campaign was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the campaign was last modified.public String getLastModifiedDate()
The date, in ISO 8601 format, when the campaign was last modified.
public CampaignResponse withLastModifiedDate(String lastModifiedDate)
The date, in ISO 8601 format, when the campaign was last modified.
lastModifiedDate
- The date, in ISO 8601 format, when the campaign was last modified.public void setLimits(CampaignLimits limits)
The messaging limits for the campaign.
limits
- The messaging limits for the campaign.public CampaignLimits getLimits()
The messaging limits for the campaign.
public CampaignResponse withLimits(CampaignLimits limits)
The messaging limits for the campaign.
limits
- The messaging limits for the campaign.public void setMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
messageConfiguration
- The message configuration settings for the campaign.public MessageConfiguration getMessageConfiguration()
The message configuration settings for the campaign.
public CampaignResponse withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
messageConfiguration
- The message configuration settings for the campaign.public void setName(String name)
The name of the campaign.
name
- The name of the campaign.public String getName()
The name of the campaign.
public CampaignResponse withName(String name)
The name of the campaign.
name
- The name of the campaign.public void setSchedule(Schedule schedule)
The schedule settings for the campaign.
schedule
- The schedule settings for the campaign.public Schedule getSchedule()
The schedule settings for the campaign.
public CampaignResponse withSchedule(Schedule schedule)
The schedule settings for the campaign.
schedule
- The schedule settings for the campaign.public void setSegmentId(String segmentId)
The unique identifier for the segment that's associated with the campaign.
segmentId
- The unique identifier for the segment that's associated with the campaign.public String getSegmentId()
The unique identifier for the segment that's associated with the campaign.
public CampaignResponse withSegmentId(String segmentId)
The unique identifier for the segment that's associated with the campaign.
segmentId
- The unique identifier for the segment that's associated with the campaign.public void setSegmentVersion(Integer segmentVersion)
The version number of the segment that's associated with the campaign.
segmentVersion
- The version number of the segment that's associated with the campaign.public Integer getSegmentVersion()
The version number of the segment that's associated with the campaign.
public CampaignResponse withSegmentVersion(Integer segmentVersion)
The version number of the segment that's associated with the campaign.
segmentVersion
- The version number of the segment that's associated with the campaign.public void setState(CampaignState state)
The current status of the campaign.
state
- The current status of the campaign.public CampaignState getState()
The current status of the campaign.
public CampaignResponse withState(CampaignState state)
The current status of the campaign.
state
- The current status of the campaign.public Map<String,String> getTags()
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
public void setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.
Each tag consists of a required tag key and an associated tag value.public CampaignResponse withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign. Each tag consists of a required tag key and an associated tag value.
tags
- A string-to-string map of key-value pairs that identifies the tags that are associated with the campaign.
Each tag consists of a required tag key and an associated tag value.public CampaignResponse addTagsEntry(String key, String value)
public CampaignResponse clearTagsEntries()
public void setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template that’s used for the campaign.
templateConfiguration
- The message template that’s used for the campaign.public TemplateConfiguration getTemplateConfiguration()
The message template that’s used for the campaign.
public CampaignResponse withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template that’s used for the campaign.
templateConfiguration
- The message template that’s used for the campaign.public void setTreatmentDescription(String treatmentDescription)
The custom description of the default treatment for the campaign.
treatmentDescription
- The custom description of the default treatment for the campaign.public String getTreatmentDescription()
The custom description of the default treatment for the campaign.
public CampaignResponse withTreatmentDescription(String treatmentDescription)
The custom description of the default treatment for the campaign.
treatmentDescription
- The custom description of the default treatment for the campaign.public void setTreatmentName(String treatmentName)
The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
treatmentName
- The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A
treatment is a variation of a campaign that's used for A/B testing.public String getTreatmentName()
The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
public CampaignResponse withTreatmentName(String treatmentName)
The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A treatment is a variation of a campaign that's used for A/B testing.
treatmentName
- The custom name of the default treatment for the campaign, if the campaign has multiple treatments. A
treatment is a variation of a campaign that's used for A/B testing.public void setVersion(Integer version)
The version number of the campaign.
version
- The version number of the campaign.public Integer getVersion()
The version number of the campaign.
public CampaignResponse withVersion(Integer version)
The version number of the campaign.
version
- The version number of the campaign.public void setPriority(Integer priority)
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
priority
- Defines the priority of the campaign, used to decide the order of messages displayed to user if there are
multiple messages scheduled to be displayed at the same moment.public Integer getPriority()
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
public CampaignResponse withPriority(Integer priority)
Defines the priority of the campaign, used to decide the order of messages displayed to user if there are multiple messages scheduled to be displayed at the same moment.
priority
- Defines the priority of the campaign, used to decide the order of messages displayed to user if there are
multiple messages scheduled to be displayed at the same moment.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.