AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledActionResponse.h
1
6#pragma once
7#include <aws/redshift-serverless/RedshiftServerless_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/redshift-serverless/model/Schedule.h>
12#include <aws/redshift-serverless/model/State.h>
13#include <aws/redshift-serverless/model/TargetAction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace RedshiftServerless
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse();
40 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse(Aws::Utils::Json::JsonView jsonValue);
41 AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
50 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
51 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
52 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
53 inline ScheduledActionResponse& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
54 inline ScheduledActionResponse& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
56
58
62 inline const Aws::String& GetNamespaceName() const{ return m_namespaceName; }
63 inline bool NamespaceNameHasBeenSet() const { return m_namespaceNameHasBeenSet; }
64 inline void SetNamespaceName(const Aws::String& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = value; }
65 inline void SetNamespaceName(Aws::String&& value) { m_namespaceNameHasBeenSet = true; m_namespaceName = std::move(value); }
66 inline void SetNamespaceName(const char* value) { m_namespaceNameHasBeenSet = true; m_namespaceName.assign(value); }
67 inline ScheduledActionResponse& WithNamespaceName(const Aws::String& value) { SetNamespaceName(value); return *this;}
68 inline ScheduledActionResponse& WithNamespaceName(Aws::String&& value) { SetNamespaceName(std::move(value)); return *this;}
69 inline ScheduledActionResponse& WithNamespaceName(const char* value) { SetNamespaceName(value); return *this;}
71
73
76 inline const Aws::Vector<Aws::Utils::DateTime>& GetNextInvocations() const{ return m_nextInvocations; }
77 inline bool NextInvocationsHasBeenSet() const { return m_nextInvocationsHasBeenSet; }
78 inline void SetNextInvocations(const Aws::Vector<Aws::Utils::DateTime>& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = value; }
79 inline void SetNextInvocations(Aws::Vector<Aws::Utils::DateTime>&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations = std::move(value); }
82 inline ScheduledActionResponse& AddNextInvocations(const Aws::Utils::DateTime& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(value); return *this; }
83 inline ScheduledActionResponse& AddNextInvocations(Aws::Utils::DateTime&& value) { m_nextInvocationsHasBeenSet = true; m_nextInvocations.push_back(std::move(value)); return *this; }
85
87
98 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
101 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
102 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
103 inline ScheduledActionResponse& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
104 inline ScheduledActionResponse& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
105 inline ScheduledActionResponse& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
107
109
121 inline const Schedule& GetSchedule() const{ return m_schedule; }
122 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
123 inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
124 inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
125 inline ScheduledActionResponse& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
126 inline ScheduledActionResponse& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
128
130
133 inline const Aws::String& GetScheduledActionDescription() const{ return m_scheduledActionDescription; }
134 inline bool ScheduledActionDescriptionHasBeenSet() const { return m_scheduledActionDescriptionHasBeenSet; }
135 inline void SetScheduledActionDescription(const Aws::String& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = value; }
136 inline void SetScheduledActionDescription(Aws::String&& value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription = std::move(value); }
137 inline void SetScheduledActionDescription(const char* value) { m_scheduledActionDescriptionHasBeenSet = true; m_scheduledActionDescription.assign(value); }
142
144
147 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
148 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
149 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
150 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
151 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
153 inline ScheduledActionResponse& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
154 inline ScheduledActionResponse& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
156
158
161 inline const Aws::String& GetScheduledActionUuid() const{ return m_scheduledActionUuid; }
162 inline bool ScheduledActionUuidHasBeenSet() const { return m_scheduledActionUuidHasBeenSet; }
163 inline void SetScheduledActionUuid(const Aws::String& value) { m_scheduledActionUuidHasBeenSet = true; m_scheduledActionUuid = value; }
164 inline void SetScheduledActionUuid(Aws::String&& value) { m_scheduledActionUuidHasBeenSet = true; m_scheduledActionUuid = std::move(value); }
165 inline void SetScheduledActionUuid(const char* value) { m_scheduledActionUuidHasBeenSet = true; m_scheduledActionUuid.assign(value); }
167 inline ScheduledActionResponse& WithScheduledActionUuid(Aws::String&& value) { SetScheduledActionUuid(std::move(value)); return *this;}
168 inline ScheduledActionResponse& WithScheduledActionUuid(const char* value) { SetScheduledActionUuid(value); return *this;}
170
172
176 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
177 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
178 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
179 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
180 inline ScheduledActionResponse& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
181 inline ScheduledActionResponse& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
183
185
188 inline const State& GetState() const{ return m_state; }
189 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
190 inline void SetState(const State& value) { m_stateHasBeenSet = true; m_state = value; }
191 inline void SetState(State&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
192 inline ScheduledActionResponse& WithState(const State& value) { SetState(value); return *this;}
193 inline ScheduledActionResponse& WithState(State&& value) { SetState(std::move(value)); return *this;}
195
197
198 inline const TargetAction& GetTargetAction() const{ return m_targetAction; }
199 inline bool TargetActionHasBeenSet() const { return m_targetActionHasBeenSet; }
200 inline void SetTargetAction(const TargetAction& value) { m_targetActionHasBeenSet = true; m_targetAction = value; }
201 inline void SetTargetAction(TargetAction&& value) { m_targetActionHasBeenSet = true; m_targetAction = std::move(value); }
202 inline ScheduledActionResponse& WithTargetAction(const TargetAction& value) { SetTargetAction(value); return *this;}
203 inline ScheduledActionResponse& WithTargetAction(TargetAction&& value) { SetTargetAction(std::move(value)); return *this;}
205 private:
206
207 Aws::Utils::DateTime m_endTime;
208 bool m_endTimeHasBeenSet = false;
209
210 Aws::String m_namespaceName;
211 bool m_namespaceNameHasBeenSet = false;
212
213 Aws::Vector<Aws::Utils::DateTime> m_nextInvocations;
214 bool m_nextInvocationsHasBeenSet = false;
215
216 Aws::String m_roleArn;
217 bool m_roleArnHasBeenSet = false;
218
219 Schedule m_schedule;
220 bool m_scheduleHasBeenSet = false;
221
222 Aws::String m_scheduledActionDescription;
223 bool m_scheduledActionDescriptionHasBeenSet = false;
224
225 Aws::String m_scheduledActionName;
226 bool m_scheduledActionNameHasBeenSet = false;
227
228 Aws::String m_scheduledActionUuid;
229 bool m_scheduledActionUuidHasBeenSet = false;
230
231 Aws::Utils::DateTime m_startTime;
232 bool m_startTimeHasBeenSet = false;
233
234 State m_state;
235 bool m_stateHasBeenSet = false;
236
237 TargetAction m_targetAction;
238 bool m_targetActionHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace RedshiftServerless
243} // namespace Aws
AWS_REDSHIFTSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledActionResponse & WithTargetAction(TargetAction &&value)
void SetNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
void SetNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
ScheduledActionResponse & WithStartTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::Utils::DateTime > & GetNextInvocations() const
ScheduledActionResponse & WithNamespaceName(const Aws::String &value)
ScheduledActionResponse & WithNamespaceName(Aws::String &&value)
AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
ScheduledActionResponse & WithScheduledActionDescription(const char *value)
ScheduledActionResponse & AddNextInvocations(const Aws::Utils::DateTime &value)
ScheduledActionResponse & WithScheduledActionName(const char *value)
ScheduledActionResponse & WithRoleArn(const char *value)
ScheduledActionResponse & WithScheduledActionDescription(Aws::String &&value)
ScheduledActionResponse & WithSchedule(Schedule &&value)
ScheduledActionResponse & WithTargetAction(const TargetAction &value)
ScheduledActionResponse & WithState(const State &value)
ScheduledActionResponse & WithScheduledActionName(const Aws::String &value)
ScheduledActionResponse & WithRoleArn(Aws::String &&value)
ScheduledActionResponse & WithNamespaceName(const char *value)
ScheduledActionResponse & WithScheduledActionUuid(const Aws::String &value)
ScheduledActionResponse & WithScheduledActionUuid(Aws::String &&value)
ScheduledActionResponse & WithStartTime(Aws::Utils::DateTime &&value)
AWS_REDSHIFTSERVERLESS_API ScheduledActionResponse(Aws::Utils::Json::JsonView jsonValue)
ScheduledActionResponse & WithSchedule(const Schedule &value)
ScheduledActionResponse & WithScheduledActionDescription(const Aws::String &value)
ScheduledActionResponse & WithEndTime(const Aws::Utils::DateTime &value)
ScheduledActionResponse & WithEndTime(Aws::Utils::DateTime &&value)
ScheduledActionResponse & WithNextInvocations(const Aws::Vector< Aws::Utils::DateTime > &value)
ScheduledActionResponse & WithRoleArn(const Aws::String &value)
ScheduledActionResponse & AddNextInvocations(Aws::Utils::DateTime &&value)
ScheduledActionResponse & WithNextInvocations(Aws::Vector< Aws::Utils::DateTime > &&value)
ScheduledActionResponse & WithScheduledActionName(Aws::String &&value)
ScheduledActionResponse & WithScheduledActionUuid(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue