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>
57 template<
typename AdditionalTreatmentsT = Aws::Vector<WriteTreatmentResource>>
58 void SetAdditionalTreatments(AdditionalTreatmentsT&& value) { m_additionalTreatmentsHasBeenSet =
true; m_additionalTreatments = std::forward<AdditionalTreatmentsT>(value); }
59 template<
typename AdditionalTreatmentsT = Aws::Vector<WriteTreatmentResource>>
61 template<
typename AdditionalTreatmentsT = WriteTreatmentResource>
73 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
74 void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT&& value) { m_customDeliveryConfigurationHasBeenSet =
true; m_customDeliveryConfiguration = std::forward<CustomDeliveryConfigurationT>(value); }
75 template<
typename CustomDeliveryConfigurationT = CustomDeliveryConfiguration>
85 template<
typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet =
true; m_description = std::forward<DescriptionT>(value); }
87 template<
typename DescriptionT = Aws::String>
98 inline void SetHoldoutPercent(
int value) { m_holdoutPercentHasBeenSet =
true; m_holdoutPercent = value; }
110 template<
typename HookT = CampaignHook>
111 void SetHook(HookT&& value) { m_hookHasBeenSet =
true; m_hook = std::forward<HookT>(value); }
112 template<
typename HookT = CampaignHook>
123 inline void SetIsPaused(
bool value) { m_isPausedHasBeenSet =
true; m_isPaused = value; }
133 template<
typename LimitsT = CampaignLimits>
134 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet =
true; m_limits = std::forward<LimitsT>(value); }
135 template<
typename LimitsT = CampaignLimits>
145 template<
typename MessageConfigurationT = MessageConfiguration>
146 void SetMessageConfiguration(MessageConfigurationT&& value) { m_messageConfigurationHasBeenSet =
true; m_messageConfiguration = std::forward<MessageConfigurationT>(value); }
147 template<
typename MessageConfigurationT = MessageConfiguration>
157 template<
typename NameT = Aws::String>
158 void SetName(NameT&& value) { m_nameHasBeenSet =
true; m_name = std::forward<NameT>(value); }
159 template<
typename NameT = Aws::String>
169 template<
typename ScheduleT = Schedule>
170 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet =
true; m_schedule = std::forward<ScheduleT>(value); }
171 template<
typename ScheduleT = Schedule>
181 template<
typename SegmentIdT = Aws::String>
182 void SetSegmentId(SegmentIdT&& value) { m_segmentIdHasBeenSet =
true; m_segmentId = std::forward<SegmentIdT>(value); }
183 template<
typename SegmentIdT = Aws::String>
193 inline void SetSegmentVersion(
int value) { m_segmentVersionHasBeenSet =
true; m_segmentVersion = value; }
213 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
214 void SetTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags = std::forward<TagsT>(value); }
215 template<
typename TagsT = Aws::Map<Aws::String, Aws::String>>
217 template<
typename TagsKeyT = Aws::String,
typename TagsValueT = Aws::String>
219 m_tagsHasBeenSet =
true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
return *
this;
229 template<
typename TemplateConfigurationT = TemplateConfiguration>
230 void SetTemplateConfiguration(TemplateConfigurationT&& value) { m_templateConfigurationHasBeenSet =
true; m_templateConfiguration = std::forward<TemplateConfigurationT>(value); }
231 template<
typename TemplateConfigurationT = TemplateConfiguration>
241 template<
typename TreatmentDescriptionT = Aws::String>
242 void SetTreatmentDescription(TreatmentDescriptionT&& value) { m_treatmentDescriptionHasBeenSet =
true; m_treatmentDescription = std::forward<TreatmentDescriptionT>(value); }
243 template<
typename TreatmentDescriptionT = Aws::String>
255 template<
typename TreatmentNameT = Aws::String>
256 void SetTreatmentName(TreatmentNameT&& value) { m_treatmentNameHasBeenSet =
true; m_treatmentName = std::forward<TreatmentNameT>(value); }
257 template<
typename TreatmentNameT = Aws::String>
269 inline void SetPriority(
int value) { m_priorityHasBeenSet =
true; m_priority = value; }
275 bool m_additionalTreatmentsHasBeenSet =
false;
278 bool m_customDeliveryConfigurationHasBeenSet =
false;
281 bool m_descriptionHasBeenSet =
false;
283 int m_holdoutPercent{0};
284 bool m_holdoutPercentHasBeenSet =
false;
287 bool m_hookHasBeenSet =
false;
289 bool m_isPaused{
false};
290 bool m_isPausedHasBeenSet =
false;
292 CampaignLimits m_limits;
293 bool m_limitsHasBeenSet =
false;
295 MessageConfiguration m_messageConfiguration;
296 bool m_messageConfigurationHasBeenSet =
false;
299 bool m_nameHasBeenSet =
false;
302 bool m_scheduleHasBeenSet =
false;
305 bool m_segmentIdHasBeenSet =
false;
307 int m_segmentVersion{0};
308 bool m_segmentVersionHasBeenSet =
false;
311 bool m_tagsHasBeenSet =
false;
313 TemplateConfiguration m_templateConfiguration;
314 bool m_templateConfigurationHasBeenSet =
false;
317 bool m_treatmentDescriptionHasBeenSet =
false;
320 bool m_treatmentNameHasBeenSet =
false;
323 bool m_priorityHasBeenSet =
false;
void SetCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
void SetTreatmentName(TreatmentNameT &&value)
WriteCampaignRequest & WithMessageConfiguration(MessageConfigurationT &&value)
void SetHook(HookT &&value)
void SetTags(TagsT &&value)
bool NameHasBeenSet() const
bool CustomDeliveryConfigurationHasBeenSet() const
void SetSegmentId(SegmentIdT &&value)
WriteCampaignRequest & WithCustomDeliveryConfiguration(CustomDeliveryConfigurationT &&value)
bool MessageConfigurationHasBeenSet() const
bool SegmentVersionHasBeenSet() const
void SetLimits(LimitsT &&value)
int GetSegmentVersion() const
bool IsPausedHasBeenSet() const
void SetTemplateConfiguration(TemplateConfigurationT &&value)
void SetPriority(int value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteCampaignRequest & WithHoldoutPercent(int value)
WriteCampaignRequest & AddAdditionalTreatments(AdditionalTreatmentsT &&value)
bool PriorityHasBeenSet() const
void SetIsPaused(bool value)
const MessageConfiguration & GetMessageConfiguration() const
const CustomDeliveryConfiguration & GetCustomDeliveryConfiguration() const
bool SegmentIdHasBeenSet() const
WriteCampaignRequest & WithTemplateConfiguration(TemplateConfigurationT &&value)
WriteCampaignRequest & WithTreatmentDescription(TreatmentDescriptionT &&value)
AWS_PINPOINT_API WriteCampaignRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API WriteCampaignRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LimitsHasBeenSet() const
bool HoldoutPercentHasBeenSet() const
WriteCampaignRequest & WithTreatmentName(TreatmentNameT &&value)
WriteCampaignRequest & WithSegmentVersion(int value)
bool TreatmentDescriptionHasBeenSet() const
bool AdditionalTreatmentsHasBeenSet() const
void SetAdditionalTreatments(AdditionalTreatmentsT &&value)
bool TagsHasBeenSet() const
WriteCampaignRequest & WithAdditionalTreatments(AdditionalTreatmentsT &&value)
bool ScheduleHasBeenSet() const
WriteCampaignRequest & WithTags(TagsT &&value)
bool HookHasBeenSet() const
const Aws::Vector< WriteTreatmentResource > & GetAdditionalTreatments() const
const Aws::Map< Aws::String, Aws::String > & GetTags() const
WriteCampaignRequest & WithIsPaused(bool value)
const Aws::String & GetSegmentId() const
const Aws::String & GetName() const
const Aws::String & GetDescription() const
WriteCampaignRequest & WithHook(HookT &&value)
bool TemplateConfigurationHasBeenSet() const
WriteCampaignRequest & WithPriority(int value)
void SetSchedule(ScheduleT &&value)
bool TreatmentNameHasBeenSet() const
WriteCampaignRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
bool DescriptionHasBeenSet() const
const Aws::String & GetTreatmentName() const
void SetMessageConfiguration(MessageConfigurationT &&value)
int GetHoldoutPercent() const
void SetDescription(DescriptionT &&value)
WriteCampaignRequest & WithSchedule(ScheduleT &&value)
WriteCampaignRequest & WithLimits(LimitsT &&value)
AWS_PINPOINT_API WriteCampaignRequest()=default
void SetHoldoutPercent(int value)
const CampaignLimits & GetLimits() const
const Aws::String & GetTreatmentDescription() const
const Schedule & GetSchedule() const
WriteCampaignRequest & WithSegmentId(SegmentIdT &&value)
void SetName(NameT &&value)
void SetSegmentVersion(int value)
const CampaignHook & GetHook() const
void SetTreatmentDescription(TreatmentDescriptionT &&value)
WriteCampaignRequest & WithDescription(DescriptionT &&value)
const TemplateConfiguration & GetTemplateConfiguration() const
WriteCampaignRequest & WithName(NameT &&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