AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ScheduledAction.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/model/ScalableDimension.h>
9#include <aws/application-autoscaling/model/ScalableTargetAction.h>
10#include <aws/application-autoscaling/model/ServiceNamespace.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ApplicationAutoScaling {
24namespace Model {
25
32 public:
33 AWS_APPLICATIONAUTOSCALING_API ScheduledAction() = default;
34 AWS_APPLICATIONAUTOSCALING_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue);
35 AWS_APPLICATIONAUTOSCALING_API ScheduledAction& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
43 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
44 template <typename ScheduledActionNameT = Aws::String>
45 void SetScheduledActionName(ScheduledActionNameT&& value) {
46 m_scheduledActionNameHasBeenSet = true;
47 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
48 }
49 template <typename ScheduledActionNameT = Aws::String>
50 ScheduledAction& WithScheduledActionName(ScheduledActionNameT&& value) {
51 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetScheduledActionARN() const { return m_scheduledActionARN; }
61 inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; }
62 template <typename ScheduledActionARNT = Aws::String>
63 void SetScheduledActionARN(ScheduledActionARNT&& value) {
64 m_scheduledActionARNHasBeenSet = true;
65 m_scheduledActionARN = std::forward<ScheduledActionARNT>(value);
66 }
67 template <typename ScheduledActionARNT = Aws::String>
68 ScheduledAction& WithScheduledActionARN(ScheduledActionARNT&& value) {
69 SetScheduledActionARN(std::forward<ScheduledActionARNT>(value));
70 return *this;
71 }
73
75
79 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
80 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
82 m_serviceNamespaceHasBeenSet = true;
83 m_serviceNamespace = value;
84 }
87 return *this;
88 }
90
92
112 inline const Aws::String& GetSchedule() const { return m_schedule; }
113 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
114 template <typename ScheduleT = Aws::String>
115 void SetSchedule(ScheduleT&& value) {
116 m_scheduleHasBeenSet = true;
117 m_schedule = std::forward<ScheduleT>(value);
118 }
119 template <typename ScheduleT = Aws::String>
120 ScheduledAction& WithSchedule(ScheduleT&& value) {
121 SetSchedule(std::forward<ScheduleT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetTimezone() const { return m_timezone; }
132 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
133 template <typename TimezoneT = Aws::String>
134 void SetTimezone(TimezoneT&& value) {
135 m_timezoneHasBeenSet = true;
136 m_timezone = std::forward<TimezoneT>(value);
137 }
138 template <typename TimezoneT = Aws::String>
139 ScheduledAction& WithTimezone(TimezoneT&& value) {
140 SetTimezone(std::forward<TimezoneT>(value));
141 return *this;
142 }
144
146
210 inline const Aws::String& GetResourceId() const { return m_resourceId; }
211 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
212 template <typename ResourceIdT = Aws::String>
213 void SetResourceId(ResourceIdT&& value) {
214 m_resourceIdHasBeenSet = true;
215 m_resourceId = std::forward<ResourceIdT>(value);
216 }
217 template <typename ResourceIdT = Aws::String>
218 ScheduledAction& WithResourceId(ResourceIdT&& value) {
219 SetResourceId(std::forward<ResourceIdT>(value));
220 return *this;
221 }
223
225
277 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
278 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
280 m_scalableDimensionHasBeenSet = true;
281 m_scalableDimension = value;
282 }
285 return *this;
286 }
288
290
293 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
294 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
295 template <typename StartTimeT = Aws::Utils::DateTime>
296 void SetStartTime(StartTimeT&& value) {
297 m_startTimeHasBeenSet = true;
298 m_startTime = std::forward<StartTimeT>(value);
299 }
300 template <typename StartTimeT = Aws::Utils::DateTime>
301 ScheduledAction& WithStartTime(StartTimeT&& value) {
302 SetStartTime(std::forward<StartTimeT>(value));
303 return *this;
304 }
306
308
311 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
312 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
313 template <typename EndTimeT = Aws::Utils::DateTime>
314 void SetEndTime(EndTimeT&& value) {
315 m_endTimeHasBeenSet = true;
316 m_endTime = std::forward<EndTimeT>(value);
317 }
318 template <typename EndTimeT = Aws::Utils::DateTime>
319 ScheduledAction& WithEndTime(EndTimeT&& value) {
320 SetEndTime(std::forward<EndTimeT>(value));
321 return *this;
322 }
324
326
333 inline const ScalableTargetAction& GetScalableTargetAction() const { return m_scalableTargetAction; }
334 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
335 template <typename ScalableTargetActionT = ScalableTargetAction>
336 void SetScalableTargetAction(ScalableTargetActionT&& value) {
337 m_scalableTargetActionHasBeenSet = true;
338 m_scalableTargetAction = std::forward<ScalableTargetActionT>(value);
339 }
340 template <typename ScalableTargetActionT = ScalableTargetAction>
341 ScheduledAction& WithScalableTargetAction(ScalableTargetActionT&& value) {
342 SetScalableTargetAction(std::forward<ScalableTargetActionT>(value));
343 return *this;
344 }
346
348
351 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
352 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
353 template <typename CreationTimeT = Aws::Utils::DateTime>
354 void SetCreationTime(CreationTimeT&& value) {
355 m_creationTimeHasBeenSet = true;
356 m_creationTime = std::forward<CreationTimeT>(value);
357 }
358 template <typename CreationTimeT = Aws::Utils::DateTime>
359 ScheduledAction& WithCreationTime(CreationTimeT&& value) {
360 SetCreationTime(std::forward<CreationTimeT>(value));
361 return *this;
362 }
364 private:
365 Aws::String m_scheduledActionName;
366
367 Aws::String m_scheduledActionARN;
368
370
371 Aws::String m_schedule;
372
373 Aws::String m_timezone;
374
375 Aws::String m_resourceId;
376
378
379 Aws::Utils::DateTime m_startTime{};
380
381 Aws::Utils::DateTime m_endTime{};
382
383 ScalableTargetAction m_scalableTargetAction;
384
385 Aws::Utils::DateTime m_creationTime{};
386 bool m_scheduledActionNameHasBeenSet = false;
387 bool m_scheduledActionARNHasBeenSet = false;
388 bool m_serviceNamespaceHasBeenSet = false;
389 bool m_scheduleHasBeenSet = false;
390 bool m_timezoneHasBeenSet = false;
391 bool m_resourceIdHasBeenSet = false;
392 bool m_scalableDimensionHasBeenSet = false;
393 bool m_startTimeHasBeenSet = false;
394 bool m_endTimeHasBeenSet = false;
395 bool m_scalableTargetActionHasBeenSet = false;
396 bool m_creationTimeHasBeenSet = false;
397};
398
399} // namespace Model
400} // namespace ApplicationAutoScaling
401} // namespace Aws
const Aws::Utils::DateTime & GetEndTime() const
ScheduledAction & WithResourceId(ResourceIdT &&value)
const ScalableTargetAction & GetScalableTargetAction() const
ScheduledAction & WithScheduledActionARN(ScheduledActionARNT &&value)
void SetScalableTargetAction(ScalableTargetActionT &&value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction()=default
ScheduledAction & WithTimezone(TimezoneT &&value)
ScheduledAction & WithEndTime(EndTimeT &&value)
void SetScheduledActionName(ScheduledActionNameT &&value)
ScheduledAction & WithScalableDimension(ScalableDimension value)
ScheduledAction & WithSchedule(ScheduleT &&value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetStartTime() const
ScheduledAction & WithScalableTargetAction(ScalableTargetActionT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAction & WithScheduledActionName(ScheduledActionNameT &&value)
ScheduledAction & WithCreationTime(CreationTimeT &&value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue)
void SetScheduledActionARN(ScheduledActionARNT &&value)
ScheduledAction & WithServiceNamespace(ServiceNamespace value)
const Aws::Utils::DateTime & GetCreationTime() const
ScheduledAction & WithStartTime(StartTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue