AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename ActivitiesT = Aws::Map<Aws::String, Activity>>
64 void SetActivities(ActivitiesT&& value) { m_activitiesHasBeenSet = true; m_activities = std::forward<ActivitiesT>(value); }
65 template<typename ActivitiesT = Aws::Map<Aws::String, Activity>>
66 WriteJourneyRequest& WithActivities(ActivitiesT&& value) { SetActivities(std::forward<ActivitiesT>(value)); return *this;}
67 template<typename ActivitiesKeyT = Aws::String, typename ActivitiesValueT = Activity>
68 WriteJourneyRequest& AddActivities(ActivitiesKeyT&& key, ActivitiesValueT&& value) {
69 m_activitiesHasBeenSet = true; m_activities.emplace(std::forward<ActivitiesKeyT>(key), std::forward<ActivitiesValueT>(value)); return *this;
70 }
72
74
77 inline const Aws::String& GetCreationDate() const { return m_creationDate; }
78 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
79 template<typename CreationDateT = Aws::String>
80 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
81 template<typename CreationDateT = Aws::String>
82 WriteJourneyRequest& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
84
86
89 inline const Aws::String& GetLastModifiedDate() const { return m_lastModifiedDate; }
90 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
91 template<typename LastModifiedDateT = Aws::String>
92 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
93 template<typename LastModifiedDateT = Aws::String>
94 WriteJourneyRequest& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
96
98
101 inline const JourneyLimits& GetLimits() const { return m_limits; }
102 inline bool LimitsHasBeenSet() const { return m_limitsHasBeenSet; }
103 template<typename LimitsT = JourneyLimits>
104 void SetLimits(LimitsT&& value) { m_limitsHasBeenSet = true; m_limits = std::forward<LimitsT>(value); }
105 template<typename LimitsT = JourneyLimits>
106 WriteJourneyRequest& WithLimits(LimitsT&& value) { SetLimits(std::forward<LimitsT>(value)); return *this;}
108
110
115 inline bool GetLocalTime() const { return m_localTime; }
116 inline bool LocalTimeHasBeenSet() const { return m_localTimeHasBeenSet; }
117 inline void SetLocalTime(bool value) { m_localTimeHasBeenSet = true; m_localTime = value; }
118 inline WriteJourneyRequest& WithLocalTime(bool value) { SetLocalTime(value); return *this;}
120
122
127 inline const Aws::String& GetName() const { return m_name; }
128 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
129 template<typename NameT = Aws::String>
130 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
131 template<typename NameT = Aws::String>
132 WriteJourneyRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
134
136
148 inline const QuietTime& GetQuietTime() const { return m_quietTime; }
149 inline bool QuietTimeHasBeenSet() const { return m_quietTimeHasBeenSet; }
150 template<typename QuietTimeT = QuietTime>
151 void SetQuietTime(QuietTimeT&& value) { m_quietTimeHasBeenSet = true; m_quietTime = std::forward<QuietTimeT>(value); }
152 template<typename QuietTimeT = QuietTime>
153 WriteJourneyRequest& WithQuietTime(QuietTimeT&& value) { SetQuietTime(std::forward<QuietTimeT>(value)); return *this;}
155
157
161 inline const Aws::String& GetRefreshFrequency() const { return m_refreshFrequency; }
162 inline bool RefreshFrequencyHasBeenSet() const { return m_refreshFrequencyHasBeenSet; }
163 template<typename RefreshFrequencyT = Aws::String>
164 void SetRefreshFrequency(RefreshFrequencyT&& value) { m_refreshFrequencyHasBeenSet = true; m_refreshFrequency = std::forward<RefreshFrequencyT>(value); }
165 template<typename RefreshFrequencyT = Aws::String>
166 WriteJourneyRequest& WithRefreshFrequency(RefreshFrequencyT&& value) { SetRefreshFrequency(std::forward<RefreshFrequencyT>(value)); return *this;}
168
170
173 inline const JourneySchedule& GetSchedule() const { return m_schedule; }
174 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
175 template<typename ScheduleT = JourneySchedule>
176 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
177 template<typename ScheduleT = JourneySchedule>
178 WriteJourneyRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
180
182
187 inline const Aws::String& GetStartActivity() const { return m_startActivity; }
188 inline bool StartActivityHasBeenSet() const { return m_startActivityHasBeenSet; }
189 template<typename StartActivityT = Aws::String>
190 void SetStartActivity(StartActivityT&& value) { m_startActivityHasBeenSet = true; m_startActivity = std::forward<StartActivityT>(value); }
191 template<typename StartActivityT = Aws::String>
192 WriteJourneyRequest& WithStartActivity(StartActivityT&& value) { SetStartActivity(std::forward<StartActivityT>(value)); return *this;}
194
196
199 inline const StartCondition& GetStartCondition() const { return m_startCondition; }
200 inline bool StartConditionHasBeenSet() const { return m_startConditionHasBeenSet; }
201 template<typename StartConditionT = StartCondition>
202 void SetStartCondition(StartConditionT&& value) { m_startConditionHasBeenSet = true; m_startCondition = std::forward<StartConditionT>(value); }
203 template<typename StartConditionT = StartCondition>
204 WriteJourneyRequest& WithStartCondition(StartConditionT&& value) { SetStartCondition(std::forward<StartConditionT>(value)); return *this;}
206
208
219 inline State GetState() const { return m_state; }
220 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
221 inline void SetState(State value) { m_stateHasBeenSet = true; m_state = value; }
222 inline WriteJourneyRequest& WithState(State value) { SetState(value); return *this;}
224
226
230 inline bool GetWaitForQuietTime() const { return m_waitForQuietTime; }
231 inline bool WaitForQuietTimeHasBeenSet() const { return m_waitForQuietTimeHasBeenSet; }
232 inline void SetWaitForQuietTime(bool value) { m_waitForQuietTimeHasBeenSet = true; m_waitForQuietTime = value; }
233 inline WriteJourneyRequest& WithWaitForQuietTime(bool value) { SetWaitForQuietTime(value); return *this;}
235
237
241 inline bool GetRefreshOnSegmentUpdate() const { return m_refreshOnSegmentUpdate; }
242 inline bool RefreshOnSegmentUpdateHasBeenSet() const { return m_refreshOnSegmentUpdateHasBeenSet; }
243 inline void SetRefreshOnSegmentUpdate(bool value) { m_refreshOnSegmentUpdateHasBeenSet = true; m_refreshOnSegmentUpdate = value; }
246
248
251 inline const JourneyChannelSettings& GetJourneyChannelSettings() const { return m_journeyChannelSettings; }
252 inline bool JourneyChannelSettingsHasBeenSet() const { return m_journeyChannelSettingsHasBeenSet; }
253 template<typename JourneyChannelSettingsT = JourneyChannelSettings>
254 void SetJourneyChannelSettings(JourneyChannelSettingsT&& value) { m_journeyChannelSettingsHasBeenSet = true; m_journeyChannelSettings = std::forward<JourneyChannelSettingsT>(value); }
255 template<typename JourneyChannelSettingsT = JourneyChannelSettings>
256 WriteJourneyRequest& WithJourneyChannelSettings(JourneyChannelSettingsT&& value) { SetJourneyChannelSettings(std::forward<JourneyChannelSettingsT>(value)); return *this;}
258
260
264 inline bool GetSendingSchedule() const { return m_sendingSchedule; }
265 inline bool SendingScheduleHasBeenSet() const { return m_sendingScheduleHasBeenSet; }
266 inline void SetSendingSchedule(bool value) { m_sendingScheduleHasBeenSet = true; m_sendingSchedule = value; }
267 inline WriteJourneyRequest& WithSendingSchedule(bool value) { SetSendingSchedule(value); return *this;}
269
271
275 inline const OpenHours& GetOpenHours() const { return m_openHours; }
276 inline bool OpenHoursHasBeenSet() const { return m_openHoursHasBeenSet; }
277 template<typename OpenHoursT = OpenHours>
278 void SetOpenHours(OpenHoursT&& value) { m_openHoursHasBeenSet = true; m_openHours = std::forward<OpenHoursT>(value); }
279 template<typename OpenHoursT = OpenHours>
280 WriteJourneyRequest& WithOpenHours(OpenHoursT&& value) { SetOpenHours(std::forward<OpenHoursT>(value)); return *this;}
282
284
288 inline const ClosedDays& GetClosedDays() const { return m_closedDays; }
289 inline bool ClosedDaysHasBeenSet() const { return m_closedDaysHasBeenSet; }
290 template<typename ClosedDaysT = ClosedDays>
291 void SetClosedDays(ClosedDaysT&& value) { m_closedDaysHasBeenSet = true; m_closedDays = std::forward<ClosedDaysT>(value); }
292 template<typename ClosedDaysT = ClosedDays>
293 WriteJourneyRequest& WithClosedDays(ClosedDaysT&& value) { SetClosedDays(std::forward<ClosedDaysT>(value)); return *this;}
295
297
310 inline const Aws::Vector<__TimezoneEstimationMethodsElement>& GetTimezoneEstimationMethods() const { return m_timezoneEstimationMethods; }
311 inline bool TimezoneEstimationMethodsHasBeenSet() const { return m_timezoneEstimationMethodsHasBeenSet; }
312 template<typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
313 void SetTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods = std::forward<TimezoneEstimationMethodsT>(value); }
314 template<typename TimezoneEstimationMethodsT = Aws::Vector<__TimezoneEstimationMethodsElement>>
315 WriteJourneyRequest& WithTimezoneEstimationMethods(TimezoneEstimationMethodsT&& value) { SetTimezoneEstimationMethods(std::forward<TimezoneEstimationMethodsT>(value)); return *this;}
316 inline WriteJourneyRequest& AddTimezoneEstimationMethods(__TimezoneEstimationMethodsElement value) { m_timezoneEstimationMethodsHasBeenSet = true; m_timezoneEstimationMethods.push_back(value); return *this; }
318 private:
319
321 bool m_activitiesHasBeenSet = false;
322
323 Aws::String m_creationDate;
324 bool m_creationDateHasBeenSet = false;
325
326 Aws::String m_lastModifiedDate;
327 bool m_lastModifiedDateHasBeenSet = false;
328
329 JourneyLimits m_limits;
330 bool m_limitsHasBeenSet = false;
331
332 bool m_localTime{false};
333 bool m_localTimeHasBeenSet = false;
334
335 Aws::String m_name;
336 bool m_nameHasBeenSet = false;
337
338 QuietTime m_quietTime;
339 bool m_quietTimeHasBeenSet = false;
340
341 Aws::String m_refreshFrequency;
342 bool m_refreshFrequencyHasBeenSet = false;
343
344 JourneySchedule m_schedule;
345 bool m_scheduleHasBeenSet = false;
346
347 Aws::String m_startActivity;
348 bool m_startActivityHasBeenSet = false;
349
350 StartCondition m_startCondition;
351 bool m_startConditionHasBeenSet = false;
352
353 State m_state{State::NOT_SET};
354 bool m_stateHasBeenSet = false;
355
356 bool m_waitForQuietTime{false};
357 bool m_waitForQuietTimeHasBeenSet = false;
358
359 bool m_refreshOnSegmentUpdate{false};
360 bool m_refreshOnSegmentUpdateHasBeenSet = false;
361
362 JourneyChannelSettings m_journeyChannelSettings;
363 bool m_journeyChannelSettingsHasBeenSet = false;
364
365 bool m_sendingSchedule{false};
366 bool m_sendingScheduleHasBeenSet = false;
367
368 OpenHours m_openHours;
369 bool m_openHoursHasBeenSet = false;
370
371 ClosedDays m_closedDays;
372 bool m_closedDaysHasBeenSet = false;
373
374 Aws::Vector<__TimezoneEstimationMethodsElement> m_timezoneEstimationMethods;
375 bool m_timezoneEstimationMethodsHasBeenSet = false;
376 };
377
378} // namespace Model
379} // namespace Pinpoint
380} // 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