AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WriteJourneyRequest.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 WriteJourneyRequest();
50 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
51
52
54
61 inline const Aws::Map<Aws::String, Activity>& GetActivities() const{ return m_activities; }
62 inline bool ActivitiesHasBeenSet() const { return m_activitiesHasBeenSet; }
63 inline void SetActivities(const Aws::Map<Aws::String, Activity>& value) { m_activitiesHasBeenSet = true; m_activities = value; }
64 inline void SetActivities(Aws::Map<Aws::String, Activity>&& value) { m_activitiesHasBeenSet = true; m_activities = std::move(value); }
66 inline WriteJourneyRequest& WithActivities(Aws::Map<Aws::String, Activity>&& value) { SetActivities(std::move(value)); return *this;}
67 inline WriteJourneyRequest& AddActivities(const Aws::String& key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, value); return *this; }
68 inline WriteJourneyRequest& AddActivities(Aws::String&& key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(std::move(key), value); return *this; }
69 inline WriteJourneyRequest& AddActivities(const Aws::String& key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, std::move(value)); return *this; }
70 inline WriteJourneyRequest& AddActivities(Aws::String&& key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(std::move(key), std::move(value)); return *this; }
71 inline WriteJourneyRequest& AddActivities(const char* key, Activity&& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, std::move(value)); return *this; }
72 inline WriteJourneyRequest& AddActivities(const char* key, const Activity& value) { m_activitiesHasBeenSet = true; m_activities.emplace(key, value); return *this; }
74
76
79 inline const Aws::String& GetCreationDate() const{ return m_creationDate; }
80 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
81 inline void SetCreationDate(const Aws::String& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
82 inline void SetCreationDate(Aws::String&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
83 inline void SetCreationDate(const char* value) { m_creationDateHasBeenSet = true; m_creationDate.assign(value); }
84 inline WriteJourneyRequest& WithCreationDate(const Aws::String& value) { SetCreationDate(value); return *this;}
85 inline WriteJourneyRequest& WithCreationDate(Aws::String&& value) { SetCreationDate(std::move(value)); return *this;}
86 inline WriteJourneyRequest& WithCreationDate(const char* value) { SetCreationDate(value); return *this;}
88
90
93 inline const Aws::String& GetLastModifiedDate() const{ return m_lastModifiedDate; }
94 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
95 inline void SetLastModifiedDate(const Aws::String& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = value; }
96 inline void SetLastModifiedDate(Aws::String&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::move(value); }
97 inline void SetLastModifiedDate(const char* value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate.assign(value); }
98 inline WriteJourneyRequest& WithLastModifiedDate(const Aws::String& value) { SetLastModifiedDate(value); return *this;}
99 inline WriteJourneyRequest& WithLastModifiedDate(Aws::String&& value) { SetLastModifiedDate(std::move(value)); return *this;}
100 inline WriteJourneyRequest& WithLastModifiedDate(const char* value) { SetLastModifiedDate(value); return *this;}
102
104
107 inline const JourneyLimits& GetLimits() const{ return m_limits; }
108 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
109 inline void SetLimits(const JourneyLimits& value) { m_limitsHasBeenSet = true; m_limits = value; }
110 inline void SetLimits(JourneyLimits&& value) { m_limitsHasBeenSet = true; m_limits = std::move(value); }
111 inline WriteJourneyRequest& WithLimits(const JourneyLimits& value) { SetLimits(value); return *this;}
112 inline WriteJourneyRequest& WithLimits(JourneyLimits&& value) { SetLimits(std::move(value)); return *this;}
114
116
121 inline bool GetLocalTime() const{ return m_localTime; }
122 inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; }
123 inline void SetLocalTime(bool value) { m_localTimeHasBeenSet = true; m_localTime = value; }
124 inline WriteJourneyRequest& WithLocalTime(bool value) { SetLocalTime(value); return *this;}
126
128
133 inline const Aws::String& GetName() const{ return m_name; }
134 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
135 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
136 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
137 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
138 inline WriteJourneyRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
139 inline WriteJourneyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
140 inline WriteJourneyRequest& WithName(const char* value) { SetName(value); return *this;}
142
144
156 inline const QuietTime& GetQuietTime() const{ return m_quietTime; }
157 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
158 inline void SetQuietTime(const QuietTime& value) { m_quietTimeHasBeenSet = true; m_quietTime = value; }
159 inline void SetQuietTime(QuietTime&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::move(value); }
160 inline WriteJourneyRequest& WithQuietTime(const QuietTime& value) { SetQuietTime(value); return *this;}
161 inline WriteJourneyRequest& WithQuietTime(QuietTime&& value) { SetQuietTime(std::move(value)); return *this;}
163
165
169 inline const Aws::String& GetRefreshFrequency() const{ return m_refreshFrequency; }
170 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
171 inline void SetRefreshFrequency(const Aws::String& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = value; }
172 inline void SetRefreshFrequency(Aws::String&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::move(value); }
173 inline void SetRefreshFrequency(const char* value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency.assign(value); }
174 inline WriteJourneyRequest& WithRefreshFrequency(const Aws::String& value) { SetRefreshFrequency(value); return *this;}
175 inline WriteJourneyRequest& WithRefreshFrequency(Aws::String&& value) { SetRefreshFrequency(std::move(value)); return *this;}
176 inline WriteJourneyRequest& WithRefreshFrequency(const char* value) { SetRefreshFrequency(value); return *this;}
178
180
183 inline const JourneySchedule& GetSchedule() const{ return m_schedule; }
184 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
185 inline void SetSchedule(const JourneySchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
186 inline void SetSchedule(JourneySchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
187 inline WriteJourneyRequest& WithSchedule(const JourneySchedule& value) { SetSchedule(value); return *this;}
188 inline WriteJourneyRequest& WithSchedule(JourneySchedule&& value) { SetSchedule(std::move(value)); return *this;}
190
192
197 inline const Aws::String& GetStartActivity() const{ return m_startActivity; }
198 inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; }
199 inline void SetStartActivity(const Aws::String& value) { m_startActivityHasBeenSet = true; m_startActivity = value; }
200 inline void SetStartActivity(Aws::String&& value) { m_startActivityHasBeenSet = true; m_startActivity = std::move(value); }
201 inline void SetStartActivity(const char* value) { m_startActivityHasBeenSet = true; m_startActivity.assign(value); }
202 inline WriteJourneyRequest& WithStartActivity(const Aws::String& value) { SetStartActivity(value); return *this;}
203 inline WriteJourneyRequest& WithStartActivity(Aws::String&& value) { SetStartActivity(std::move(value)); return *this;}
204 inline WriteJourneyRequest& WithStartActivity(const char* value) { SetStartActivity(value); return *this;}
206
208
211 inline const StartCondition& GetStartCondition() const{ return m_startCondition; }
212 inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; }
213 inline void SetStartCondition(const StartCondition& value) { m_startConditionHasBeenSet = true; m_startCondition = value; }
214 inline void SetStartCondition(StartCondition&& value) { m_startConditionHasBeenSet = true; m_startCondition = std::move(value); }
215 inline WriteJourneyRequest& WithStartCondition(const StartCondition& value) { SetStartCondition(value); return *this;}
216 inline WriteJourneyRequest& WithStartCondition(StartCondition&& value) { SetStartCondition(std::move(value)); return *this;}
218
220
231 inline const State& GetState() const{ return m_state; }
232 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
233 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
234 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
235 inline WriteJourneyRequest& WithState(const State& value) { SetState(value); return *this;}
236 inline WriteJourneyRequest& WithState(State&& value) { SetState(std::move(value)); return *this;}
238
240
244 inline bool GetWaitForQuietTime() const{ return m_waitForQuietTime; }
245 inline bool WaitForQuietTimeHasBeenSet() const { return m_waitForQuietTimeHasBeenSet; }
246 inline void SetWaitForQuietTime(bool value) { m_waitForQuietTimeHasBeenSet = true; m_waitForQuietTime = value; }
247 inline WriteJourneyRequest& WithWaitForQuietTime(bool value) { SetWaitForQuietTime(value); return *this;}
249
251
255 inline bool GetRefreshOnSegmentUpdate() const{ return m_refreshOnSegmentUpdate; }
256 inline bool RefreshOnSegmentUpdateHasBeenSet() const { return m_refreshOnSegmentUpdateHasBeenSet; }
257 inline void SetRefreshOnSegmentUpdate(bool value) { m_refreshOnSegmentUpdateHasBeenSet = true; m_refreshOnSegmentUpdate = value; }
260
262
265 inline const JourneyChannelSettings& GetJourneyChannelSettings() const{ return m_journeyChannelSettings; }
266 inline bool JourneyChannelSettingsHasBeenSet() const { return m_journeyChannelSettingsHasBeenSet; }
267 inline void SetJourneyChannelSettings(const JourneyChannelSettings& value) { m_journeyChannelSettingsHasBeenSet = true; m_journeyChannelSettings = value; }
268 inline void SetJourneyChannelSettings(JourneyChannelSettings&& value) { m_journeyChannelSettingsHasBeenSet = true; m_journeyChannelSettings = std::move(value); }
272
274
278 inline bool GetSendingSchedule() const{ return m_sendingSchedule; }
279 inline bool SendingScheduleHasBeenSet() const { return m_sendingScheduleHasBeenSet; }
280 inline void SetSendingSchedule(bool value) { m_sendingScheduleHasBeenSet = true; m_sendingSchedule = value; }
281 inline WriteJourneyRequest& WithSendingSchedule(bool value) { SetSendingSchedule(value); return *this;}
283
285
289 inline const OpenHours& GetOpenHours() const{ return m_openHours; }
290 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
291 inline void SetOpenHours(const OpenHours& value) { m_openHoursHasBeenSet = true; m_openHours = value; }
292 inline void SetOpenHours(OpenHours&& value) { m_openHoursHasBeenSet = true; m_openHours = std::move(value); }
293 inline WriteJourneyRequest& WithOpenHours(const OpenHours& value) { SetOpenHours(value); return *this;}
294 inline WriteJourneyRequest& WithOpenHours(OpenHours&& value) { SetOpenHours(std::move(value)); return *this;}
296
298
302 inline const ClosedDays& GetClosedDays() const{ return m_closedDays; }
303 inline bool ClosedDaysHasBeenSet() const { return m_closedDaysHasBeenSet; }
304 inline void SetClosedDays(const ClosedDays& value) { m_closedDaysHasBeenSet = true; m_closedDays = value; }
305 inline void SetClosedDays(ClosedDays&& value) { m_closedDaysHasBeenSet = true; m_closedDays = std::move(value); }
306 inline WriteJourneyRequest& WithClosedDays(const ClosedDays& value) { SetClosedDays(value); return *this;}
307 inline WriteJourneyRequest& WithClosedDays(ClosedDays&& value) { SetClosedDays(std::move(value)); return *this;}
309
311
324 inline const Aws::Vector<__TimezoneEstimationMethodsElement>& GetTimezoneEstimationMethods() const{ return m_timezoneEstimationMethods; }
325 inline bool TimezoneEstimationMethodsHasBeenSet() const { return m_timezoneEstimationMethodsHasBeenSet; }
326 inline void SetTimezoneEstimationMethods(const Aws::Vector<__TimezoneEstimationMethodsElement>& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods = value; }
327 inline void SetTimezoneEstimationMethods(Aws::Vector<__TimezoneEstimationMethodsElement>&& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods = std::move(value); }
330 inline WriteJourneyRequest& AddTimezoneEstimationMethods(const __TimezoneEstimationMethodsElement& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods.push_back(value); return *this; }
331 inline WriteJourneyRequest& AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement&& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods.push_back(std::move(value)); return *this; }
333 private:
334
336 bool m_activitiesHasBeenSet = false;
337
338 Aws::String m_creationDate;
339 bool m_creationDateHasBeenSet = false;
340
341 Aws::String m_lastModifiedDate;
342 bool m_lastModifiedDateHasBeenSet = false;
343
344 JourneyLimits m_limits;
345 bool m_limitsHasBeenSet = false;
346
347 bool m_localTime;
348 bool m_localTimeHasBeenSet = false;
349
350 Aws::String m_name;
351 bool m_nameHasBeenSet = false;
352
353 QuietTime m_quietTime;
354 bool m_quietTimeHasBeenSet = false;
355
356 Aws::String m_refreshFrequency;
357 bool m_refreshFrequencyHasBeenSet = false;
358
359 JourneySchedule m_schedule;
360 bool m_scheduleHasBeenSet = false;
361
362 Aws::String m_startActivity;
363 bool m_startActivityHasBeenSet = false;
364
365 StartCondition m_startCondition;
366 bool m_startConditionHasBeenSet = false;
367
368 State m_state;
369 bool m_stateHasBeenSet = false;
370
371 bool m_waitForQuietTime;
372 bool m_waitForQuietTimeHasBeenSet = false;
373
374 bool m_refreshOnSegmentUpdate;
375 bool m_refreshOnSegmentUpdateHasBeenSet = false;
376
377 JourneyChannelSettings m_journeyChannelSettings;
378 bool m_journeyChannelSettingsHasBeenSet = false;
379
380 bool m_sendingSchedule;
381 bool m_sendingScheduleHasBeenSet = false;
382
383 OpenHours m_openHours;
384 bool m_openHoursHasBeenSet = false;
385
386 ClosedDays m_closedDays;
387 bool m_closedDaysHasBeenSet = false;
388
389 Aws::Vector<__TimezoneEstimationMethodsElement> m_timezoneEstimationMethods;
390 bool m_timezoneEstimationMethodsHasBeenSet = false;
391 };
392
393} // namespace Model
394} // namespace Pinpoint
395} // namespace Aws
WriteJourneyRequest & WithStartCondition(StartCondition &&value)
WriteJourneyRequest & WithCreationDate(const Aws::String &value)
WriteJourneyRequest & WithSendingSchedule(bool value)
void SetLastModifiedDate(const Aws::String &value)
void SetSchedule(const JourneySchedule &value)
WriteJourneyRequest & WithLimits(const JourneyLimits &value)
void SetJourneyChannelSettings(JourneyChannelSettings &&value)
WriteJourneyRequest & WithLastModifiedDate(const char *value)
WriteJourneyRequest & WithRefreshFrequency(Aws::String &&value)
void SetLimits(const JourneyLimits &value)
WriteJourneyRequest & WithLastModifiedDate(Aws::String &&value)
const Aws::Vector< __TimezoneEstimationMethodsElement > & GetTimezoneEstimationMethods() const
WriteJourneyRequest & WithOpenHours(OpenHours &&value)
WriteJourneyRequest & WithName(const char *value)
WriteJourneyRequest & WithName(Aws::String &&value)
WriteJourneyRequest & WithRefreshOnSegmentUpdate(bool value)
const Aws::String & GetLastModifiedDate() const
void SetCreationDate(const Aws::String &value)
WriteJourneyRequest & WithTimezoneEstimationMethods(const Aws::Vector< __TimezoneEstimationMethodsElement > &value)
void SetClosedDays(const ClosedDays &value)
WriteJourneyRequest & WithStartCondition(const StartCondition &value)
WriteJourneyRequest & WithOpenHours(const OpenHours &value)
void SetJourneyChannelSettings(const JourneyChannelSettings &value)
AWS_PINPOINT_API WriteJourneyRequest(Aws::Utils::Json::JsonView jsonValue)
WriteJourneyRequest & WithSchedule(JourneySchedule &&value)
WriteJourneyRequest & WithActivities(Aws::Map< Aws::String, Activity > &&value)
WriteJourneyRequest & WithStartActivity(Aws::String &&value)
WriteJourneyRequest & WithSchedule(const JourneySchedule &value)
WriteJourneyRequest & WithStartActivity(const char *value)
WriteJourneyRequest & WithTimezoneEstimationMethods(Aws::Vector< __TimezoneEstimationMethodsElement > &&value)
const Aws::Map< Aws::String, Activity > & GetActivities() const
WriteJourneyRequest & WithLocalTime(bool value)
WriteJourneyRequest & WithClosedDays(ClosedDays &&value)
WriteJourneyRequest & WithCreationDate(const char *value)
WriteJourneyRequest & WithRefreshFrequency(const Aws::String &value)
WriteJourneyRequest & AddActivities(const Aws::String &key, const Activity &value)
WriteJourneyRequest & WithQuietTime(QuietTime &&value)
AWS_PINPOINT_API WriteJourneyRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTimezoneEstimationMethods(Aws::Vector< __TimezoneEstimationMethodsElement > &&value)
WriteJourneyRequest & AddActivities(const Aws::String &key, Activity &&value)
WriteJourneyRequest & AddActivities(const char *key, const Activity &value)
WriteJourneyRequest & AddActivities(const char *key, Activity &&value)
WriteJourneyRequest & WithJourneyChannelSettings(JourneyChannelSettings &&value)
WriteJourneyRequest & WithState(const State &value)
WriteJourneyRequest & WithState(State &&value)
const JourneySchedule & GetSchedule() const
WriteJourneyRequest & AddActivities(Aws::String &&key, const Activity &value)
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetActivities(const Aws::Map< Aws::String, Activity > &value)
WriteJourneyRequest & WithLastModifiedDate(const Aws::String &value)
WriteJourneyRequest & WithLimits(JourneyLimits &&value)
WriteJourneyRequest & AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement &&value)
void SetActivities(Aws::Map< Aws::String, Activity > &&value)
void SetTimezoneEstimationMethods(const Aws::Vector< __TimezoneEstimationMethodsElement > &value)
WriteJourneyRequest & WithJourneyChannelSettings(const JourneyChannelSettings &value)
WriteJourneyRequest & WithActivities(const Aws::Map< Aws::String, Activity > &value)
WriteJourneyRequest & AddTimezoneEstimationMethods(const __TimezoneEstimationMethodsElement &value)
WriteJourneyRequest & WithWaitForQuietTime(bool value)
WriteJourneyRequest & WithStartActivity(const Aws::String &value)
const JourneyChannelSettings & GetJourneyChannelSettings() const
void SetStartCondition(StartCondition &&value)
void SetStartActivity(const Aws::String &value)
const StartCondition & GetStartCondition() const
void SetRefreshFrequency(const Aws::String &value)
WriteJourneyRequest & WithRefreshFrequency(const char *value)
WriteJourneyRequest & WithQuietTime(const QuietTime &value)
WriteJourneyRequest & WithClosedDays(const ClosedDays &value)
WriteJourneyRequest & WithCreationDate(Aws::String &&value)
void SetStartCondition(const StartCondition &value)
WriteJourneyRequest & WithName(const Aws::String &value)
const Aws::String & GetRefreshFrequency() const
WriteJourneyRequest & AddActivities(Aws::String &&key, Activity &&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