AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateScheduledActionResult.h
1
6#pragma once
7#include <aws/redshift/Redshift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/redshift/model/ScheduledActionType.h>
10#include <aws/redshift/model/ScheduledActionState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/redshift/model/ResponseMetadata.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Xml
24{
25 class XmlDocument;
26} // namespace Xml
27} // namespace Utils
28namespace Redshift
29{
30namespace Model
31{
41 {
42 public:
43 AWS_REDSHIFT_API CreateScheduledActionResult();
46
47
49
52 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
53 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionName = value; }
54 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionName = std::move(value); }
55 inline void SetScheduledActionName(const char* value) { m_scheduledActionName.assign(value); }
58 inline CreateScheduledActionResult& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
60
62
68 inline const ScheduledActionType& GetTargetAction() const{ return m_targetAction; }
69 inline void SetTargetAction(const ScheduledActionType& value) { m_targetAction = value; }
70 inline void SetTargetAction(ScheduledActionType&& value) { m_targetAction = std::move(value); }
72 inline CreateScheduledActionResult& WithTargetAction(ScheduledActionType&& value) { SetTargetAction(std::move(value)); return *this;}
74
76
87 inline const Aws::String& GetSchedule() const{ return m_schedule; }
88 inline void SetSchedule(const Aws::String& value) { m_schedule = value; }
89 inline void SetSchedule(Aws::String&& value) { m_schedule = std::move(value); }
90 inline void SetSchedule(const char* value) { m_schedule.assign(value); }
91 inline CreateScheduledActionResult& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
92 inline CreateScheduledActionResult& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
93 inline CreateScheduledActionResult& WithSchedule(const char* value) { SetSchedule(value); return *this;}
95
97
107 inline const Aws::String& GetIamRole() const{ return m_iamRole; }
108 inline void SetIamRole(const Aws::String& value) { m_iamRole = value; }
109 inline void SetIamRole(Aws::String&& value) { m_iamRole = std::move(value); }
110 inline void SetIamRole(const char* value) { m_iamRole.assign(value); }
111 inline CreateScheduledActionResult& WithIamRole(const Aws::String& value) { SetIamRole(value); return *this;}
112 inline CreateScheduledActionResult& WithIamRole(Aws::String&& value) { SetIamRole(std::move(value)); return *this;}
113 inline CreateScheduledActionResult& WithIamRole(const char* value) { SetIamRole(value); return *this;}
115
117
120 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
121 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescription = value; }
122 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescription = std::move(value); }
123 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescription.assign(value); }
128
130
133 inline const ScheduledActionState& GetState() const{ return m_state; }
134 inline void SetState(const ScheduledActionState& value) { m_state = value; }
135 inline void SetState(ScheduledActionState&& value) { m_state = std::move(value); }
136 inline CreateScheduledActionResult& WithState(const ScheduledActionState& value) { SetState(value); return *this;}
137 inline CreateScheduledActionResult& WithState(ScheduledActionState&& value) { SetState(std::move(value)); return *this;}
139
141
144 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
145 inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocations = value; }
146 inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocations = std::move(value); }
149 inline CreateScheduledActionResult& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocations.push_back(value); return *this; }
150 inline CreateScheduledActionResult& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocations.push_back(std::move(value)); return *this; }
152
154
158 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
159 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTime = value; }
160 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTime = std::move(value); }
161 inline CreateScheduledActionResult& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
162 inline CreateScheduledActionResult& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
164
166
170 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
171 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTime = value; }
172 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTime = std::move(value); }
173 inline CreateScheduledActionResult& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
174 inline CreateScheduledActionResult& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
176
178
179 inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
180 inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
181 inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
185 private:
186
187 Aws::String m_scheduledActionName;
188
189 ScheduledActionType m_targetAction;
190
191 Aws::String m_schedule;
192
193 Aws::String m_iamRole;
194
195 Aws::String m_scheduledActionDescription;
196
197 ScheduledActionState m_state;
198
199 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
200
201 Aws::Utils::DateTime m_startTime;
202
203 Aws::Utils::DateTime m_endTime;
204
205 ResponseMetadata m_responseMetadata;
206 };
207
208} // namespace Model
209} // namespace Redshift
210} // namespace Aws
CreateScheduledActionResult & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
CreateScheduledActionResult & WithEndTime(Aws::Utils::DateTime &&value)
CreateScheduledActionResult & WithScheduledActionDescription(const Aws::String &value)
CreateScheduledActionResult & WithSchedule(const char *value)
CreateScheduledActionResult & WithScheduledActionName(const char *value)
AWS_REDSHIFT_API CreateScheduledActionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
CreateScheduledActionResult & WithSchedule(const Aws::String &value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
CreateScheduledActionResult & WithState(const ScheduledActionState &value)
CreateScheduledActionResult & WithScheduledActionName(const Aws::String &value)
CreateScheduledActionResult & WithStartTime(Aws::Utils::DateTime &&value)
CreateScheduledActionResult & WithTargetAction(const ScheduledActionType &value)
CreateScheduledActionResult & WithState(ScheduledActionState &&value)
CreateScheduledActionResult & AddNextInvocations(const Aws::Utils::DateTime &value)
CreateScheduledActionResult & WithIamRole(const Aws::String &value)
CreateScheduledActionResult & WithIamRole(Aws::String &&value)
CreateScheduledActionResult & WithResponseMetadata(const ResponseMetadata &value)
CreateScheduledActionResult & AddNextInvocations(Aws::Utils::DateTime &&value)
CreateScheduledActionResult & WithEndTime(const Aws::Utils::DateTime &value)
CreateScheduledActionResult & WithIamRole(const char *value)
CreateScheduledActionResult & WithResponseMetadata(ResponseMetadata &&value)
CreateScheduledActionResult & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
CreateScheduledActionResult & WithSchedule(Aws::String &&value)
CreateScheduledActionResult & WithScheduledActionDescription(const char *value)
CreateScheduledActionResult & WithScheduledActionName(Aws::String &&value)
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
CreateScheduledActionResult & WithTargetAction(ScheduledActionType &&value)
CreateScheduledActionResult & WithStartTime(const Aws::Utils::DateTime &value)
CreateScheduledActionResult & WithScheduledActionDescription(Aws::String &&value)
AWS_REDSHIFT_API CreateScheduledActionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument