7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
11#include <aws/pinpoint/model/CampaignState.h>
12#include <aws/pinpoint/model/CampaignHook.h>
13#include <aws/pinpoint/model/CampaignLimits.h>
14#include <aws/pinpoint/model/MessageConfiguration.h>
15#include <aws/pinpoint/model/Schedule.h>
16#include <aws/core/utils/memory/stl/AWSMap.h>
17#include <aws/pinpoint/model/TemplateConfiguration.h>
18#include <aws/pinpoint/model/TreatmentResource.h>
74 inline void SetApplicationId(
const char* value) { m_applicationIdHasBeenSet =
true; m_applicationId.assign(value); }
87 inline void SetArn(
Aws::String&& value) { m_arnHasBeenSet =
true; m_arn = std::move(value); }
88 inline void SetArn(
const char* value) { m_arnHasBeenSet =
true; m_arn.assign(value); }
102 inline void SetCreationDate(
const char* value) { m_creationDateHasBeenSet =
true; m_creationDate.assign(value); }
142 inline void SetDescription(
const char* value) { m_descriptionHasBeenSet =
true; m_description.assign(value); }
155 inline void SetHoldoutPercent(
int value) { m_holdoutPercentHasBeenSet =
true; m_holdoutPercent = value; }
181 inline void SetId(
const char* value) { m_idHasBeenSet =
true; m_id.assign(value); }
194 inline void SetIsPaused(
bool value) { m_isPausedHasBeenSet =
true; m_isPaused = value; }
206 inline void SetLastModifiedDate(
const char* value) { m_lastModifiedDateHasBeenSet =
true; m_lastModifiedDate.assign(value); }
244 inline void SetName(
const char* value) { m_nameHasBeenSet =
true; m_name.assign(value); }
271 inline void SetSegmentId(
const char* value) { m_segmentIdHasBeenSet =
true; m_segmentId.assign(value); }
283 inline void SetSegmentVersion(
int value) { m_segmentVersionHasBeenSet =
true; m_segmentVersion = value; }
317 inline CampaignResponse&
AddTags(
const char* key,
const char* value) { m_tagsHasBeenSet =
true; m_tags.emplace(key, value);
return *
this; }
340 inline void SetTreatmentDescription(
const char* value) { m_treatmentDescriptionHasBeenSet =
true; m_treatmentDescription.assign(value); }
356 inline void SetTreatmentName(
const char* value) { m_treatmentNameHasBeenSet =
true; m_treatmentName.assign(value); }
368 inline void SetVersion(
int value) { m_versionHasBeenSet =
true; m_version = value; }
380 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
386 bool m_additionalTreatmentsHasBeenSet =
false;
389 bool m_applicationIdHasBeenSet =
false;
392 bool m_arnHasBeenSet =
false;
395 bool m_creationDateHasBeenSet =
false;
398 bool m_customDeliveryConfigurationHasBeenSet =
false;
401 bool m_defaultStateHasBeenSet =
false;
404 bool m_descriptionHasBeenSet =
false;
406 int m_holdoutPercent;
407 bool m_holdoutPercentHasBeenSet =
false;
410 bool m_hookHasBeenSet =
false;
413 bool m_idHasBeenSet =
false;
416 bool m_isPausedHasBeenSet =
false;
419 bool m_lastModifiedDateHasBeenSet =
false;
422 bool m_limitsHasBeenSet =
false;
425 bool m_messageConfigurationHasBeenSet =
false;
428 bool m_nameHasBeenSet =
false;
431 bool m_scheduleHasBeenSet =
false;
434 bool m_segmentIdHasBeenSet =
false;
436 int m_segmentVersion;
437 bool m_segmentVersionHasBeenSet =
false;
440 bool m_stateHasBeenSet =
false;
443 bool m_tagsHasBeenSet =
false;
446 bool m_templateConfigurationHasBeenSet =
false;
449 bool m_treatmentDescriptionHasBeenSet =
false;
452 bool m_treatmentNameHasBeenSet =
false;
455 bool m_versionHasBeenSet =
false;
458 bool m_priorityHasBeenSet =
false;
bool MessageConfigurationHasBeenSet() const
const CampaignState & GetState() const
CampaignResponse & AddAdditionalTreatments(TreatmentResource &&value)
void SetHook(const CampaignHook &value)
bool NameHasBeenSet() const
CampaignResponse & WithCreationDate(const Aws::String &value)
CampaignResponse & WithApplicationId(const char *value)
CampaignResponse & WithCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
CampaignResponse & AddAdditionalTreatments(const TreatmentResource &value)
CampaignResponse & WithDefaultState(const CampaignState &value)
CampaignResponse & WithApplicationId(const Aws::String &value)
void SetId(const Aws::String &value)
CampaignResponse & AddTags(Aws::String &&key, const char *value)
CampaignResponse & AddTags(const char *key, const char *value)
CampaignResponse & WithDefaultState(CampaignState &&value)
const Aws::String & GetId() const
CampaignResponse & WithMessageConfiguration(const MessageConfiguration &value)
bool PriorityHasBeenSet() const
void SetArn(const Aws::String &value)
void SetCustomDeliveryConfiguration(const CustomDeliveryConfiguration &value)
bool TreatmentNameHasBeenSet() const
void SetSegmentId(const char *value)
const Aws::String & GetTreatmentDescription() const
CampaignResponse & WithCreationDate(Aws::String &&value)
void SetArn(const char *value)
CampaignResponse & WithTreatmentDescription(const Aws::String &value)
bool LimitsHasBeenSet() const
const Aws::Vector< TreatmentResource > & GetAdditionalTreatments() const
bool ArnHasBeenSet() const
bool CreationDateHasBeenSet() const
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
AWS_PINPOINT_API CampaignResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
CampaignResponse & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
const MessageConfiguration & GetMessageConfiguration() const
bool DefaultStateHasBeenSet() const
void SetTreatmentDescription(const char *value)
void SetMessageConfiguration(const MessageConfiguration &value)
void SetSegmentVersion(int value)
CampaignResponse & AddTags(const Aws::String &key, Aws::String &&value)
CampaignResponse & WithSchedule(Schedule &&value)
CampaignResponse & WithLastModifiedDate(const Aws::String &value)
CampaignResponse & WithAdditionalTreatments(Aws::Vector< TreatmentResource > &&value)
CampaignResponse & WithId(const char *value)
void SetPriority(int value)
void SetDefaultState(CampaignState &&value)
void SetId(const char *value)
bool IdHasBeenSet() const
const Aws::String & GetSegmentId() const
void SetSchedule(const Schedule &value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
CampaignResponse & WithTemplateConfiguration(const TemplateConfiguration &value)
void SetSegmentId(Aws::String &&value)
void SetDefaultState(const CampaignState &value)
CampaignResponse & WithId(Aws::String &&value)
const Aws::String & GetLastModifiedDate() const
CampaignResponse & WithSegmentId(const Aws::String &value)
CampaignResponse & WithApplicationId(Aws::String &&value)
void SetTemplateConfiguration(const TemplateConfiguration &value)
void SetMessageConfiguration(MessageConfiguration &&value)
bool TagsHasBeenSet() const
void SetLimits(const CampaignLimits &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CampaignResponse & WithSegmentId(const char *value)
void SetDescription(const char *value)
bool TemplateConfigurationHasBeenSet() const
void SetName(const char *value)
void SetDescription(Aws::String &&value)
int GetSegmentVersion() const
void SetDescription(const Aws::String &value)
CampaignResponse & WithArn(const Aws::String &value)
bool DescriptionHasBeenSet() const
void SetCreationDate(const Aws::String &value)
bool HoldoutPercentHasBeenSet() const
CampaignResponse & WithSegmentVersion(int value)
bool CustomDeliveryConfigurationHasBeenSet() const
CampaignResponse & WithLimits(CampaignLimits &&value)
void SetCreationDate(const char *value)
CampaignResponse & WithLimits(const CampaignLimits &value)
CampaignResponse & WithPriority(int value)
void SetTemplateConfiguration(TemplateConfiguration &&value)
CampaignResponse & WithHook(const CampaignHook &value)
void SetApplicationId(Aws::String &&value)
const CampaignHook & GetHook() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetAdditionalTreatments(Aws::Vector< TreatmentResource > &&value)
const Aws::String & GetApplicationId() const
CampaignResponse & WithTreatmentDescription(Aws::String &&value)
bool VersionHasBeenSet() const
const Aws::String & GetName() const
void SetApplicationId(const Aws::String &value)
void SetId(Aws::String &&value)
void SetCreationDate(Aws::String &&value)
void SetAdditionalTreatments(const Aws::Vector< TreatmentResource > &value)
bool StateHasBeenSet() const
void SetState(CampaignState &&value)
CampaignResponse & WithArn(const char *value)
const Schedule & GetSchedule() const
void SetIsPaused(bool value)
void SetTreatmentName(const Aws::String &value)
void SetState(const CampaignState &value)
CampaignResponse & WithState(const CampaignState &value)
CampaignResponse & WithTreatmentName(Aws::String &&value)
bool AdditionalTreatmentsHasBeenSet() const
CampaignResponse & WithTreatmentName(const Aws::String &value)
CampaignResponse & WithState(CampaignState &&value)
CampaignResponse & WithName(const Aws::String &value)
CampaignResponse & WithTreatmentDescription(const char *value)
CampaignResponse & WithVersion(int value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
const CampaignState & GetDefaultState() const
const Aws::String & GetArn() const
void SetLimits(CampaignLimits &&value)
void SetName(const Aws::String &value)
bool TreatmentDescriptionHasBeenSet() const
CampaignResponse & WithHoldoutPercent(int value)
CampaignResponse & WithSchedule(const Schedule &value)
void SetApplicationId(const char *value)
const TemplateConfiguration & GetTemplateConfiguration() const
CampaignResponse & WithArn(Aws::String &&value)
bool IsPausedHasBeenSet() const
void SetHook(CampaignHook &&value)
void SetLastModifiedDate(Aws::String &&value)
void SetVersion(int value)
CampaignResponse & WithMessageConfiguration(MessageConfiguration &&value)
void SetSegmentId(const Aws::String &value)
CampaignResponse & WithLastModifiedDate(const char *value)
AWS_PINPOINT_API CampaignResponse()
void SetTreatmentName(Aws::String &&value)
CampaignResponse & WithDescription(const Aws::String &value)
void SetTreatmentDescription(Aws::String &&value)
CampaignResponse & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetDescription() const
CampaignResponse & WithDescription(const char *value)
bool HookHasBeenSet() const
void SetLastModifiedDate(const char *value)
void SetTreatmentDescription(const Aws::String &value)
void SetTreatmentName(const char *value)
int GetHoldoutPercent() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
CampaignResponse & WithCustomDeliveryConfiguration(CustomDeliveryConfiguration &&value)
CampaignResponse & WithTemplateConfiguration(TemplateConfiguration &&value)
void SetName(Aws::String &&value)
const Aws::String & GetTreatmentName() const
CampaignResponse & AddTags(const Aws::String &key, const Aws::String &value)
bool ScheduleHasBeenSet() const
void SetLastModifiedDate(const Aws::String &value)
CampaignResponse & WithCreationDate(const char *value)
CampaignResponse & WithName(Aws::String &&value)
const Aws::String & GetCreationDate() const
CampaignResponse & WithName(const char *value)
CampaignResponse & WithSegmentId(Aws::String &&value)
CampaignResponse & AddTags(Aws::String &&key, const Aws::String &value)
CampaignResponse & WithDescription(Aws::String &&value)
CampaignResponse & WithId(const Aws::String &value)
bool ApplicationIdHasBeenSet() const
bool SegmentVersionHasBeenSet() const
CampaignResponse & WithHook(CampaignHook &&value)
const CampaignLimits & GetLimits() const
CampaignResponse & WithIsPaused(bool value)
void SetSchedule(Schedule &&value)
CampaignResponse & WithLastModifiedDate(Aws::String &&value)
CampaignResponse & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
bool LastModifiedDateHasBeenSet() const
CampaignResponse & AddTags(const char *key, Aws::String &&value)
void SetHoldoutPercent(int value)
CampaignResponse & WithTreatmentName(const char *value)
void SetArn(Aws::String &&value)
bool SegmentIdHasBeenSet() const
AWS_PINPOINT_API CampaignResponse(Aws::Utils::Json::JsonView jsonValue)
CampaignResponse & WithAdditionalTreatments(const Aws::Vector< TreatmentResource > &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