7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/pinpoint/Pinpoint_EXPORTS.h>
11#include <aws/pinpoint/model/CampaignHook.h>
12#include <aws/pinpoint/model/CampaignLimits.h>
13#include <aws/pinpoint/model/CampaignState.h>
14#include <aws/pinpoint/model/CustomDeliveryConfiguration.h>
15#include <aws/pinpoint/model/MessageConfiguration.h>
16#include <aws/pinpoint/model/Schedule.h>
17#include <aws/pinpoint/model/TemplateConfiguration.h>
18#include <aws/pinpoint/model/TreatmentResource.h>
52 template <
typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
54 m_additionalTreatmentsHasBeenSet =
true;
55 m_additionalTreatments = std::forward<AdditionalTreatmentsT>(value);
57 template <
typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
62 template <
typename AdditionalTreatmentsT = TreatmentResource>
64 m_additionalTreatmentsHasBeenSet =
true;
65 m_additionalTreatments.emplace_back(std::forward<AdditionalTreatmentsT>(value));
76 template <
typename ApplicationIdT = Aws::String>
78 m_applicationIdHasBeenSet =
true;
79 m_applicationId = std::forward<ApplicationIdT>(value);
81 template <
typename ApplicationIdT = Aws::String>
94 template <
typename ArnT = Aws::String>
96 m_arnHasBeenSet =
true;
97 m_arn = std::forward<ArnT>(value);
99 template <
typename ArnT = Aws::String>
101 SetArn(std::forward<ArnT>(value));
112 template <
typename CreationDateT = Aws::String>
114 m_creationDateHasBeenSet =
true;
115 m_creationDate = std::forward<CreationDateT>(value);
117 template <
typename CreationDateT = Aws::String>
131 template <
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
133 m_customDeliveryConfigurationHasBeenSet =
true;
134 m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value);
136 template <
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
150 template <
typename DefaultStateT = CampaignState>
152 m_defaultStateHasBeenSet =
true;
153 m_defaultState = std::forward<DefaultStateT>(value);
155 template <
typename DefaultStateT = CampaignState>
168 template <
typename DescriptionT = Aws::String>
170 m_descriptionHasBeenSet =
true;
171 m_description = std::forward<DescriptionT>(value);
173 template <
typename DescriptionT = Aws::String>
188 m_holdoutPercentHasBeenSet =
true;
189 m_holdoutPercent = value;
205 template <
typename HookT = CampaignHook>
207 m_hookHasBeenSet =
true;
208 m_hook = std::forward<HookT>(value);
210 template <
typename HookT = CampaignHook>
212 SetHook(std::forward<HookT>(value));
223 template <
typename IdT = Aws::String>
225 m_idHasBeenSet =
true;
226 m_id = std::forward<IdT>(value);
228 template <
typename IdT = Aws::String>
230 SetId(std::forward<IdT>(value));
243 m_isPausedHasBeenSet =
true;
258 template <
typename LastModifiedDateT = Aws::String>
260 m_lastModifiedDateHasBeenSet =
true;
261 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
263 template <
typename LastModifiedDateT = Aws::String>
276 template <
typename LimitsT = CampaignLimits>
278 m_limitsHasBeenSet =
true;
279 m_limits = std::forward<LimitsT>(value);
281 template <
typename LimitsT = CampaignLimits>
294 template <
typename MessageConfigurationT = MessageConfiguration>
296 m_messageConfigurationHasBeenSet =
true;
297 m_messageConfiguration = std::forward<MessageConfigurationT>(value);
299 template <
typename MessageConfigurationT = MessageConfiguration>
312 template <
typename NameT = Aws::String>
314 m_nameHasBeenSet =
true;
315 m_name = std::forward<NameT>(value);
317 template <
typename NameT = Aws::String>
319 SetName(std::forward<NameT>(value));
330 template <
typename ScheduleT = Schedule>
332 m_scheduleHasBeenSet =
true;
333 m_schedule = std::forward<ScheduleT>(value);
335 template <
typename ScheduleT = Schedule>
349 template <
typename SegmentIdT = Aws::String>
351 m_segmentIdHasBeenSet =
true;
352 m_segmentId = std::forward<SegmentIdT>(value);
354 template <
typename SegmentIdT = Aws::String>
368 m_segmentVersionHasBeenSet =
true;
369 m_segmentVersion = value;
383 template <
typename StateT = CampaignState>
385 m_stateHasBeenSet =
true;
386 m_state = std::forward<StateT>(value);
388 template <
typename StateT = CampaignState>
390 SetState(std::forward<StateT>(value));
403 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
405 m_tagsHasBeenSet =
true;
406 m_tags = std::forward<TagsT>(value);
408 template <
typename TagsT = Aws::Map<Aws::String, Aws::String>>
410 SetTags(std::forward<TagsT>(value));
413 template <
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
415 m_tagsHasBeenSet =
true;
416 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
427 template <
typename TemplateConfigurationT = TemplateConfiguration>
429 m_templateConfigurationHasBeenSet =
true;
430 m_templateConfiguration = std::forward<TemplateConfigurationT>(value);
432 template <
typename TemplateConfigurationT = TemplateConfiguration>
445 template <
typename TreatmentDescriptionT = Aws::String>
447 m_treatmentDescriptionHasBeenSet =
true;
448 m_treatmentDescription = std::forward<TreatmentDescriptionT>(value);
450 template <
typename TreatmentDescriptionT = Aws::String>
465 template <
typename TreatmentNameT = Aws::String>
467 m_treatmentNameHasBeenSet =
true;
468 m_treatmentName = std::forward<TreatmentNameT>(value);
470 template <
typename TreatmentNameT = Aws::String>
484 m_versionHasBeenSet =
true;
502 m_priorityHasBeenSet =
true;
512 bool m_additionalTreatmentsHasBeenSet =
false;
515 bool m_applicationIdHasBeenSet =
false;
518 bool m_arnHasBeenSet =
false;
521 bool m_creationDateHasBeenSet =
false;
524 bool m_customDeliveryConfigurationHasBeenSet =
false;
527 bool m_defaultStateHasBeenSet =
false;
530 bool m_descriptionHasBeenSet =
false;
532 int m_holdoutPercent{0};
533 bool m_holdoutPercentHasBeenSet =
false;
536 bool m_hookHasBeenSet =
false;
539 bool m_idHasBeenSet =
false;
541 bool m_isPaused{
false};
542 bool m_isPausedHasBeenSet =
false;
545 bool m_lastModifiedDateHasBeenSet =
false;
547 CampaignLimits m_limits;
548 bool m_limitsHasBeenSet =
false;
550 MessageConfiguration m_messageConfiguration;
551 bool m_messageConfigurationHasBeenSet =
false;
554 bool m_nameHasBeenSet =
false;
557 bool m_scheduleHasBeenSet =
false;
560 bool m_segmentIdHasBeenSet =
false;
562 int m_segmentVersion{0};
563 bool m_segmentVersionHasBeenSet =
false;
565 CampaignState m_state;
566 bool m_stateHasBeenSet =
false;
569 bool m_tagsHasBeenSet =
false;
571 TemplateConfiguration m_templateConfiguration;
572 bool m_templateConfigurationHasBeenSet =
false;
575 bool m_treatmentDescriptionHasBeenSet =
false;
578 bool m_treatmentNameHasBeenSet =
false;
581 bool m_versionHasBeenSet =
false;
584 bool m_priorityHasBeenSet =
false;
bool MessageConfigurationHasBeenSet() const
CampaignResponse & WithId(IdT &&value)
const CampaignState & GetState() const
bool NameHasBeenSet() const
AWS_PINPOINT_API CampaignResponse()=default
const Aws::String & GetId() const
bool PriorityHasBeenSet() const
CampaignResponse & WithDescription(DescriptionT &&value)
bool TreatmentNameHasBeenSet() const
void SetTags(TagsT &&value)
const Aws::String & GetTreatmentDescription() const
void SetDescription(DescriptionT &&value)
void SetAdditionalTreatments(AdditionalTreatmentsT &&value)
void SetSchedule(ScheduleT &&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)
const MessageConfiguration & GetMessageConfiguration() const
bool DefaultStateHasBeenSet() const
void SetLastModifiedDate(LastModifiedDateT &&value)
void SetSegmentVersion(int value)
void SetArn(ArnT &&value)
void SetLimits(LimitsT &&value)
void SetPriority(int value)
bool IdHasBeenSet() const
const Aws::String & GetSegmentId() const
void SetMessageConfiguration(MessageConfigurationT &&value)
const Aws::String & GetLastModifiedDate() const
void SetName(NameT &&value)
CampaignResponse & WithMessageConfiguration(MessageConfigurationT &&value)
bool TagsHasBeenSet() const
CampaignResponse & WithTemplateConfiguration(TemplateConfigurationT &&value)
CampaignResponse & WithTreatmentDescription(TreatmentDescriptionT &&value)
bool TemplateConfigurationHasBeenSet() const
void SetTreatmentDescription(TreatmentDescriptionT &&value)
int GetSegmentVersion() const
bool DescriptionHasBeenSet() const
bool HoldoutPercentHasBeenSet() const
CampaignResponse & WithSegmentVersion(int value)
bool CustomDeliveryConfigurationHasBeenSet() const
CampaignResponse & WithPriority(int value)
CampaignResponse & WithTreatmentName(TreatmentNameT &&value)
CampaignResponse & WithLimits(LimitsT &&value)
const CampaignHook & GetHook() const
CampaignResponse & WithTags(TagsT &&value)
CampaignResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CampaignResponse & WithSegmentId(SegmentIdT &&value)
const Aws::String & GetApplicationId() const
void SetCreationDate(CreationDateT &&value)
bool VersionHasBeenSet() const
const Aws::String & GetName() const
bool StateHasBeenSet() const
CampaignResponse & WithName(NameT &&value)
const Schedule & GetSchedule() const
void SetIsPaused(bool value)
bool AdditionalTreatmentsHasBeenSet() const
void SetDefaultState(DefaultStateT &&value)
CampaignResponse & WithState(StateT &&value)
CampaignResponse & WithVersion(int value)
const CampaignState & GetDefaultState() const
const Aws::String & GetArn() const
void SetApplicationId(ApplicationIdT &&value)
bool TreatmentDescriptionHasBeenSet() const
CampaignResponse & WithHoldoutPercent(int value)
CampaignResponse & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
bool IsPausedHasBeenSet() const
CampaignResponse & WithSchedule(ScheduleT &&value)
void SetVersion(int value)
void SetHook(HookT &&value)
CampaignResponse & WithApplicationId(ApplicationIdT &&value)
void SetState(StateT &&value)
CampaignResponse & WithAdditionalTreatments(AdditionalTreatmentsT &&value)
const Aws::String & GetDescription() const
void SetTemplateConfiguration(TemplateConfigurationT &&value)
bool HookHasBeenSet() const
CampaignResponse & WithDefaultState(DefaultStateT &&value)
int GetHoldoutPercent() const
CampaignResponse & WithArn(ArnT &&value)
CampaignResponse & WithCreationDate(CreationDateT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTreatmentName() const
bool ScheduleHasBeenSet() const
const Aws::String & GetCreationDate() const
void SetSegmentId(SegmentIdT &&value)
bool ApplicationIdHasBeenSet() const
CampaignResponse & AddAdditionalTreatments(AdditionalTreatmentsT &&value)
bool SegmentVersionHasBeenSet() const
const CampaignLimits & GetLimits() const
CampaignResponse & WithIsPaused(bool value)
CampaignResponse & WithHook(HookT &&value)
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
void SetTreatmentName(TreatmentNameT &&value)
bool LastModifiedDateHasBeenSet() const
void SetHoldoutPercent(int value)
bool SegmentIdHasBeenSet() const
AWS_PINPOINT_API CampaignResponse(Aws::Utils::Json::JsonView jsonValue)
CampaignResponse & WithLastModifiedDate(LastModifiedDateT &&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