AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
WriteJourneyRequest.h
1
6#pragma once
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/Activity.h>
12#include <aws/pinpoint/model/ClosedDays.h>
13#include <aws/pinpoint/model/JourneyChannelSettings.h>
14#include <aws/pinpoint/model/JourneyLimits.h>
15#include <aws/pinpoint/model/JourneySchedule.h>
16#include <aws/pinpoint/model/OpenHours.h>
17#include <aws/pinpoint/model/QuietTime.h>
18#include <aws/pinpoint/model/StartCondition.h>
19#include <aws/pinpoint/model/State.h>
20#include <aws/pinpoint/model/__TimezoneEstimationMethodsElement.h>
21
22#include <utility>
23
24namespace Aws {
25namespace Utils {
26namespace Json {
27class JsonValue;
28class JsonView;
29} // namespace Json
30} // namespace Utils
31namespace Pinpoint {
32namespace Model {
33
41 public:
42 AWS_PINPOINT_API WriteJourneyRequest() = default;
45 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
55 inline const Aws::Map<Aws::String, Activity>& GetActivities() const { return m_activities; }
56 inline bool ActivitiesHasBeenSet() const { return m_activitiesHasBeenSet; }
57 template <typename ActivitiesT = Aws::Map<Aws::String, Activity>>
58 void SetActivities(ActivitiesT&& value) {
59 m_activitiesHasBeenSet = true;
60 m_activities = std::forward<ActivitiesT>(value);
61 }
62 template <typename ActivitiesT = Aws::Map<Aws::String, Activity>>
63 WriteJourneyRequest& WithActivities(ActivitiesT&& value) {
64 SetActivities(std::forward<ActivitiesT>(value));
65 return *this;
66 }
67 template <typename ActivitiesKeyT = Aws::String, typename ActivitiesValueT = Activity>
68 WriteJourneyRequest& AddActivities(ActivitiesKeyT&& key, ActivitiesValueT&& value) {
69 m_activitiesHasBeenSet = true;
70 m_activities.emplace(std::forward<ActivitiesKeyT>(key), std::forward<ActivitiesValueT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
80 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
81 template <typename CreationDateT = Aws::String>
82 void SetCreationDate(CreationDateT&& value) {
83 m_creationDateHasBeenSet = true;
84 m_creationDate = std::forward<CreationDateT>(value);
85 }
86 template <typename CreationDateT = Aws::String>
87 WriteJourneyRequest& WithCreationDate(CreationDateT&& value) {
88 SetCreationDate(std::forward<CreationDateT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
98 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
99 template <typename LastModifiedDateT = Aws::String>
100 void SetLastModifiedDate(LastModifiedDateT&& value) {
101 m_lastModifiedDateHasBeenSet = true;
102 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
103 }
104 template <typename LastModifiedDateT = Aws::String>
105 WriteJourneyRequest& WithLastModifiedDate(LastModifiedDateT&& value) {
106 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
107 return *this;
108 }
110
112
115 inline const JourneyLimits& GetLimits() const { return m_limits; }
116 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
117 template <typename LimitsT = JourneyLimits>
118 void SetLimits(LimitsT&& value) {
119 m_limitsHasBeenSet = true;
120 m_limits = std::forward<LimitsT>(value);
121 }
122 template <typename LimitsT = JourneyLimits>
123 WriteJourneyRequest& WithLimits(LimitsT&& value) {
124 SetLimits(std::forward<LimitsT>(value));
125 return *this;
126 }
128
130
135 inline bool GetLocalTime() const { return m_localTime; }
136 inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; }
137 inline void SetLocalTime(bool value) {
138 m_localTimeHasBeenSet = true;
139 m_localTime = value;
140 }
141 inline WriteJourneyRequest& WithLocalTime(bool value) {
142 SetLocalTime(value);
143 return *this;
144 }
146
148
153 inline const Aws::String& GetName() const { return m_name; }
154 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
155 template <typename NameT = Aws::String>
156 void SetName(NameT&& value) {
157 m_nameHasBeenSet = true;
158 m_name = std::forward<NameT>(value);
159 }
160 template <typename NameT = Aws::String>
162 SetName(std::forward<NameT>(value));
163 return *this;
164 }
166
168
180 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
181 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
182 template <typename QuietTimeT = QuietTime>
183 void SetQuietTime(QuietTimeT&& value) {
184 m_quietTimeHasBeenSet = true;
185 m_quietTime = std::forward<QuietTimeT>(value);
186 }
187 template <typename QuietTimeT = QuietTime>
188 WriteJourneyRequest& WithQuietTime(QuietTimeT&& value) {
189 SetQuietTime(std::forward<QuietTimeT>(value));
190 return *this;
191 }
193
195
199 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
200 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
201 template <typename RefreshFrequencyT = Aws::String>
202 void SetRefreshFrequency(RefreshFrequencyT&& value) {
203 m_refreshFrequencyHasBeenSet = true;
204 m_refreshFrequency = std::forward<RefreshFrequencyT>(value);
205 }
206 template <typename RefreshFrequencyT = Aws::String>
207 WriteJourneyRequest& WithRefreshFrequency(RefreshFrequencyT&& value) {
208 SetRefreshFrequency(std::forward<RefreshFrequencyT>(value));
209 return *this;
210 }
212
214
217 inline const JourneySchedule& GetSchedule() const { return m_schedule; }
218 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
219 template <typename ScheduleT = JourneySchedule>
220 void SetSchedule(ScheduleT&& value) {
221 m_scheduleHasBeenSet = true;
222 m_schedule = std::forward<ScheduleT>(value);
223 }
224 template <typename ScheduleT = JourneySchedule>
225 WriteJourneyRequest& WithSchedule(ScheduleT&& value) {
226 SetSchedule(std::forward<ScheduleT>(value));
227 return *this;
228 }
230
232
237 inline const Aws::String& GetStartActivity() const { return m_startActivity; }
238 inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; }
239 template <typename StartActivityT = Aws::String>
240 void SetStartActivity(StartActivityT&& value) {
241 m_startActivityHasBeenSet = true;
242 m_startActivity = std::forward<StartActivityT>(value);
243 }
244 template <typename StartActivityT = Aws::String>
245 WriteJourneyRequest& WithStartActivity(StartActivityT&& value) {
246 SetStartActivity(std::forward<StartActivityT>(value));
247 return *this;
248 }
250
252
255 inline const StartCondition& GetStartCondition() const { return m_startCondition; }
256 inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; }
257 template <typename StartConditionT = StartCondition>
258 void SetStartCondition(StartConditionT&& value) {
259 m_startConditionHasBeenSet = true;
260 m_startCondition = std::forward<StartConditionT>(value);
261 }
262 template <typename StartConditionT = StartCondition>
263 WriteJourneyRequest& WithStartCondition(StartConditionT&& value) {
264 SetStartCondition(std::forward<StartConditionT>(value));
265 return *this;
266 }
268
270
281 inline State GetState() const { return m_state; }
282 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
283 inline void SetState(State value) {
284 m_stateHasBeenSet = true;
285 m_state = value;
286 }
288 SetState(value);
289 return *this;
290 }
292
294
298 inline bool GetWaitForQuietTime() const { return m_waitForQuietTime; }
299 inline bool WaitForQuietTimeHasBeenSet() const { return m_waitForQuietTimeHasBeenSet; }
300 inline void SetWaitForQuietTime(bool value) {
301 m_waitForQuietTimeHasBeenSet = true;
302 m_waitForQuietTime = value;
303 }
305 SetWaitForQuietTime(value);
306 return *this;
307 }
309
311
315 inline bool GetRefreshOnSegmentUpdate() const { return m_refreshOnSegmentUpdate; }
316 inline bool RefreshOnSegmentUpdateHasBeenSet() const { return m_refreshOnSegmentUpdateHasBeenSet; }
317 inline void SetRefreshOnSegmentUpdate(bool value) {
318 m_refreshOnSegmentUpdateHasBeenSet = true;
319 m_refreshOnSegmentUpdate = value;
320 }
323 return *this;
324 }
326
328
331 inline const JourneyChannelSettings& GetJourneyChannelSettings() const { return m_journeyChannelSettings; }
332 inline bool JourneyChannelSettingsHasBeenSet() const { return m_journeyChannelSettingsHasBeenSet; }
333 template <typename JourneyChannelSettingsT = JourneyChannelSettings>
334 void SetJourneyChannelSettings(JourneyChannelSettingsT&& value) {
335 m_journeyChannelSettingsHasBeenSet = true;
336 m_journeyChannelSettings = std::forward<JourneyChannelSettingsT>(value);
337 }
338 template <typename JourneyChannelSettingsT = JourneyChannelSettings>
339 WriteJourneyRequest& WithJourneyChannelSettings(JourneyChannelSettingsT&& value) {
340 SetJourneyChannelSettings(std::forward<JourneyChannelSettingsT>(value));
341 return *this;
342 }
344
346
350 inline bool GetSendingSchedule() const { return m_sendingSchedule; }
351 inline bool SendingScheduleHasBeenSet() const { return m_sendingScheduleHasBeenSet; }
352 inline void SetSendingSchedule(bool value) {
353 m_sendingScheduleHasBeenSet = true;
354 m_sendingSchedule = value;
355 }
357 SetSendingSchedule(value);
358 return *this;
359 }
361
363
367 inline const OpenHours& GetOpenHours() const { return m_openHours; }
368 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
369 template <typename OpenHoursT = OpenHours>
370 void SetOpenHours(OpenHoursT&& value) {
371 m_openHoursHasBeenSet = true;
372 m_openHours = std::forward<OpenHoursT>(value);
373 }
374 template <typename OpenHoursT = OpenHours>
375 WriteJourneyRequest& WithOpenHours(OpenHoursT&& value) {
376 SetOpenHours(std::forward<OpenHoursT>(value));
377 return *this;
378 }
380
382
386 inline const ClosedDays& GetClosedDays() const { return m_closedDays; }
387 inline bool ClosedDaysHasBeenSet() const { return m_closedDaysHasBeenSet; }
388 template <typename ClosedDaysT = ClosedDays>
389 void SetClosedDays(ClosedDaysT&& value) {
390 m_closedDaysHasBeenSet = true;
391 m_closedDays = std::forward<ClosedDaysT>(value);
392 }
393 template <typename ClosedDaysT = ClosedDays>
394 WriteJourneyRequest& WithClosedDays(ClosedDaysT&& value) {
395 SetClosedDays(std::forward<ClosedDaysT>(value));
396 return *this;
397 }
399
401
414 inline const Aws::Vector<__TimezoneEstimationMethodsElement>& GetTimezoneEstimationMethods() const { return m_timezoneEstimationMethods; }
415 inline bool TimezoneEstimationMethodsHasBeenSet() const { return m_timezoneEstimationMethodsHasBeenSet; }
416 template <typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
417 void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) {
418 m_timezoneEstimationMethodsHasBeenSet = true;
419 m_timezoneEstimationMethods = std::forward<TimezoneEstimationMethodsT>(value);
420 }
421 template <typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
422 WriteJourneyRequest& WithTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) {
423 SetTimezoneEstimationMethods(std::forward<TimezoneEstimationMethodsT>(value));
424 return *this;
425 }
427 m_timezoneEstimationMethodsHasBeenSet = true;
428 m_timezoneEstimationMethods.push_back(value);
429 return *this;
430 }
432 private:
434
435 Aws::String m_creationDate;
436
437 Aws::String m_lastModifiedDate;
438
439 JourneyLimits m_limits;
440
441 bool m_localTime{false};
442
443 Aws::String m_name;
444
445 QuietTime m_quietTime;
446
447 Aws::String m_refreshFrequency;
448
449 JourneySchedule m_schedule;
450
451 Aws::String m_startActivity;
452
453 StartCondition m_startCondition;
454
455 State m_state{State::NOT_SET};
456
457 bool m_waitForQuietTime{false};
458
459 bool m_refreshOnSegmentUpdate{false};
460
461 JourneyChannelSettings m_journeyChannelSettings;
462
463 bool m_sendingSchedule{false};
464
465 OpenHours m_openHours;
466
467 ClosedDays m_closedDays;
468
469 Aws::Vector<__TimezoneEstimationMethodsElement> m_timezoneEstimationMethods;
470 bool m_activitiesHasBeenSet = false;
471 bool m_creationDateHasBeenSet = false;
472 bool m_lastModifiedDateHasBeenSet = false;
473 bool m_limitsHasBeenSet = false;
474 bool m_localTimeHasBeenSet = false;
475 bool m_nameHasBeenSet = false;
476 bool m_quietTimeHasBeenSet = false;
477 bool m_refreshFrequencyHasBeenSet = false;
478 bool m_scheduleHasBeenSet = false;
479 bool m_startActivityHasBeenSet = false;
480 bool m_startConditionHasBeenSet = false;
481 bool m_stateHasBeenSet = false;
482 bool m_waitForQuietTimeHasBeenSet = false;
483 bool m_refreshOnSegmentUpdateHasBeenSet = false;
484 bool m_journeyChannelSettingsHasBeenSet = false;
485 bool m_sendingScheduleHasBeenSet = false;
486 bool m_openHoursHasBeenSet = false;
487 bool m_closedDaysHasBeenSet = false;
488 bool m_timezoneEstimationMethodsHasBeenSet = false;
489};
490
491} // namespace Model
492} // namespace Pinpoint
493} // namespace Aws
WriteJourneyRequest & WithQuietTime(QuietTimeT &&value)
WriteJourneyRequest & WithSendingSchedule(bool value)
WriteJourneyRequest & WithClosedDays(ClosedDaysT &&value)
const Aws::Vector< __TimezoneEstimationMethodsElement > & GetTimezoneEstimationMethods() const
WriteJourneyRequest & WithRefreshOnSegmentUpdate(bool value)
WriteJourneyRequest & WithJourneyChannelSettings(JourneyChannelSettingsT &&value)
WriteJourneyRequest & AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement value)
const Aws::String & GetLastModifiedDate() const
WriteJourneyRequest & WithState(State value)
WriteJourneyRequest & WithTimezoneEstimationMethods(TimezoneEstimationMethodsT &&value)
WriteJourneyRequest & WithCreationDate(CreationDateT &&value)
AWS_PINPOINT_API WriteJourneyRequest(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Activity > & GetActivities() const
WriteJourneyRequest & WithOpenHours(OpenHoursT &&value)
WriteJourneyRequest & WithLocalTime(bool value)
AWS_PINPOINT_API WriteJourneyRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetJourneyChannelSettings(JourneyChannelSettingsT &&value)
WriteJourneyRequest & WithActivities(ActivitiesT &&value)
void SetStartActivity(StartActivityT &&value)
WriteJourneyRequest & WithRefreshFrequency(RefreshFrequencyT &&value)
WriteJourneyRequest & WithStartCondition(StartConditionT &&value)
const JourneySchedule & GetSchedule() const
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
WriteJourneyRequest & WithName(NameT &&value)
WriteJourneyRequest & WithWaitForQuietTime(bool value)
AWS_PINPOINT_API WriteJourneyRequest()=default
const JourneyChannelSettings & GetJourneyChannelSettings() const
WriteJourneyRequest & WithStartActivity(StartActivityT &&value)
WriteJourneyRequest & WithLastModifiedDate(LastModifiedDateT &&value)
WriteJourneyRequest & WithSchedule(ScheduleT &&value)
WriteJourneyRequest & WithLimits(LimitsT &&value)
const StartCondition & GetStartCondition() const
void SetLastModifiedDate(LastModifiedDateT &&value)
void SetRefreshFrequency(RefreshFrequencyT &&value)
void SetStartCondition(StartConditionT &&value)
WriteJourneyRequest & AddActivities(ActivitiesKeyT &&key, ActivitiesValueT &&value)
void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT &&value)
const Aws::String & GetRefreshFrequency() const
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