7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/pinpoint/model/CampaignHook.h>
12#include <aws/pinpoint/model/CampaignLimits.h>
13#include <aws/pinpoint/model/MessageConfiguration.h>
14#include <aws/pinpoint/model/Schedule.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/pinpoint/model/TemplateConfiguration.h>
17#include <aws/pinpoint/model/WriteTreatmentResource.h>
87 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
100 inline void SetHoldoutPercent(
int value) { m_holdoutPercentHasBeenSet =
true; m_holdoutPercent = value; }
125 inline void SetIsPaused(
bool value) { m_isPausedHasBeenSet =
true; m_isPaused = value; }
161 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
187 inline void SetSegmentId(
const char* value) { m_segmentIdHasBeenSet =
true; m_segmentId.assign(value); }
199 inline void SetSegmentVersion(
int value) { m_segmentVersionHasBeenSet =
true; m_segmentVersion = value; }
252 inline void SetTreatmentDescription(
const char* value) { m_treatmentDescriptionHasBeenSet =
true; m_treatmentDescription.assign(value); }
268 inline void SetTreatmentName(
const char* value) { m_treatmentNameHasBeenSet =
true; m_treatmentName.assign(value); }
282 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
288 bool m_additionalTreatmentsHasBeenSet =
false;
291 bool m_customDeliveryConfigurationHasBeenSet =
false;
294 bool m_descriptionHasBeenSet =
false;
296 int m_holdoutPercent;
297 bool m_holdoutPercentHasBeenSet =
false;
300 bool m_hookHasBeenSet =
false;
303 bool m_isPausedHasBeenSet =
false;
306 bool m_limitsHasBeenSet =
false;
309 bool m_messageConfigurationHasBeenSet =
false;
312 bool m_nameHasBeenSet =
false;
315 bool m_scheduleHasBeenSet =
false;
318 bool m_segmentIdHasBeenSet =
false;
320 int m_segmentVersion;
321 bool m_segmentVersionHasBeenSet =
false;
324 bool m_tagsHasBeenSet =
false;
327 bool m_templateConfigurationHasBeenSet =
false;
330 bool m_treatmentDescriptionHasBeenSet =
false;
333 bool m_treatmentNameHasBeenSet =
false;
336 bool m_priorityHasBeenSet =
false;
void SetMessageConfiguration(const MessageConfiguration &value)
void SetTreatmentDescription(Aws::String &&value)
void SetTreatmentName(const Aws::String &value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
WriteCampaignRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTreatmentName(Aws::String &&value)
WriteCampaignRequest & WithSegmentId(const Aws::String &value)
WriteCampaignRequest & WithSegmentId(Aws::String &&value)
WriteCampaignRequest & WithTemplateConfiguration(TemplateConfiguration &&value)
void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
WriteCampaignRequest & WithHook(CampaignHook &&value)
void SetMessageConfiguration(MessageConfiguration &&value)
void SetTreatmentDescription(const char *value)
bool NameHasBeenSet() const
bool CustomDeliveryConfigurationHasBeenSet() const
bool MessageConfigurationHasBeenSet() const
bool SegmentVersionHasBeenSet() const
void SetDescription(Aws::String &&value)
WriteCampaignRequest & AddTags(Aws::String &&key, const char *value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
void SetDescription(const char *value)
int GetSegmentVersion() const
bool IsPausedHasBeenSet() const
WriteCampaignRequest & WithSegmentId(const char *value)
void SetSegmentId(const Aws::String &value)
WriteCampaignRequest & WithTreatmentDescription(Aws::String &&value)
void SetName(const char *value)
WriteCampaignRequest & WithTemplateConfiguration(const TemplateConfiguration &value)
WriteCampaignRequest & AddAdditionalTreatments(const WriteTreatmentResource &value)
WriteCampaignRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetPriority(int value)
void SetName(const Aws::String &value)
WriteCampaignRequest & WithName(const Aws::String &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteCampaignRequest & WithHoldoutPercent(int value)
WriteCampaignRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetSchedule(Schedule &&value)
WriteCampaignRequest & WithLimits(CampaignLimits &&value)
WriteCampaignRequest & WithDescription(const char *value)
bool PriorityHasBeenSet() const
void SetIsPaused(bool value)
const MessageConfiguration & GetMessageConfiguration() const
WriteCampaignRequest & AddTags(const char *key, Aws::String &&value)
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
bool SegmentIdHasBeenSet() const
void SetLimits(const CampaignLimits &value)
void SetSchedule(const Schedule &value)
WriteCampaignRequest & WithMessageConfiguration(MessageConfiguration &&value)
WriteCampaignRequest & WithTreatmentName(Aws::String &&value)
AWS_PINPOINT_API WriteCampaignRequest(Aws::Utils::Json::JsonView jsonValue)
WriteCampaignRequest & WithAdditionalTreatments(Aws::Vector< WriteTreatmentResource > &&value)
AWS_PINPOINT_API WriteCampaignRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LimitsHasBeenSet() const
void SetHook(const CampaignHook &value)
void SetLimits(CampaignLimits &&value)
WriteCampaignRequest & WithSchedule(const Schedule &value)
void SetAdditionalTreatments(Aws::Vector< WriteTreatmentResource > &&value)
bool HoldoutPercentHasBeenSet() const
WriteCampaignRequest & WithHook(const CampaignHook &value)
WriteCampaignRequest & WithSegmentVersion(int value)
bool TreatmentDescriptionHasBeenSet() const
void SetTreatmentName(const char *value)
void SetSegmentId(Aws::String &&value)
void SetSegmentId(const char *value)
WriteCampaignRequest & WithTreatmentName(const char *value)
bool AdditionalTreatmentsHasBeenSet() const
bool TagsHasBeenSet() const
WriteCampaignRequest & WithCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
void SetAdditionalTreatments(const Aws::Vector< WriteTreatmentResource > &value)
bool ScheduleHasBeenSet() const
void SetDescription(const Aws::String &value)
void SetName(Aws::String &&value)
bool HookHasBeenSet() const
const Aws::Vector< WriteTreatmentResource > & GetAdditionalTreatments() const
WriteCampaignRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WriteCampaignRequest & WithIsPaused(bool value)
const Aws::String & GetSegmentId() const
const Aws::String & GetName() const
WriteCampaignRequest & WithLimits(const CampaignLimits &value)
const Aws::String & GetDescription() const
bool TemplateConfigurationHasBeenSet() const
WriteCampaignRequest & WithPriority(int value)
WriteCampaignRequest & WithName(const char *value)
WriteCampaignRequest & AddAdditionalTreatments(WriteTreatmentResource &&value)
bool TreatmentNameHasBeenSet() const
bool DescriptionHasBeenSet() const
WriteCampaignRequest & WithMessageConfiguration(const MessageConfiguration &value)
const Aws::String & GetTreatmentName() const
int GetHoldoutPercent() const
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetTreatmentDescription(const Aws::String &value)
void SetTemplateConfiguration(const TemplateConfiguration &value)
WriteCampaignRequest & WithName(Aws::String &&value)
WriteCampaignRequest & WithCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
WriteCampaignRequest & WithAdditionalTreatments(const Aws::Vector< WriteTreatmentResource > &value)
WriteCampaignRequest & WithDescription(Aws::String &&value)
WriteCampaignRequest & WithTreatmentDescription(const Aws::String &value)
void SetHoldoutPercent(int value)
const CampaignLimits & GetLimits() const
const Aws::String & GetTreatmentDescription() const
const Schedule & GetSchedule() const
WriteCampaignRequest & AddTags(const Aws::String &key, const Aws::String &value)
WriteCampaignRequest & WithTreatmentName(const Aws::String &value)
void SetHook(CampaignHook &&value)
WriteCampaignRequest & WithDescription(const Aws::String &value)
void SetSegmentVersion(int value)
const CampaignHook & GetHook() const
AWS_PINPOINT_API WriteCampaignRequest()
WriteCampaignRequest & WithSchedule(Schedule &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
WriteCampaignRequest & AddTags(const char *key, const char *value)
WriteCampaignRequest & WithTreatmentDescription(const char *value)
WriteCampaignRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue