@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class WriteCampaignRequest extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the configuration and other settings for a campaign.
Constructor and Description |
---|
WriteCampaignRequest() |
Modifier and Type | Method and Description |
---|---|
WriteCampaignRequest |
addTagsEntry(String key,
String value) |
WriteCampaignRequest |
clearTagsEntries()
Removes all the entries added into Tags.
|
WriteCampaignRequest |
clone() |
boolean |
equals(Object obj) |
List<WriteTreatmentResource> |
getAdditionalTreatments()
An array of requests that defines additional treatments for the campaign, in addition to the default treatment
for the campaign.
|
String |
getDescription()
A 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.
|
Boolean |
getIsPaused()
Specifies whether to pause the campaign.
|
CampaignLimits |
getLimits()
The messaging limits for the campaign.
|
MessageConfiguration |
getMessageConfiguration()
The message configuration settings for the campaign.
|
String |
getName()
The custom name of the campaign.
|
Schedule |
getSchedule()
The schedule settings for the campaign.
|
String |
getSegmentId()
The unique identifier for the segment to associate with the campaign.
|
Integer |
getSegmentVersion()
The version of the segment to associate with the campaign.
|
Map<String,String> |
getTags()
A string-to-string map of key-value pairs that defines the tags to associate with the campaign.
|
TemplateConfiguration |
getTemplateConfiguration()
The message template to use for the campaign.
|
String |
getTreatmentDescription()
A custom description of a variation of the campaign to use for A/B testing.
|
String |
getTreatmentName()
The custom name of a variation of the campaign to use for A/B testing.
|
int |
hashCode() |
Boolean |
isPaused()
Specifies whether to pause the campaign.
|
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment
for the campaign.
|
void |
setDescription(String description)
A 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 |
setIsPaused(Boolean isPaused)
Specifies whether to pause the campaign.
|
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 custom name of the campaign.
|
void |
setSchedule(Schedule schedule)
The schedule settings for the campaign.
|
void |
setSegmentId(String segmentId)
The unique identifier for the segment to associate with the campaign.
|
void |
setSegmentVersion(Integer segmentVersion)
The version of the segment to associate with the campaign.
|
void |
setTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the campaign.
|
void |
setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the campaign.
|
void |
setTreatmentDescription(String treatmentDescription)
A custom description of a variation of the campaign to use for A/B testing.
|
void |
setTreatmentName(String treatmentName)
The custom name of a variation of the campaign to use for A/B testing.
|
String |
toString()
Returns a string representation of this object.
|
WriteCampaignRequest |
withAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment
for the campaign.
|
WriteCampaignRequest |
withAdditionalTreatments(WriteTreatmentResource... additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment
for the campaign.
|
WriteCampaignRequest |
withDescription(String description)
A custom description of the campaign.
|
WriteCampaignRequest |
withHoldoutPercent(Integer holdoutPercent)
The allocated percentage of users (segment members) who shouldn't receive messages from the campaign.
|
WriteCampaignRequest |
withHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign.
|
WriteCampaignRequest |
withIsPaused(Boolean isPaused)
Specifies whether to pause the campaign.
|
WriteCampaignRequest |
withLimits(CampaignLimits limits)
The messaging limits for the campaign.
|
WriteCampaignRequest |
withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
|
WriteCampaignRequest |
withName(String name)
The custom name of the campaign.
|
WriteCampaignRequest |
withSchedule(Schedule schedule)
The schedule settings for the campaign.
|
WriteCampaignRequest |
withSegmentId(String segmentId)
The unique identifier for the segment to associate with the campaign.
|
WriteCampaignRequest |
withSegmentVersion(Integer segmentVersion)
The version of the segment to associate with the campaign.
|
WriteCampaignRequest |
withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate with the campaign.
|
WriteCampaignRequest |
withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the campaign.
|
WriteCampaignRequest |
withTreatmentDescription(String treatmentDescription)
A custom description of a variation of the campaign to use for A/B testing.
|
WriteCampaignRequest |
withTreatmentName(String treatmentName)
The custom name of a variation of the campaign to use for A/B testing.
|
public List<WriteTreatmentResource> getAdditionalTreatments()
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
public void setAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
additionalTreatments
- An array of requests that defines additional treatments for the campaign, in addition to the default
treatment for the campaign.public WriteCampaignRequest withAdditionalTreatments(WriteTreatmentResource... additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
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 requests that defines additional treatments for the campaign, in addition to the default
treatment for the campaign.public WriteCampaignRequest withAdditionalTreatments(Collection<WriteTreatmentResource> additionalTreatments)
An array of requests that defines additional treatments for the campaign, in addition to the default treatment for the campaign.
additionalTreatments
- An array of requests that defines additional treatments for the campaign, in addition to the default
treatment for the campaign.public void setDescription(String description)
A custom description of the campaign.
description
- A custom description of the campaign.public String getDescription()
A custom description of the campaign.
public WriteCampaignRequest withDescription(String description)
A custom description of the campaign.
description
- A 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 WriteCampaignRequest 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.
hook
- The settings for the AWS Lambda function to use as a code hook for the campaign.public CampaignHook getHook()
The settings for the AWS Lambda function to use as a code hook for the campaign.
public WriteCampaignRequest withHook(CampaignHook hook)
The settings for the AWS Lambda function to use as a code hook for the campaign.
hook
- The settings for the AWS Lambda function to use as a code hook for the campaign.public void setIsPaused(Boolean isPaused)
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting this value to false.
isPaused
- Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting
this value to false.public Boolean getIsPaused()
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting this value to false.
public WriteCampaignRequest withIsPaused(Boolean isPaused)
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting this value to false.
isPaused
- Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting
this value to false.public Boolean isPaused()
Specifies whether to pause the campaign. A paused campaign doesn't run unless you resume it by setting this value to false.
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 WriteCampaignRequest 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 WriteCampaignRequest withMessageConfiguration(MessageConfiguration messageConfiguration)
The message configuration settings for the campaign.
messageConfiguration
- The message configuration settings for the campaign.public void setName(String name)
The custom name of the campaign.
name
- The custom name of the campaign.public String getName()
The custom name of the campaign.
public WriteCampaignRequest withName(String name)
The custom name of the campaign.
name
- The custom 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 WriteCampaignRequest 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 to associate with the campaign.
segmentId
- The unique identifier for the segment to associate with the campaign.public String getSegmentId()
The unique identifier for the segment to associate with the campaign.
public WriteCampaignRequest withSegmentId(String segmentId)
The unique identifier for the segment to associate with the campaign.
segmentId
- The unique identifier for the segment to associate with the campaign.public void setSegmentVersion(Integer segmentVersion)
The version of the segment to associate with the campaign.
segmentVersion
- The version of the segment to associate with the campaign.public Integer getSegmentVersion()
The version of the segment to associate with the campaign.
public WriteCampaignRequest withSegmentVersion(Integer segmentVersion)
The version of the segment to associate with the campaign.
segmentVersion
- The version of the segment to associate with the campaign.public Map<String,String> getTags()
A string-to-string map of key-value pairs that defines the tags to associate 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 defines the tags to associate 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 defines the tags to associate with the campaign. Each tag
consists of a required tag key and an associated tag value.public WriteCampaignRequest withTags(Map<String,String> tags)
A string-to-string map of key-value pairs that defines the tags to associate 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 defines the tags to associate with the campaign. Each tag
consists of a required tag key and an associated tag value.public WriteCampaignRequest addTagsEntry(String key, String value)
public WriteCampaignRequest clearTagsEntries()
public void setTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the campaign.
templateConfiguration
- The message template to use for the campaign.public TemplateConfiguration getTemplateConfiguration()
The message template to use for the campaign.
public WriteCampaignRequest withTemplateConfiguration(TemplateConfiguration templateConfiguration)
The message template to use for the campaign.
templateConfiguration
- The message template to use for the campaign.public void setTreatmentDescription(String treatmentDescription)
A custom description of a variation of the campaign to use for A/B testing.
treatmentDescription
- A custom description of a variation of the campaign to use for A/B testing.public String getTreatmentDescription()
A custom description of a variation of the campaign to use for A/B testing.
public WriteCampaignRequest withTreatmentDescription(String treatmentDescription)
A custom description of a variation of the campaign to use for A/B testing.
treatmentDescription
- A custom description of a variation of the campaign to use for A/B testing.public void setTreatmentName(String treatmentName)
The custom name of a variation of the campaign to use for A/B testing.
treatmentName
- The custom name of a variation of the campaign to use for A/B testing.public String getTreatmentName()
The custom name of a variation of the campaign to use for A/B testing.
public WriteCampaignRequest withTreatmentName(String treatmentName)
The custom name of a variation of the campaign to use for A/B testing.
treatmentName
- The custom name of a variation of the campaign to use for A/B testing.public String toString()
toString
in class Object
Object.toString()
public WriteCampaignRequest clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2019. All rights reserved.