AWS SDK for C++  1.9.159
AWS SDK for C++
ScheduledAction.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Xml
22 {
23  class XmlNode;
24 } // namespace Xml
25 } // namespace Utils
26 namespace Redshift
27 {
28 namespace Model
29 {
30 
40  {
41  public:
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  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 
370  inline ScheduledAction& WithScheduledActionDescription(const Aws::String& value) { SetScheduledActionDescription(value); return *this;}
371 
375  inline ScheduledAction& WithScheduledActionDescription(Aws::String&& value) { SetScheduledActionDescription(std::move(value)); return *this;}
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 
437  inline ScheduledAction& WithNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { SetNextInvocations(value); return *this;}
438 
442  inline ScheduledAction& WithNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { SetNextInvocations(std::move(value)); return *this;}
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;
551 
552  ScheduledActionType m_targetAction;
553  bool m_targetActionHasBeenSet;
554 
555  Aws::String m_schedule;
556  bool m_scheduleHasBeenSet;
557 
558  Aws::String m_iamRole;
559  bool m_iamRoleHasBeenSet;
560 
561  Aws::String m_scheduledActionDescription;
562  bool m_scheduledActionDescriptionHasBeenSet;
563 
564  ScheduledActionState m_state;
565  bool m_stateHasBeenSet;
566 
567  Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
568  bool m_nextInvocationsHasBeenSet;
569 
570  Aws::Utils::DateTime m_startTime;
571  bool m_startTimeHasBeenSet;
572 
573  Aws::Utils::DateTime m_endTime;
574  bool m_endTimeHasBeenSet;
575 
576  ResponseMetadata m_responseMetadata;
577  bool m_responseMetadataHasBeenSet;
578  };
579 
580 } // namespace Model
581 } // namespace Redshift
582 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
ScheduledActionState.h
Aws::Redshift::Model::ScheduledAction::WithEndTime
ScheduledAction & WithEndTime(Aws::Utils::DateTime &&value)
Definition: ScheduledAction.h:526
Aws::Redshift::Model::ScheduledAction::GetNextInvocations
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
Definition: ScheduledAction.h:417
Aws::Redshift::Model::ScheduledAction::WithResponseMetadata
ScheduledAction & WithResponseMetadata(ResponseMetadata &&value)
Definition: ScheduledAction.h:545
Aws::Redshift::Model::ScheduledAction::GetTargetAction
const ScheduledActionType & GetTargetAction() const
Definition: ScheduledAction.h:97
Aws::Redshift::Model::ScheduledAction::WithSchedule
ScheduledAction & WithSchedule(const Aws::String &value)
Definition: ScheduledAction.h:216
Aws::Redshift::Model::ScheduledAction::GetScheduledActionDescription
const Aws::String & GetScheduledActionDescription() const
Definition: ScheduledAction.h:345
Aws::Redshift::Model::ScheduledAction::GetState
const ScheduledActionState & GetState() const
Definition: ScheduledAction.h:386
Aws::Redshift::Model::ScheduledAction::StateHasBeenSet
bool StateHasBeenSet() const
Definition: ScheduledAction.h:391
Aws::Redshift::Model::ScheduledAction::SetNextInvocations
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: ScheduledAction.h:432
Aws::Redshift::Model::ScheduledAction::GetIamRole
const Aws::String & GetIamRole() const
Definition: ScheduledAction.h:255
Aws::Redshift::Model::ScheduledAction::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ScheduledAction
Definition: ScheduledAction.h:40
Aws::Redshift::Model::ScheduledAction::WithTargetAction
ScheduledAction & WithTargetAction(const ScheduledActionType &value)
Definition: ScheduledAction.h:129
Aws::Redshift::Model::ScheduledAction::ScheduledActionDescriptionHasBeenSet
bool ScheduledActionDescriptionHasBeenSet() const
Definition: ScheduledAction.h:350
Aws::Redshift::Model::ScheduledAction::WithScheduledActionName
ScheduledAction & WithScheduledActionName(Aws::String &&value)
Definition: ScheduledAction.h:83
DateTime.h
Aws::Redshift::Model::ScheduledAction::SetScheduledActionDescription
void SetScheduledActionDescription(const char *value)
Definition: ScheduledAction.h:365
Aws::Redshift::Model::ScheduledAction::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: ScheduledAction.h:530
Aws::Redshift::Model::ScheduledAction::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: ScheduledAction.h:508
Aws::Redshift::Model::ScheduledAction::SetNextInvocations
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: ScheduledAction.h:427
Aws::Redshift::Model::ScheduledAction::WithTargetAction
ScheduledAction & WithTargetAction(ScheduledActionType &&value)
Definition: ScheduledAction.h:137
Aws::Redshift::Model::ScheduledAction::WithIamRole
ScheduledAction & WithIamRole(const char *value)
Definition: ScheduledAction.h:339
Aws::Redshift::Model::ScheduledAction::WithScheduledActionDescription
ScheduledAction & WithScheduledActionDescription(Aws::String &&value)
Definition: ScheduledAction.h:375
Aws::Redshift::Model::ScheduledAction::ScheduledAction
ScheduledAction(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ScheduledAction::WithScheduledActionName
ScheduledAction & WithScheduledActionName(const Aws::String &value)
Definition: ScheduledAction.h:78
Aws::Redshift::Model::ScheduledAction::ScheduledAction
ScheduledAction()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::Redshift::Model::ScheduledAction::operator=
ScheduledAction & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ScheduledAction::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: ScheduledAction.h:496
AWSVector.h
Aws::Redshift::Model::ScheduledAction::SetState
void SetState(ScheduledActionState &&value)
Definition: ScheduledAction.h:401
Aws::Redshift::Model::ScheduledAction::WithState
ScheduledAction & WithState(const ScheduledActionState &value)
Definition: ScheduledAction.h:406
Aws::Redshift::Model::ScheduledAction::SetSchedule
void SetSchedule(Aws::String &&value)
Definition: ScheduledAction.h:190
Aws::Redshift::Model::ScheduledAction::WithIamRole
ScheduledAction & WithIamRole(const Aws::String &value)
Definition: ScheduledAction.h:315
Aws::Redshift::Model::ScheduledAction::WithStartTime
ScheduledAction & WithStartTime(const Aws::Utils::DateTime &value)
Definition: ScheduledAction.h:483
Aws::Redshift::Model::ScheduledAction::SetScheduledActionName
void SetScheduledActionName(const Aws::String &value)
Definition: ScheduledAction.h:63
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ScheduledAction::SetScheduledActionName
void SetScheduledActionName(const char *value)
Definition: ScheduledAction.h:73
Aws::Redshift::Model::ScheduledAction::SetIamRole
void SetIamRole(const Aws::String &value)
Definition: ScheduledAction.h:279
Aws::Redshift::Model::ScheduledAction::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: ScheduledAction.h:539
Aws::Redshift::Model::ScheduledAction::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: ScheduledAction.h:471
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::Redshift::Model::ScheduledAction::SetSchedule
void SetSchedule(const Aws::String &value)
Definition: ScheduledAction.h:177
Aws::Redshift::Model::ScheduledAction::ScheduledActionNameHasBeenSet
bool ScheduledActionNameHasBeenSet() const
Definition: ScheduledAction.h:58
ScheduledActionType.h
Aws::Redshift::Model::ScheduledAction::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: ScheduledAction.h:536
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
AWSString.h
Aws::Redshift::Model::ScheduledAction::NextInvocationsHasBeenSet
bool NextInvocationsHasBeenSet() const
Definition: ScheduledAction.h:422
Aws::Redshift::Model::ScheduledAction::SetIamRole
void SetIamRole(Aws::String &&value)
Definition: ScheduledAction.h:291
Aws::Redshift::Model::ScheduledAction::WithSchedule
ScheduledAction & WithSchedule(Aws::String &&value)
Definition: ScheduledAction.h:229
Aws::Redshift::Model::ScheduledAction::SetState
void SetState(const ScheduledActionState &value)
Definition: ScheduledAction.h:396
Aws::Redshift::Model::ScheduledAction::WithScheduledActionDescription
ScheduledAction & WithScheduledActionDescription(const char *value)
Definition: ScheduledAction.h:380
Aws::Redshift::Model::ScheduledAction::AddNextInvocations
ScheduledAction & AddNextInvocations(const Aws::Utils::DateTime &value)
Definition: ScheduledAction.h:447
Aws::Redshift::Model::ScheduledAction::WithState
ScheduledAction & WithState(ScheduledActionState &&value)
Definition: ScheduledAction.h:411
Aws::Redshift::Model::ScheduledAction::WithScheduledActionName
ScheduledAction & WithScheduledActionName(const char *value)
Definition: ScheduledAction.h:88
Aws::Redshift::Model::ScheduledAction::SetScheduledActionDescription
void SetScheduledActionDescription(Aws::String &&value)
Definition: ScheduledAction.h:360
Aws::Redshift::Model::ScheduledAction::IamRoleHasBeenSet
bool IamRoleHasBeenSet() const
Definition: ScheduledAction.h:267
Aws::Redshift::Model::ScheduledAction::TargetActionHasBeenSet
bool TargetActionHasBeenSet() const
Definition: ScheduledAction.h:105
Aws::Redshift::Model::ScheduledAction::WithNextInvocations
ScheduledAction & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: ScheduledAction.h:442
Aws::Redshift::Model::ScheduledAction::GetScheduledActionName
const Aws::String & GetScheduledActionName() const
Definition: ScheduledAction.h:53
Aws::Redshift::Model::ScheduledAction::AddNextInvocations
ScheduledAction & AddNextInvocations(Aws::Utils::DateTime &&value)
Definition: ScheduledAction.h:452
Aws::Redshift::Model::ScheduledAction::ScheduleHasBeenSet
bool ScheduleHasBeenSet() const
Definition: ScheduledAction.h:164
Aws::Redshift::Model::ScheduledAction::SetSchedule
void SetSchedule(const char *value)
Definition: ScheduledAction.h:203
Aws::Redshift::Model::ScheduledAction::WithStartTime
ScheduledAction & WithStartTime(Aws::Utils::DateTime &&value)
Definition: ScheduledAction.h:489
Aws::Redshift::Model::ScheduledAction::SetScheduledActionDescription
void SetScheduledActionDescription(const Aws::String &value)
Definition: ScheduledAction.h:355
Aws::Redshift::Model::ScheduledAction::EndTimeHasBeenSet
bool EndTimeHasBeenSet() const
Definition: ScheduledAction.h:502
Aws
Definition: AccessManagementClient.h:15
Aws::Redshift::Model::ScheduledAction::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: ScheduledAction.h:477
Aws::Redshift::Model::ScheduledAction::SetScheduledActionName
void SetScheduledActionName(Aws::String &&value)
Definition: ScheduledAction.h:68
Redshift_EXPORTS.h
Aws::Redshift::Model::ScheduledActionState
ScheduledActionState
Definition: ScheduledActionState.h:17
Aws::Redshift::Model::ScheduledAction::SetTargetAction
void SetTargetAction(const ScheduledActionType &value)
Definition: ScheduledAction.h:113
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ScheduledAction::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: ScheduledAction.h:514
Aws::Redshift::Model::ScheduledAction::SetIamRole
void SetIamRole(const char *value)
Definition: ScheduledAction.h:303
index
int index
Definition: cJSON.h:181
ResponseMetadata.h
Aws::Redshift::Model::ScheduledAction::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ScheduledActionType
Definition: ScheduledActionType.h:35
Aws::Redshift::Model::ScheduledAction::StartTimeHasBeenSet
bool StartTimeHasBeenSet() const
Definition: ScheduledAction.h:465
Aws::Redshift::Model::ScheduledAction::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: ScheduledAction.h:459
Aws::Redshift::Model::ScheduledAction::WithSchedule
ScheduledAction & WithSchedule(const char *value)
Definition: ScheduledAction.h:242
Aws::Redshift::Model::ScheduledAction::SetTargetAction
void SetTargetAction(ScheduledActionType &&value)
Definition: ScheduledAction.h:121
Aws::Redshift::Model::ScheduledAction::WithResponseMetadata
ScheduledAction & WithResponseMetadata(const ResponseMetadata &value)
Definition: ScheduledAction.h:542
Aws::Redshift::Model::ScheduledAction::WithEndTime
ScheduledAction & WithEndTime(const Aws::Utils::DateTime &value)
Definition: ScheduledAction.h:520
Aws::Redshift::Model::ScheduledAction::ResponseMetadataHasBeenSet
bool ResponseMetadataHasBeenSet() const
Definition: ScheduledAction.h:533
Aws::Redshift::Model::ScheduledAction::GetSchedule
const Aws::String & GetSchedule() const
Definition: ScheduledAction.h:151
Aws::Redshift::Model::ScheduledAction::WithIamRole
ScheduledAction & WithIamRole(Aws::String &&value)
Definition: ScheduledAction.h:327
Aws::Redshift::Model::ScheduledAction::WithNextInvocations
ScheduledAction & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: ScheduledAction.h:437
Aws::Redshift::Model::ScheduledAction::WithScheduledActionDescription
ScheduledAction & WithScheduledActionDescription(const Aws::String &value)
Definition: ScheduledAction.h:370