AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
JourneyResponse.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/pinpoint/model/JourneyLimits.h>
11#include <aws/pinpoint/model/QuietTime.h>
12#include <aws/pinpoint/model/JourneySchedule.h>
13#include <aws/pinpoint/model/StartCondition.h>
14#include <aws/pinpoint/model/State.h>
15#include <aws/pinpoint/model/JourneyChannelSettings.h>
16#include <aws/pinpoint/model/OpenHours.h>
17#include <aws/pinpoint/model/ClosedDays.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19#include <aws/pinpoint/model/Activity.h>
20#include <aws/pinpoint/model/__TimezoneEstimationMethodsElement.h>
21#include <utility>
22
23namespace Aws
24{
25namespace Utils
26{
27namespace Json
28{
29 class JsonValue;
30 class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace Pinpoint
34{
35namespace Model
36{
37
45 {
46 public:
47 AWS_PINPOINT_API JourneyResponse() = default;
48 AWS_PINPOINT_API JourneyResponse(Aws::Utils::Json::JsonView jsonValue);
50 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
59 inline const Aws::Map<Aws::String, Activity>& GetActivities() const { return m_activities; }
60 inline bool ActivitiesHasBeenSet() const { return m_activitiesHasBeenSet; }
61 template<typename ActivitiesT = Aws::Map<Aws::String, Activity>>
62 void SetActivities(ActivitiesT&& value) { m_activitiesHasBeenSet = true; m_activities = std::forward<ActivitiesT>(value); }
63 template<typename ActivitiesT = Aws::Map<Aws::String, Activity>>
64 JourneyResponse& WithActivities(ActivitiesT&& value) { SetActivities(std::forward<ActivitiesT>(value)); return *this;}
65 template<typename ActivitiesKeyT = Aws::String, typename ActivitiesValueT = Activity>
66 JourneyResponse& AddActivities(ActivitiesKeyT&& key, ActivitiesValueT&& value) {
67 m_activitiesHasBeenSet = true; m_activities.emplace(std::forward<ActivitiesKeyT>(key), std::forward<ActivitiesValueT>(value)); return *this;
68 }
70
72
75 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
76 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
77 template<typename ApplicationIdT = Aws::String>
78 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
79 template<typename ApplicationIdT = Aws::String>
80 JourneyResponse& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
82
84
87 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
88 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
89 template<typename CreationDateT = Aws::String>
90 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
91 template<typename CreationDateT = Aws::String>
92 JourneyResponse& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
94
96
99 inline const Aws::String& GetId() const { return m_id; }
100 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
101 template<typename IdT = Aws::String>
102 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
103 template<typename IdT = Aws::String>
104 JourneyResponse& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
106
108
111 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
112 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
113 template<typename LastModifiedDateT = Aws::String>
114 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
115 template<typename LastModifiedDateT = Aws::String>
116 JourneyResponse& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
118
120
123 inline const JourneyLimits& GetLimits() const { return m_limits; }
124 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
125 template<typename LimitsT = JourneyLimits>
126 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet = true; m_limits = std::forward<LimitsT>(value); }
127 template<typename LimitsT = JourneyLimits>
128 JourneyResponse& WithLimits(LimitsT&& value) { SetLimits(std::forward<LimitsT>(value)); return *this;}
130
132
137 inline bool GetLocalTime() const { return m_localTime; }
138 inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; }
139 inline void SetLocalTime(bool value) { m_localTimeHasBeenSet = true; m_localTime = value; }
140 inline JourneyResponse& WithLocalTime(bool value) { SetLocalTime(value); return *this;}
142
144
147 inline const Aws::String& GetName() const { return m_name; }
148 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
149 template<typename NameT = Aws::String>
150 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
151 template<typename NameT = Aws::String>
152 JourneyResponse& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
154
156
168 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
169 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
170 template<typename QuietTimeT = QuietTime>
171 void SetQuietTime(QuietTimeT&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::forward<QuietTimeT>(value); }
172 template<typename QuietTimeT = QuietTime>
173 JourneyResponse& WithQuietTime(QuietTimeT&& value) { SetQuietTime(std::forward<QuietTimeT>(value)); return *this;}
175
177
181 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
182 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
183 template<typename RefreshFrequencyT = Aws::String>
184 void SetRefreshFrequency(RefreshFrequencyT&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::forward<RefreshFrequencyT>(value); }
185 template<typename RefreshFrequencyT = Aws::String>
186 JourneyResponse& WithRefreshFrequency(RefreshFrequencyT&& value) { SetRefreshFrequency(std::forward<RefreshFrequencyT>(value)); return *this;}
188
190
193 inline const JourneySchedule& GetSchedule() const { return m_schedule; }
194 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
195 template<typename ScheduleT = JourneySchedule>
196 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
197 template<typename ScheduleT = JourneySchedule>
198 JourneyResponse& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
200
202
205 inline const Aws::String& GetStartActivity() const { return m_startActivity; }
206 inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; }
207 template<typename StartActivityT = Aws::String>
208 void SetStartActivity(StartActivityT&& value) { m_startActivityHasBeenSet = true; m_startActivity = std::forward<StartActivityT>(value); }
209 template<typename StartActivityT = Aws::String>
210 JourneyResponse& WithStartActivity(StartActivityT&& value) { SetStartActivity(std::forward<StartActivityT>(value)); return *this;}
212
214
217 inline const StartCondition& GetStartCondition() const { return m_startCondition; }
218 inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; }
219 template<typename StartConditionT = StartCondition>
220 void SetStartCondition(StartConditionT&& value) { m_startConditionHasBeenSet = true; m_startCondition = std::forward<StartConditionT>(value); }
221 template<typename StartConditionT = StartCondition>
222 JourneyResponse& WithStartCondition(StartConditionT&& value) { SetStartCondition(std::forward<StartConditionT>(value)); return *this;}
224
226
245 inline State GetState() const { return m_state; }
246 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
247 inline void SetState(State value) { m_stateHasBeenSet = true; m_state = value; }
248 inline JourneyResponse& WithState(State value) { SetState(value); return *this;}
250
252
255 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
256 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
257 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
258 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
259 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
260 JourneyResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
261 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
262 JourneyResponse& AddTags(TagsKeyT&& key, TagsValueT&& value) {
263 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
264 }
266
268
272 inline bool GetWaitForQuietTime() const { return m_waitForQuietTime; }
273 inline bool WaitForQuietTimeHasBeenSet() const { return m_waitForQuietTimeHasBeenSet; }
274 inline void SetWaitForQuietTime(bool value) { m_waitForQuietTimeHasBeenSet = true; m_waitForQuietTime = value; }
275 inline JourneyResponse& WithWaitForQuietTime(bool value) { SetWaitForQuietTime(value); return *this;}
277
279
283 inline bool GetRefreshOnSegmentUpdate() const { return m_refreshOnSegmentUpdate; }
284 inline bool RefreshOnSegmentUpdateHasBeenSet() const { return m_refreshOnSegmentUpdateHasBeenSet; }
285 inline void SetRefreshOnSegmentUpdate(bool value) { m_refreshOnSegmentUpdateHasBeenSet = true; m_refreshOnSegmentUpdate = value; }
286 inline JourneyResponse& WithRefreshOnSegmentUpdate(bool value) { SetRefreshOnSegmentUpdate(value); return *this;}
288
290
293 inline const JourneyChannelSettings& GetJourneyChannelSettings() const { return m_journeyChannelSettings; }
294 inline bool JourneyChannelSettingsHasBeenSet() const { return m_journeyChannelSettingsHasBeenSet; }
295 template<typename JourneyChannelSettingsT = JourneyChannelSettings>
296 void SetJourneyChannelSettings(JourneyChannelSettingsT&& value) { m_journeyChannelSettingsHasBeenSet = true; m_journeyChannelSettings = std::forward<JourneyChannelSettingsT>(value); }
297 template<typename JourneyChannelSettingsT = JourneyChannelSettings>
298 JourneyResponse& WithJourneyChannelSettings(JourneyChannelSettingsT&& value) { SetJourneyChannelSettings(std::forward<JourneyChannelSettingsT>(value)); return *this;}
300
302
306 inline bool GetSendingSchedule() const { return m_sendingSchedule; }
307 inline bool SendingScheduleHasBeenSet() const { return m_sendingScheduleHasBeenSet; }
308 inline void SetSendingSchedule(bool value) { m_sendingScheduleHasBeenSet = true; m_sendingSchedule = value; }
309 inline JourneyResponse& WithSendingSchedule(bool value) { SetSendingSchedule(value); return *this;}
311
313
317 inline const OpenHours& GetOpenHours() const { return m_openHours; }
318 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
319 template<typename OpenHoursT = OpenHours>
320 void SetOpenHours(OpenHoursT&& value) { m_openHoursHasBeenSet = true; m_openHours = std::forward<OpenHoursT>(value); }
321 template<typename OpenHoursT = OpenHours>
322 JourneyResponse& WithOpenHours(OpenHoursT&& value) { SetOpenHours(std::forward<OpenHoursT>(value)); return *this;}
324
326
330 inline const ClosedDays& GetClosedDays() const { return m_closedDays; }
331 inline bool ClosedDaysHasBeenSet() const { return m_closedDaysHasBeenSet; }
332 template<typename ClosedDaysT = ClosedDays>
333 void SetClosedDays(ClosedDaysT&& value) { m_closedDaysHasBeenSet = true; m_closedDays = std::forward<ClosedDaysT>(value); }
334 template<typename ClosedDaysT = ClosedDays>
335 JourneyResponse& WithClosedDays(ClosedDaysT&& value) { SetClosedDays(std::forward<ClosedDaysT>(value)); return *this;}
337
339
352 inline const Aws::Vector<__TimezoneEstimationMethodsElement>& GetTimezoneEstimationMethods() const { return m_timezoneEstimationMethods; }
353 inline bool TimezoneEstimationMethodsHasBeenSet() const { return m_timezoneEstimationMethodsHasBeenSet; }
354 template<typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
355 void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods = std::forward<TimezoneEstimationMethodsT>(value); }
356 template<typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
357 JourneyResponse& WithTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) { SetTimezoneEstimationMethods(std::forward<TimezoneEstimationMethodsT>(value)); return *this;}
358 inline JourneyResponse& AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods.push_back(value); return *this; }
360 private:
361
363 bool m_activitiesHasBeenSet = false;
364
365 Aws::String m_applicationId;
366 bool m_applicationIdHasBeenSet = false;
367
368 Aws::String m_creationDate;
369 bool m_creationDateHasBeenSet = false;
370
371 Aws::String m_id;
372 bool m_idHasBeenSet = false;
373
374 Aws::String m_lastModifiedDate;
375 bool m_lastModifiedDateHasBeenSet = false;
376
377 JourneyLimits m_limits;
378 bool m_limitsHasBeenSet = false;
379
380 bool m_localTime{false};
381 bool m_localTimeHasBeenSet = false;
382
383 Aws::String m_name;
384 bool m_nameHasBeenSet = false;
385
386 QuietTime m_quietTime;
387 bool m_quietTimeHasBeenSet = false;
388
389 Aws::String m_refreshFrequency;
390 bool m_refreshFrequencyHasBeenSet = false;
391
392 JourneySchedule m_schedule;
393 bool m_scheduleHasBeenSet = false;
394
395 Aws::String m_startActivity;
396 bool m_startActivityHasBeenSet = false;
397
398 StartCondition m_startCondition;
399 bool m_startConditionHasBeenSet = false;
400
401 State m_state{State::NOT_SET};
402 bool m_stateHasBeenSet = false;
403
405 bool m_tagsHasBeenSet = false;
406
407 bool m_waitForQuietTime{false};
408 bool m_waitForQuietTimeHasBeenSet = false;
409
410 bool m_refreshOnSegmentUpdate{false};
411 bool m_refreshOnSegmentUpdateHasBeenSet = false;
412
413 JourneyChannelSettings m_journeyChannelSettings;
414 bool m_journeyChannelSettingsHasBeenSet = false;
415
416 bool m_sendingSchedule{false};
417 bool m_sendingScheduleHasBeenSet = false;
418
419 OpenHours m_openHours;
420 bool m_openHoursHasBeenSet = false;
421
422 ClosedDays m_closedDays;
423 bool m_closedDaysHasBeenSet = false;
424
425 Aws::Vector<__TimezoneEstimationMethodsElement> m_timezoneEstimationMethods;
426 bool m_timezoneEstimationMethodsHasBeenSet = false;
427 };
428
429} // namespace Model
430} // namespace Pinpoint
431} // 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