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>
58 template<
typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
59 void SetAdditionalTreatments(AdditionalTreatmentsT&& value) { m_additionalTreatmentsHasBeenSet =
true; m_additionalTreatments = std::forward<AdditionalTreatmentsT>(value); }
60 template<
typename AdditionalTreatmentsT = Aws::Vector<TreatmentResource>>
62 template<
typename AdditionalTreatmentsT = TreatmentResource>
63 CampaignResponse&
AddAdditionalTreatments(AdditionalTreatmentsT&& value) { m_additionalTreatmentsHasBeenSet =
true; m_additionalTreatments.emplace_back(std::forward<AdditionalTreatmentsT>(value));
return *
this; }
72 template<
typename ApplicationIdT = Aws::String>
73 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet =
true; m_applicationId = std::forward<ApplicationIdT>(value); }
74 template<
typename ApplicationIdT = Aws::String>
84 template<
typename ArnT = Aws::String>
85 void SetArn(ArnT&& value) { m_arnHasBeenSet =
true; m_arn = std::forward<ArnT>(value); }
86 template<
typename ArnT = Aws::String>
96 template<
typename CreationDateT = Aws::String>
97 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet =
true; m_creationDate = std::forward<CreationDateT>(value); }
98 template<
typename CreationDateT = Aws::String>
109 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
110 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet =
true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
111 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
122 template<
typename DefaultStateT = CampaignState>
123 void SetDefaultState(DefaultStateT&& value) { m_defaultStateHasBeenSet =
true; m_defaultState = std::forward<DefaultStateT>(value); }
124 template<
typename DefaultStateT = CampaignState>
134 template<
typename DescriptionT = Aws::String>
135 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
136 template<
typename DescriptionT = Aws::String>
147 inline void SetHoldoutPercent(
int value) { m_holdoutPercentHasBeenSet =
true; m_holdoutPercent = value; }
159 template<
typename HookT = CampaignHook>
160 void SetHook(HookT&& value) { m_hookHasBeenSet =
true; m_hook = std::forward<HookT>(value); }
161 template<
typename HookT = CampaignHook>
171 template<
typename IdT = Aws::String>
172 void SetId(IdT&& value) { m_idHasBeenSet =
true; m_id = std::forward<IdT>(value); }
173 template<
typename IdT = Aws::String>
184 inline void SetIsPaused(
bool value) { m_isPausedHasBeenSet =
true; m_isPaused = value; }
194 template<
typename LastModifiedDateT = Aws::String>
195 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet =
true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
196 template<
typename LastModifiedDateT = Aws::String>
206 template<
typename LimitsT = CampaignLimits>
207 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet =
true; m_limits = std::forward<LimitsT>(value); }
208 template<
typename LimitsT = CampaignLimits>
218 template<
typename MessageConfigurationT = MessageConfiguration>
219 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet =
true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
220 template<
typename MessageConfigurationT = MessageConfiguration>
230 template<
typename NameT = Aws::String>
231 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
232 template<
typename NameT = Aws::String>
242 template<
typename ScheduleT = Schedule>
243 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
244 template<
typename ScheduleT = Schedule>
255 template<
typename SegmentIdT = Aws::String>
256 void SetSegmentId(SegmentIdT&& value) { m_segmentIdHasBeenSet =
true; m_segmentId = std::forward<SegmentIdT>(value); }
257 template<
typename SegmentIdT = Aws::String>
267 inline void SetSegmentVersion(
int value) { m_segmentVersionHasBeenSet =
true; m_segmentVersion = value; }
277 template<
typename StateT = CampaignState>
278 void SetState(StateT&& value) { m_stateHasBeenSet =
true; m_state = std::forward<StateT>(value); }
279 template<
typename StateT = CampaignState>
291 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
292 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
293 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
295 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
297 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
307 template<
typename TemplateConfigurationT = TemplateConfiguration>
308 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet =
true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
309 template<
typename TemplateConfigurationT = TemplateConfiguration>
319 template<
typename TreatmentDescriptionT = Aws::String>
320 void SetTreatmentDescription(TreatmentDescriptionT&& value) { m_treatmentDescriptionHasBeenSet =
true; m_treatmentDescription = std::forward<TreatmentDescriptionT>(value); }
321 template<
typename TreatmentDescriptionT = Aws::String>
333 template<
typename TreatmentNameT = Aws::String>
334 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet =
true; m_treatmentName = std::forward<TreatmentNameT>(value); }
335 template<
typename TreatmentNameT = Aws::String>
345 inline void SetVersion(
int value) { m_versionHasBeenSet =
true; m_version = value; }
357 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
363 bool m_additionalTreatmentsHasBeenSet =
false;
366 bool m_applicationIdHasBeenSet =
false;
369 bool m_arnHasBeenSet =
false;
372 bool m_creationDateHasBeenSet =
false;
375 bool m_customDeliveryConfigurationHasBeenSet =
false;
378 bool m_defaultStateHasBeenSet =
false;
381 bool m_descriptionHasBeenSet =
false;
383 int m_holdoutPercent{0};
384 bool m_holdoutPercentHasBeenSet =
false;
387 bool m_hookHasBeenSet =
false;
390 bool m_idHasBeenSet =
false;
392 bool m_isPaused{
false};
393 bool m_isPausedHasBeenSet =
false;
396 bool m_lastModifiedDateHasBeenSet =
false;
398 CampaignLimits m_limits;
399 bool m_limitsHasBeenSet =
false;
401 MessageConfiguration m_messageConfiguration;
402 bool m_messageConfigurationHasBeenSet =
false;
405 bool m_nameHasBeenSet =
false;
408 bool m_scheduleHasBeenSet =
false;
411 bool m_segmentIdHasBeenSet =
false;
413 int m_segmentVersion{0};
414 bool m_segmentVersionHasBeenSet =
false;
416 CampaignState m_state;
417 bool m_stateHasBeenSet =
false;
420 bool m_tagsHasBeenSet =
false;
422 TemplateConfiguration m_templateConfiguration;
423 bool m_templateConfigurationHasBeenSet =
false;
426 bool m_treatmentDescriptionHasBeenSet =
false;
429 bool m_treatmentNameHasBeenSet =
false;
432 bool m_versionHasBeenSet =
false;
435 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