AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ScheduledAction.h
Go to the documentation of this file.
1
6#pragma once
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace Redshift
27{
28namespace Model
29{
30
40 {
41 public:
45
46 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
53 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
54
58 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
59
63 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
64
68 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
69
73 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
74
78 inline ScheduledAction& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
79
83 inline ScheduledAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
84
88 inline ScheduledAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
89
90
97 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
98
105 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
106
113 inline void SetTargetAction(const ScheduledActionType& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
114
121 inline void SetTargetAction(ScheduledActionType&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
122
129 inline ScheduledAction& WithTargetAction(const ScheduledActionType& value) { SetTargetAction(value); return *this;}
130
137 inline ScheduledAction& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
138
139
151 inline const Aws::String& GetSchedule() const{ return m_schedule; }
152
164 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
165
177 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
178
190 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
191
203 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
204
216 inline ScheduledAction& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
217
229 inline ScheduledAction& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
230
242 inline ScheduledAction& WithSchedule(const char* value) { SetSchedule(value); return *this;}
243
244
255 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
256
267 inline bool IamRoleHasBeenSet() const { return m_iamRoleHasBeenSet; }
268
279 inline void SetIamRole(const Aws::String& value) { m_iamRoleHasBeenSet = true; m_iamRole = value; }
280
291 inline void SetIamRole(Aws::String&& value) { m_iamRoleHasBeenSet = true; m_iamRole = std::move(value); }
292
303 inline void SetIamRole(const char* value) { m_iamRoleHasBeenSet = true; m_iamRole.assign(value); }
304
315 inline ScheduledAction& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
316
327 inline ScheduledAction& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
328
339 inline ScheduledAction& WithIamRole(const char* value) { SetIamRole(value); return *this;}
340
341
345 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
346
350 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
351
355 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
356
360 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
361
365 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
366
371
376
380 inline ScheduledAction& WithScheduledActionDescription(const char* value) { SetScheduledActionDescription(value); return *this;}
381
382
386 inline const ScheduledActionState& GetState() const{ return m_state; }
387
391 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
392
396 inline void SetState(const ScheduledActionState& value) { m_stateHasBeenSet = true; m_state = value; }
397
401 inline void SetState(ScheduledActionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
402
406 inline ScheduledAction& WithState(const ScheduledActionState& value) { SetState(value); return *this;}
407
411 inline ScheduledAction& WithState(ScheduledActionState&& value) { SetState(std::move(value)); return *this;}
412
413
417 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
418
422 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
423
427 inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
428
432 inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::move(value); }
433
438
443
447 inline ScheduledAction& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(value); return *this; }
448
452 inline ScheduledAction& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(std::move(value)); return *this; }
453
454
459 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
460
465 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
466
471 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
472
477 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
478
483 inline ScheduledAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
484
489 inline ScheduledAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
490
491
496 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
497
502 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
503
508 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
509
514 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
515
520 inline ScheduledAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
521
526 inline ScheduledAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
527
528
529
530 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
531
532
533 inline bool ResponseMetadataHasBeenSet() const { return m_responseMetadataHasBeenSet; }
534
535
536 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = value; }
537
538
539 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::move(value); }
540
541
542 inline ScheduledAction& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
543
544
545 inline ScheduledAction& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
546
547 private:
548
549 Aws::String m_scheduledActionName;
550 bool m_scheduledActionNameHasBeenSet = false;
551
552 ScheduledActionType m_targetAction;
553 bool m_targetActionHasBeenSet = false;
554
555 Aws::String m_schedule;
556 bool m_scheduleHasBeenSet = false;
557
558 Aws::String m_iamRole;
559 bool m_iamRoleHasBeenSet = false;
560
561 Aws::String m_scheduledActionDescription;
562 bool m_scheduledActionDescriptionHasBeenSet = false;
563
564 ScheduledActionState m_state;
565 bool m_stateHasBeenSet = false;
566
567 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
568 bool m_nextInvocationsHasBeenSet = false;
569
570 Aws::Utils::DateTime m_startTime;
571 bool m_startTimeHasBeenSet = false;
572
573 Aws::Utils::DateTime m_endTime;
574 bool m_endTimeHasBeenSet = false;
575
576 ResponseMetadata m_responseMetadata;
577 bool m_responseMetadataHasBeenSet = false;
578 };
579
580} // namespace Model
581} // namespace Redshift
582} // namespace Aws
#define AWS_REDSHIFT_API
void SetIamRole(const Aws::String &value)
void SetSchedule(Aws::String &&value)
ScheduledAction & WithIamRole(const char *value)
void SetStartTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithEndTime(const Aws::Utils::DateTime &value)
void SetTargetAction(const ScheduledActionType &value)
void SetResponseMetadata(ResponseMetadata &&value)
ScheduledAction & WithSchedule(Aws::String &&value)
const ScheduledActionState & GetState() const
ScheduledAction & WithIamRole(const Aws::String &value)
ScheduledAction & WithResponseMetadata(ResponseMetadata &&value)
ScheduledAction & WithResponseMetadata(const ResponseMetadata &value)
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
void SetScheduledActionName(const char *value)
ScheduledAction & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
ScheduledAction & WithIamRole(Aws::String &&value)
ScheduledAction & WithScheduledActionName(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
void SetIamRole(Aws::String &&value)
void SetEndTime(const Aws::Utils::DateTime &value)
ScheduledAction & AddNextInvocations(Aws::Utils::DateTime &&value)
ScheduledAction & WithScheduledActionName(const Aws::String &value)
void SetStartTime(const Aws::Utils::DateTime &value)
void SetScheduledActionDescription(const Aws::String &value)
void SetScheduledActionName(Aws::String &&value)
void SetSchedule(const Aws::String &value)
const Aws::String & GetSchedule() const
void SetTargetAction(ScheduledActionType &&value)
void SetState(const ScheduledActionState &value)
ScheduledAction & WithTargetAction(ScheduledActionType &&value)
void SetScheduledActionName(const Aws::String &value)
ScheduledAction & WithState(ScheduledActionState &&value)
ScheduledAction & AddNextInvocations(const Aws::Utils::DateTime &value)
void SetState(ScheduledActionState &&value)
ScheduledAction & WithScheduledActionDescription(const Aws::String &value)
ScheduledAction & WithTargetAction(const ScheduledActionType &value)
AWS_REDSHIFT_API ScheduledAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const ScheduledActionType & GetTargetAction() const
void SetEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithSchedule(const Aws::String &value)
void SetScheduledActionDescription(const char *value)
ScheduledAction & WithStartTime(Aws::Utils::DateTime &&value)
const Aws::String & GetIamRole() const
void SetScheduledActionDescription(Aws::String &&value)
ScheduledAction & WithScheduledActionDescription(Aws::String &&value)
ScheduledAction & WithState(const ScheduledActionState &value)
void SetResponseMetadata(const ResponseMetadata &value)
AWS_REDSHIFT_API ScheduledAction(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetScheduledActionDescription() const
const Aws::String & GetScheduledActionName() const
ScheduledAction & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const ResponseMetadata & GetResponseMetadata() const
const Aws::Utils::DateTime & GetEndTime() const
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
ScheduledAction & WithEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithScheduledActionDescription(const char *value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
ScheduledAction & WithSchedule(const char *value)
ScheduledAction & WithScheduledActionName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream