AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
JourneyResponse.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 JourneyResponse() = default;
43 AWS_PINPOINT_API JourneyResponse(Aws::Utils::Json::JsonView jsonValue);
45 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
53 inline const Aws::Map<Aws::String, Activity>& GetActivities() const { return m_activities; }
54 inline bool ActivitiesHasBeenSet() const { return m_activitiesHasBeenSet; }
55 template <typename ActivitiesT = Aws::Map<Aws::String, Activity>>
56 void SetActivities(ActivitiesT&& value) {
57 m_activitiesHasBeenSet = true;
58 m_activities = std::forward<ActivitiesT>(value);
59 }
60 template <typename ActivitiesT = Aws::Map<Aws::String, Activity>>
61 JourneyResponse& WithActivities(ActivitiesT&& value) {
62 SetActivities(std::forward<ActivitiesT>(value));
63 return *this;
64 }
65 template <typename ActivitiesKeyT = Aws::String, typename ActivitiesValueT = Activity>
66 JourneyResponse& AddActivities(ActivitiesKeyT&& key, ActivitiesValueT&& value) {
67 m_activitiesHasBeenSet = true;
68 m_activities.emplace(std::forward<ActivitiesKeyT>(key), std::forward<ActivitiesValueT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
78 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
79 template <typename ApplicationIdT = Aws::String>
80 void SetApplicationId(ApplicationIdT&& value) {
81 m_applicationIdHasBeenSet = true;
82 m_applicationId = std::forward<ApplicationIdT>(value);
83 }
84 template <typename ApplicationIdT = Aws::String>
85 JourneyResponse& WithApplicationId(ApplicationIdT&& value) {
86 SetApplicationId(std::forward<ApplicationIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
96 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
97 template <typename CreationDateT = Aws::String>
98 void SetCreationDate(CreationDateT&& value) {
99 m_creationDateHasBeenSet = true;
100 m_creationDate = std::forward<CreationDateT>(value);
101 }
102 template <typename CreationDateT = Aws::String>
103 JourneyResponse& WithCreationDate(CreationDateT&& value) {
104 SetCreationDate(std::forward<CreationDateT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetId() const { return m_id; }
114 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
115 template <typename IdT = Aws::String>
116 void SetId(IdT&& value) {
117 m_idHasBeenSet = true;
118 m_id = std::forward<IdT>(value);
119 }
120 template <typename IdT = Aws::String>
121 JourneyResponse& WithId(IdT&& value) {
122 SetId(std::forward<IdT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
132 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
133 template <typename LastModifiedDateT = Aws::String>
134 void SetLastModifiedDate(LastModifiedDateT&& value) {
135 m_lastModifiedDateHasBeenSet = true;
136 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
137 }
138 template <typename LastModifiedDateT = Aws::String>
139 JourneyResponse& WithLastModifiedDate(LastModifiedDateT&& value) {
140 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
141 return *this;
142 }
144
146
149 inline const JourneyLimits& GetLimits() const { return m_limits; }
150 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
151 template <typename LimitsT = JourneyLimits>
152 void SetLimits(LimitsT&& value) {
153 m_limitsHasBeenSet = true;
154 m_limits = std::forward<LimitsT>(value);
155 }
156 template <typename LimitsT = JourneyLimits>
157 JourneyResponse& WithLimits(LimitsT&& value) {
158 SetLimits(std::forward<LimitsT>(value));
159 return *this;
160 }
162
164
169 inline bool GetLocalTime() const { return m_localTime; }
170 inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; }
171 inline void SetLocalTime(bool value) {
172 m_localTimeHasBeenSet = true;
173 m_localTime = value;
174 }
175 inline JourneyResponse& WithLocalTime(bool value) {
176 SetLocalTime(value);
177 return *this;
178 }
180
182
185 inline const Aws::String& GetName() const { return m_name; }
186 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
187 template <typename NameT = Aws::String>
188 void SetName(NameT&& value) {
189 m_nameHasBeenSet = true;
190 m_name = std::forward<NameT>(value);
191 }
192 template <typename NameT = Aws::String>
193 JourneyResponse& WithName(NameT&& value) {
194 SetName(std::forward<NameT>(value));
195 return *this;
196 }
198
200
212 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
213 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
214 template <typename QuietTimeT = QuietTime>
215 void SetQuietTime(QuietTimeT&& value) {
216 m_quietTimeHasBeenSet = true;
217 m_quietTime = std::forward<QuietTimeT>(value);
218 }
219 template <typename QuietTimeT = QuietTime>
220 JourneyResponse& WithQuietTime(QuietTimeT&& value) {
221 SetQuietTime(std::forward<QuietTimeT>(value));
222 return *this;
223 }
225
227
231 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
232 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
233 template <typename RefreshFrequencyT = Aws::String>
234 void SetRefreshFrequency(RefreshFrequencyT&& value) {
235 m_refreshFrequencyHasBeenSet = true;
236 m_refreshFrequency = std::forward<RefreshFrequencyT>(value);
237 }
238 template <typename RefreshFrequencyT = Aws::String>
239 JourneyResponse& WithRefreshFrequency(RefreshFrequencyT&& value) {
240 SetRefreshFrequency(std::forward<RefreshFrequencyT>(value));
241 return *this;
242 }
244
246
249 inline const JourneySchedule& GetSchedule() const { return m_schedule; }
250 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
251 template <typename ScheduleT = JourneySchedule>
252 void SetSchedule(ScheduleT&& value) {
253 m_scheduleHasBeenSet = true;
254 m_schedule = std::forward<ScheduleT>(value);
255 }
256 template <typename ScheduleT = JourneySchedule>
257 JourneyResponse& WithSchedule(ScheduleT&& value) {
258 SetSchedule(std::forward<ScheduleT>(value));
259 return *this;
260 }
262
264
267 inline const Aws::String& GetStartActivity() const { return m_startActivity; }
268 inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; }
269 template <typename StartActivityT = Aws::String>
270 void SetStartActivity(StartActivityT&& value) {
271 m_startActivityHasBeenSet = true;
272 m_startActivity = std::forward<StartActivityT>(value);
273 }
274 template <typename StartActivityT = Aws::String>
275 JourneyResponse& WithStartActivity(StartActivityT&& value) {
276 SetStartActivity(std::forward<StartActivityT>(value));
277 return *this;
278 }
280
282
285 inline const StartCondition& GetStartCondition() const { return m_startCondition; }
286 inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; }
287 template <typename StartConditionT = StartCondition>
288 void SetStartCondition(StartConditionT&& value) {
289 m_startConditionHasBeenSet = true;
290 m_startCondition = std::forward<StartConditionT>(value);
291 }
292 template <typename StartConditionT = StartCondition>
293 JourneyResponse& WithStartCondition(StartConditionT&& value) {
294 SetStartCondition(std::forward<StartConditionT>(value));
295 return *this;
296 }
298
300
319 inline State GetState() const { return m_state; }
320 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
321 inline void SetState(State value) {
322 m_stateHasBeenSet = true;
323 m_state = value;
324 }
326 SetState(value);
327 return *this;
328 }
330
332
335 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
336 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
337 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
338 void SetTags(TagsT&& value) {
339 m_tagsHasBeenSet = true;
340 m_tags = std::forward<TagsT>(value);
341 }
342 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
343 JourneyResponse& WithTags(TagsT&& value) {
344 SetTags(std::forward<TagsT>(value));
345 return *this;
346 }
347 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
348 JourneyResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
349 m_tagsHasBeenSet = true;
350 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
351 return *this;
352 }
354
356
360 inline bool GetWaitForQuietTime() const { return m_waitForQuietTime; }
361 inline bool WaitForQuietTimeHasBeenSet() const { return m_waitForQuietTimeHasBeenSet; }
362 inline void SetWaitForQuietTime(bool value) {
363 m_waitForQuietTimeHasBeenSet = true;
364 m_waitForQuietTime = value;
365 }
367 SetWaitForQuietTime(value);
368 return *this;
369 }
371
373
377 inline bool GetRefreshOnSegmentUpdate() const { return m_refreshOnSegmentUpdate; }
378 inline bool RefreshOnSegmentUpdateHasBeenSet() const { return m_refreshOnSegmentUpdateHasBeenSet; }
379 inline void SetRefreshOnSegmentUpdate(bool value) {
380 m_refreshOnSegmentUpdateHasBeenSet = true;
381 m_refreshOnSegmentUpdate = value;
382 }
385 return *this;
386 }
388
390
393 inline const JourneyChannelSettings& GetJourneyChannelSettings() const { return m_journeyChannelSettings; }
394 inline bool JourneyChannelSettingsHasBeenSet() const { return m_journeyChannelSettingsHasBeenSet; }
395 template <typename JourneyChannelSettingsT = JourneyChannelSettings>
396 void SetJourneyChannelSettings(JourneyChannelSettingsT&& value) {
397 m_journeyChannelSettingsHasBeenSet = true;
398 m_journeyChannelSettings = std::forward<JourneyChannelSettingsT>(value);
399 }
400 template <typename JourneyChannelSettingsT = JourneyChannelSettings>
401 JourneyResponse& WithJourneyChannelSettings(JourneyChannelSettingsT&& value) {
402 SetJourneyChannelSettings(std::forward<JourneyChannelSettingsT>(value));
403 return *this;
404 }
406
408
412 inline bool GetSendingSchedule() const { return m_sendingSchedule; }
413 inline bool SendingScheduleHasBeenSet() const { return m_sendingScheduleHasBeenSet; }
414 inline void SetSendingSchedule(bool value) {
415 m_sendingScheduleHasBeenSet = true;
416 m_sendingSchedule = value;
417 }
419 SetSendingSchedule(value);
420 return *this;
421 }
423
425
429 inline const OpenHours& GetOpenHours() const { return m_openHours; }
430 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
431 template <typename OpenHoursT = OpenHours>
432 void SetOpenHours(OpenHoursT&& value) {
433 m_openHoursHasBeenSet = true;
434 m_openHours = std::forward<OpenHoursT>(value);
435 }
436 template <typename OpenHoursT = OpenHours>
437 JourneyResponse& WithOpenHours(OpenHoursT&& value) {
438 SetOpenHours(std::forward<OpenHoursT>(value));
439 return *this;
440 }
442
444
448 inline const ClosedDays& GetClosedDays() const { return m_closedDays; }
449 inline bool ClosedDaysHasBeenSet() const { return m_closedDaysHasBeenSet; }
450 template <typename ClosedDaysT = ClosedDays>
451 void SetClosedDays(ClosedDaysT&& value) {
452 m_closedDaysHasBeenSet = true;
453 m_closedDays = std::forward<ClosedDaysT>(value);
454 }
455 template <typename ClosedDaysT = ClosedDays>
456 JourneyResponse& WithClosedDays(ClosedDaysT&& value) {
457 SetClosedDays(std::forward<ClosedDaysT>(value));
458 return *this;
459 }
461
463
476 inline const Aws::Vector<__TimezoneEstimationMethodsElement>& GetTimezoneEstimationMethods() const { return m_timezoneEstimationMethods; }
477 inline bool TimezoneEstimationMethodsHasBeenSet() const { return m_timezoneEstimationMethodsHasBeenSet; }
478 template <typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
479 void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) {
480 m_timezoneEstimationMethodsHasBeenSet = true;
481 m_timezoneEstimationMethods = std::forward<TimezoneEstimationMethodsT>(value);
482 }
483 template <typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
484 JourneyResponse& WithTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) {
485 SetTimezoneEstimationMethods(std::forward<TimezoneEstimationMethodsT>(value));
486 return *this;
487 }
489 m_timezoneEstimationMethodsHasBeenSet = true;
490 m_timezoneEstimationMethods.push_back(value);
491 return *this;
492 }
494 private:
496 bool m_activitiesHasBeenSet = false;
497
498 Aws::String m_applicationId;
499 bool m_applicationIdHasBeenSet = false;
500
501 Aws::String m_creationDate;
502 bool m_creationDateHasBeenSet = false;
503
504 Aws::String m_id;
505 bool m_idHasBeenSet = false;
506
507 Aws::String m_lastModifiedDate;
508 bool m_lastModifiedDateHasBeenSet = false;
509
510 JourneyLimits m_limits;
511 bool m_limitsHasBeenSet = false;
512
513 bool m_localTime{false};
514 bool m_localTimeHasBeenSet = false;
515
516 Aws::String m_name;
517 bool m_nameHasBeenSet = false;
518
519 QuietTime m_quietTime;
520 bool m_quietTimeHasBeenSet = false;
521
522 Aws::String m_refreshFrequency;
523 bool m_refreshFrequencyHasBeenSet = false;
524
525 JourneySchedule m_schedule;
526 bool m_scheduleHasBeenSet = false;
527
528 Aws::String m_startActivity;
529 bool m_startActivityHasBeenSet = false;
530
531 StartCondition m_startCondition;
532 bool m_startConditionHasBeenSet = false;
533
534 State m_state{State::NOT_SET};
535 bool m_stateHasBeenSet = false;
536
538 bool m_tagsHasBeenSet = false;
539
540 bool m_waitForQuietTime{false};
541 bool m_waitForQuietTimeHasBeenSet = false;
542
543 bool m_refreshOnSegmentUpdate{false};
544 bool m_refreshOnSegmentUpdateHasBeenSet = false;
545
546 JourneyChannelSettings m_journeyChannelSettings;
547 bool m_journeyChannelSettingsHasBeenSet = false;
548
549 bool m_sendingSchedule{false};
550 bool m_sendingScheduleHasBeenSet = false;
551
552 OpenHours m_openHours;
553 bool m_openHoursHasBeenSet = false;
554
555 ClosedDays m_closedDays;
556 bool m_closedDaysHasBeenSet = false;
557
558 Aws::Vector<__TimezoneEstimationMethodsElement> m_timezoneEstimationMethods;
559 bool m_timezoneEstimationMethodsHasBeenSet = false;
560};
561
562} // namespace Model
563} // namespace Pinpoint
564} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
JourneyResponse & WithRefreshOnSegmentUpdate(bool value)
const StartCondition & GetStartCondition() const
void SetActivities(ActivitiesT &&value)
void SetCreationDate(CreationDateT &&value)
AWS_PINPOINT_API JourneyResponse(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API JourneyResponse()=default
JourneyResponse & WithSendingSchedule(bool value)
JourneyResponse & WithJourneyChannelSettings(JourneyChannelSettingsT &&value)
JourneyResponse & WithWaitForQuietTime(bool value)
const JourneySchedule & GetSchedule() const
JourneyResponse & AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement value)
void SetApplicationId(ApplicationIdT &&value)
void SetOpenHours(OpenHoursT &&value)
void SetLastModifiedDate(LastModifiedDateT &&value)
JourneyResponse & WithRefreshFrequency(RefreshFrequencyT &&value)
const Aws::Vector< __TimezoneEstimationMethodsElement > & GetTimezoneEstimationMethods() const
const Aws::String & GetStartActivity() const
JourneyResponse & WithStartCondition(StartConditionT &&value)
const Aws::Map< Aws::String, Activity > & GetActivities() const
JourneyResponse & WithApplicationId(ApplicationIdT &&value)
JourneyResponse & WithTags(TagsT &&value)
AWS_PINPOINT_API JourneyResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
JourneyResponse & WithState(State value)
JourneyResponse & WithLimits(LimitsT &&value)
void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT &&value)
JourneyResponse & AddActivities(ActivitiesKeyT &&key, ActivitiesValueT &&value)
const Aws::String & GetCreationDate() const
void SetStartCondition(StartConditionT &&value)
const ClosedDays & GetClosedDays() const
const Aws::String & GetRefreshFrequency() const
const Aws::String & GetApplicationId() const
JourneyResponse & WithSchedule(ScheduleT &&value)
void SetRefreshFrequency(RefreshFrequencyT &&value)
JourneyResponse & WithName(NameT &&value)
const OpenHours & GetOpenHours() const
JourneyResponse & WithClosedDays(ClosedDaysT &&value)
const JourneyLimits & GetLimits() const
void SetJourneyChannelSettings(JourneyChannelSettingsT &&value)
JourneyResponse & WithTimezoneEstimationMethods(TimezoneEstimationMethodsT &&value)
const Aws::String & GetLastModifiedDate() const
JourneyResponse & WithActivities(ActivitiesT &&value)
const Aws::String & GetId() const
JourneyResponse & WithLocalTime(bool value)
void SetClosedDays(ClosedDaysT &&value)
JourneyResponse & WithId(IdT &&value)
JourneyResponse & WithOpenHours(OpenHoursT &&value)
JourneyResponse & WithCreationDate(CreationDateT &&value)
JourneyResponse & WithQuietTime(QuietTimeT &&value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
JourneyResponse & AddTags(TagsKeyT &&key, TagsValueT &&value)
JourneyResponse & WithLastModifiedDate(LastModifiedDateT &&value)
void SetQuietTime(QuietTimeT &&value)
const JourneyChannelSettings & GetJourneyChannelSettings() const
const Aws::String & GetName() const
void SetStartActivity(StartActivityT &&value)
JourneyResponse & WithStartActivity(StartActivityT &&value)
const QuietTime & GetQuietTime() 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