AWS SDK for C++  1.9.104
AWS SDK for C++
CreateScheduledActionResult.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 template<typename RESULT_TYPE>
19 class AmazonWebServiceResult;
20 
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlDocument;
26 } // namespace Xml
27 } // namespace Utils
28 namespace Redshift
29 {
30 namespace Model
31 {
41  {
42  public:
46 
47 
51  inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
52 
56  inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionName = value; }
57 
61  inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionName = std::move(value); }
62 
66  inline void SetScheduledActionName(const char* value) { m_scheduledActionName.assign(value); }
67 
71  inline CreateScheduledActionResult& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
72 
76  inline CreateScheduledActionResult& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
77 
81  inline CreateScheduledActionResult& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
82 
83 
90  inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
91 
98  inline void SetTargetAction(const ScheduledActionType& value) { m_targetAction = value; }
99 
106  inline void SetTargetAction(ScheduledActionType&& value) { m_targetAction = std::move(value); }
107 
114  inline CreateScheduledActionResult& WithTargetAction(const ScheduledActionType& value) { SetTargetAction(value); return *this;}
115 
122  inline CreateScheduledActionResult& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
123 
124 
136  inline const Aws::String& GetSchedule() const{ return m_schedule; }
137 
149  inline void SetSchedule(const Aws::String& value) { m_schedule = value; }
150 
162  inline void SetSchedule(Aws::String&& value) { m_schedule = std::move(value); }
163 
175  inline void SetSchedule(const char* value) { m_schedule.assign(value); }
176 
188  inline CreateScheduledActionResult& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
189 
201  inline CreateScheduledActionResult& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
202 
214  inline CreateScheduledActionResult& WithSchedule(const char* value) { SetSchedule(value); return *this;}
215 
216 
227  inline const Aws::String& GetIamRole() const{ return m_iamRole; }
228 
239  inline void SetIamRole(const Aws::String& value) { m_iamRole = value; }
240 
251  inline void SetIamRole(Aws::String&& value) { m_iamRole = std::move(value); }
252 
263  inline void SetIamRole(const char* value) { m_iamRole.assign(value); }
264 
275  inline CreateScheduledActionResult& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
276 
287  inline CreateScheduledActionResult& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
288 
299  inline CreateScheduledActionResult& WithIamRole(const char* value) { SetIamRole(value); return *this;}
300 
301 
305  inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
306 
310  inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescription = value; }
311 
315  inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescription = std::move(value); }
316 
320  inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescription.assign(value); }
321 
325  inline CreateScheduledActionResult& WithScheduledActionDescription(const Aws::String& value) { SetScheduledActionDescription(value); return *this;}
326 
330  inline CreateScheduledActionResult& WithScheduledActionDescription(Aws::String&& value) { SetScheduledActionDescription(std::move(value)); return *this;}
331 
335  inline CreateScheduledActionResult& WithScheduledActionDescription(const char* value) { SetScheduledActionDescription(value); return *this;}
336 
337 
341  inline const ScheduledActionState& GetState() const{ return m_state; }
342 
346  inline void SetState(const ScheduledActionState& value) { m_state = value; }
347 
351  inline void SetState(ScheduledActionState&& value) { m_state = std::move(value); }
352 
356  inline CreateScheduledActionResult& WithState(const ScheduledActionState& value) { SetState(value); return *this;}
357 
361  inline CreateScheduledActionResult& WithState(ScheduledActionState&& value) { SetState(std::move(value)); return *this;}
362 
363 
367  inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
368 
372  inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocations = value; }
373 
377  inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocations = std::move(value); }
378 
382  inline CreateScheduledActionResult& WithNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { SetNextInvocations(value); return *this;}
383 
387  inline CreateScheduledActionResult& WithNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { SetNextInvocations(std::move(value)); return *this;}
388 
392  inline CreateScheduledActionResult& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocations.push_back(value); return *this; }
393 
397  inline CreateScheduledActionResult& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocations.push_back(std::move(value)); return *this; }
398 
399 
404  inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
405 
410  inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
411 
416  inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
417 
422  inline CreateScheduledActionResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
423 
428  inline CreateScheduledActionResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
429 
430 
435  inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
436 
441  inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; }
442 
447  inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); }
448 
453  inline CreateScheduledActionResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
454 
459  inline CreateScheduledActionResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
460 
461 
462 
463  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
464 
465 
466  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
467 
468 
469  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
470 
471 
472  inline CreateScheduledActionResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
473 
474 
475  inline CreateScheduledActionResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
476 
477  private:
478 
479  Aws::String m_scheduledActionName;
480 
481  ScheduledActionType m_targetAction;
482 
483  Aws::String m_schedule;
484 
485  Aws::String m_iamRole;
486 
487  Aws::String m_scheduledActionDescription;
488 
489  ScheduledActionState m_state;
490 
491  Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
492 
493  Aws::Utils::DateTime m_startTime;
494 
495  Aws::Utils::DateTime m_endTime;
496 
497  ResponseMetadata m_responseMetadata;
498  };
499 
500 } // namespace Model
501 } // namespace Redshift
502 } // namespace Aws
Aws::Redshift::Model::CreateScheduledActionResult::GetSchedule
const Aws::String & GetSchedule() const
Definition: CreateScheduledActionResult.h:136
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionName
void SetScheduledActionName(const Aws::String &value)
Definition: CreateScheduledActionResult.h:56
Aws::Redshift::Model::CreateScheduledActionResult::SetIamRole
void SetIamRole(const Aws::String &value)
Definition: CreateScheduledActionResult.h:239
ScheduledActionState.h
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Redshift::Model::CreateScheduledActionResult::GetTargetAction
const ScheduledActionType & GetTargetAction() const
Definition: CreateScheduledActionResult.h:90
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionName
void SetScheduledActionName(Aws::String &&value)
Definition: CreateScheduledActionResult.h:61
Aws::Redshift::Model::CreateScheduledActionResult::GetStartTime
const Aws::Utils::DateTime & GetStartTime() const
Definition: CreateScheduledActionResult.h:404
Aws::Redshift::Model::CreateScheduledActionResult::WithState
CreateScheduledActionResult & WithState(ScheduledActionState &&value)
Definition: CreateScheduledActionResult.h:361
Aws::Redshift::Model::CreateScheduledActionResult::WithTargetAction
CreateScheduledActionResult & WithTargetAction(const ScheduledActionType &value)
Definition: CreateScheduledActionResult.h:114
Aws::Redshift::Model::CreateScheduledActionResult::CreateScheduledActionResult
CreateScheduledActionResult()
Aws::Redshift::Model::CreateScheduledActionResult::WithSchedule
CreateScheduledActionResult & WithSchedule(const char *value)
Definition: CreateScheduledActionResult.h:214
Aws::Redshift::Model::CreateScheduledActionResult::SetState
void SetState(ScheduledActionState &&value)
Definition: CreateScheduledActionResult.h:351
Aws::Redshift::Model::CreateScheduledActionResult::WithNextInvocations
CreateScheduledActionResult & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: CreateScheduledActionResult.h:382
Aws::Redshift::Model::CreateScheduledActionResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: CreateScheduledActionResult.h:469
Aws::Redshift::Model::CreateScheduledActionResult::SetEndTime
void SetEndTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionResult.h:447
Aws::Redshift::Model::CreateScheduledActionResult::AddNextInvocations
CreateScheduledActionResult & AddNextInvocations(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionResult.h:392
Aws::Redshift::Model::CreateScheduledActionResult::WithNextInvocations
CreateScheduledActionResult & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: CreateScheduledActionResult.h:387
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionDescription
CreateScheduledActionResult & WithScheduledActionDescription(const Aws::String &value)
Definition: CreateScheduledActionResult.h:325
DateTime.h
Aws::Redshift::Model::CreateScheduledActionResult::SetSchedule
void SetSchedule(const Aws::String &value)
Definition: CreateScheduledActionResult.h:149
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Redshift::Model::CreateScheduledActionResult::SetEndTime
void SetEndTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionResult.h:441
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionName
void SetScheduledActionName(const char *value)
Definition: CreateScheduledActionResult.h:66
AWSVector.h
Aws::Redshift::Model::CreateScheduledActionResult::SetNextInvocations
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
Definition: CreateScheduledActionResult.h:377
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionDescription
CreateScheduledActionResult & WithScheduledActionDescription(const char *value)
Definition: CreateScheduledActionResult.h:335
Aws::Redshift::Model::CreateScheduledActionResult::SetIamRole
void SetIamRole(Aws::String &&value)
Definition: CreateScheduledActionResult.h:251
Aws::Redshift::Model::CreateScheduledActionResult::SetTargetAction
void SetTargetAction(ScheduledActionType &&value)
Definition: CreateScheduledActionResult.h:106
Aws::Redshift::Model::CreateScheduledActionResult::WithTargetAction
CreateScheduledActionResult & WithTargetAction(ScheduledActionType &&value)
Definition: CreateScheduledActionResult.h:122
Aws::Redshift::Model::CreateScheduledActionResult::AddNextInvocations
CreateScheduledActionResult & AddNextInvocations(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionResult.h:397
Aws::Redshift::Model::CreateScheduledActionResult::WithResponseMetadata
CreateScheduledActionResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: CreateScheduledActionResult.h:472
Aws::Redshift::Model::CreateScheduledActionResult::WithIamRole
CreateScheduledActionResult & WithIamRole(Aws::String &&value)
Definition: CreateScheduledActionResult.h:287
Aws::Redshift::Model::CreateScheduledActionResult::WithSchedule
CreateScheduledActionResult & WithSchedule(Aws::String &&value)
Definition: CreateScheduledActionResult.h:201
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionDescription
void SetScheduledActionDescription(Aws::String &&value)
Definition: CreateScheduledActionResult.h:315
Aws::Redshift::Model::CreateScheduledActionResult::WithEndTime
CreateScheduledActionResult & WithEndTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionResult.h:459
Aws::Redshift::Model::CreateScheduledActionResult::GetEndTime
const Aws::Utils::DateTime & GetEndTime() const
Definition: CreateScheduledActionResult.h:435
Aws::Redshift::Model::CreateScheduledActionResult::SetStartTime
void SetStartTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionResult.h:410
ScheduledActionType.h
Aws::Redshift::Model::CreateScheduledActionResult::SetNextInvocations
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
Definition: CreateScheduledActionResult.h:372
Aws::Redshift::Model::CreateScheduledActionResult::GetScheduledActionName
const Aws::String & GetScheduledActionName() const
Definition: CreateScheduledActionResult.h:51
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::CreateScheduledActionResult::SetIamRole
void SetIamRole(const char *value)
Definition: CreateScheduledActionResult.h:263
Aws::Redshift::Model::CreateScheduledActionResult::WithEndTime
CreateScheduledActionResult & WithEndTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionResult.h:453
Aws::Redshift::Model::CreateScheduledActionResult::WithIamRole
CreateScheduledActionResult & WithIamRole(const Aws::String &value)
Definition: CreateScheduledActionResult.h:275
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionName
CreateScheduledActionResult & WithScheduledActionName(const char *value)
Definition: CreateScheduledActionResult.h:81
Aws::Redshift::Model::CreateScheduledActionResult::GetIamRole
const Aws::String & GetIamRole() const
Definition: CreateScheduledActionResult.h:227
AWSString.h
Aws::Redshift::Model::CreateScheduledActionResult::operator=
CreateScheduledActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::CreateScheduledActionResult
Definition: CreateScheduledActionResult.h:41
Aws::Redshift::Model::CreateScheduledActionResult::WithState
CreateScheduledActionResult & WithState(const ScheduledActionState &value)
Definition: CreateScheduledActionResult.h:356
Aws::Redshift::Model::CreateScheduledActionResult::GetState
const ScheduledActionState & GetState() const
Definition: CreateScheduledActionResult.h:341
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionDescription
void SetScheduledActionDescription(const char *value)
Definition: CreateScheduledActionResult.h:320
Aws::Redshift::Model::CreateScheduledActionResult::GetScheduledActionDescription
const Aws::String & GetScheduledActionDescription() const
Definition: CreateScheduledActionResult.h:305
Aws::Redshift::Model::CreateScheduledActionResult::WithResponseMetadata
CreateScheduledActionResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: CreateScheduledActionResult.h:475
Aws::Redshift::Model::CreateScheduledActionResult::SetState
void SetState(const ScheduledActionState &value)
Definition: CreateScheduledActionResult.h:346
Aws::Redshift::Model::CreateScheduledActionResult::GetNextInvocations
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
Definition: CreateScheduledActionResult.h:367
Aws::Redshift::Model::CreateScheduledActionResult::SetTargetAction
void SetTargetAction(const ScheduledActionType &value)
Definition: CreateScheduledActionResult.h:98
Aws::Redshift::Model::CreateScheduledActionResult::SetScheduledActionDescription
void SetScheduledActionDescription(const Aws::String &value)
Definition: CreateScheduledActionResult.h:310
Aws::Redshift::Model::CreateScheduledActionResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: CreateScheduledActionResult.h:466
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::Redshift::Model::ScheduledActionState
ScheduledActionState
Definition: ScheduledActionState.h:17
Aws::Redshift::Model::CreateScheduledActionResult::SetSchedule
void SetSchedule(Aws::String &&value)
Definition: CreateScheduledActionResult.h:162
Aws::Redshift::Model::CreateScheduledActionResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: CreateScheduledActionResult.h:463
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::CreateScheduledActionResult::WithStartTime
CreateScheduledActionResult & WithStartTime(const Aws::Utils::DateTime &value)
Definition: CreateScheduledActionResult.h:422
Aws::Redshift::Model::CreateScheduledActionResult::WithStartTime
CreateScheduledActionResult & WithStartTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionResult.h:428
ResponseMetadata.h
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionName
CreateScheduledActionResult & WithScheduledActionName(Aws::String &&value)
Definition: CreateScheduledActionResult.h:76
Aws::Redshift::Model::ScheduledActionType
Definition: ScheduledActionType.h:35
Aws::Redshift::Model::CreateScheduledActionResult::WithSchedule
CreateScheduledActionResult & WithSchedule(const Aws::String &value)
Definition: CreateScheduledActionResult.h:188
Aws::Redshift::Model::CreateScheduledActionResult::SetStartTime
void SetStartTime(Aws::Utils::DateTime &&value)
Definition: CreateScheduledActionResult.h:416
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionName
CreateScheduledActionResult & WithScheduledActionName(const Aws::String &value)
Definition: CreateScheduledActionResult.h:71
Aws::Redshift::Model::CreateScheduledActionResult::CreateScheduledActionResult
CreateScheduledActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::Redshift::Model::CreateScheduledActionResult::WithIamRole
CreateScheduledActionResult & WithIamRole(const char *value)
Definition: CreateScheduledActionResult.h:299
Aws::Redshift::Model::CreateScheduledActionResult::SetSchedule
void SetSchedule(const char *value)
Definition: CreateScheduledActionResult.h:175
Aws::Redshift::Model::CreateScheduledActionResult::WithScheduledActionDescription
CreateScheduledActionResult & WithScheduledActionDescription(Aws::String &&value)
Definition: CreateScheduledActionResult.h:330