AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ScheduledAction.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-autoscaling/model/ServiceNamespace.h>
10#include <aws/application-autoscaling/model/ScalableDimension.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/application-autoscaling/model/ScalableTargetAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationAutoScaling
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_APPLICATIONAUTOSCALING_API ScheduledAction();
39 AWS_APPLICATIONAUTOSCALING_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPLICATIONAUTOSCALING_API ScheduledAction& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
49 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
50 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
51 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
52 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
53 inline ScheduledAction& WithScheduledActionName(const Aws::String& value) { SetScheduledActionName(value); return *this;}
54 inline ScheduledAction& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
55 inline ScheduledAction& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
57
59
62 inline const Aws::String& GetScheduledActionARN() const{ return m_scheduledActionARN; }
63 inline bool ScheduledActionARNHasBeenSet() const { return m_scheduledActionARNHasBeenSet; }
64 inline void SetScheduledActionARN(const Aws::String& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = value; }
65 inline void SetScheduledActionARN(Aws::String&& value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = std::move(value); }
66 inline void SetScheduledActionARN(const char* value) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN.assign(value); }
67 inline ScheduledAction& WithScheduledActionARN(const Aws::String& value) { SetScheduledActionARN(value); return *this;}
68 inline ScheduledAction& WithScheduledActionARN(Aws::String&& value) { SetScheduledActionARN(std::move(value)); return *this;}
69 inline ScheduledAction& WithScheduledActionARN(const char* value) { SetScheduledActionARN(value); return *this;}
71
73
77 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
78 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
79 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
80 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
81 inline ScheduledAction& WithServiceNamespace(const ServiceNamespace& value) { SetServiceNamespace(value); return *this;}
82 inline ScheduledAction& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
84
86
106 inline const Aws::String& GetSchedule() const{ return m_schedule; }
107 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
108 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
109 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
110 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
111 inline ScheduledAction& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
112 inline ScheduledAction& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
113 inline ScheduledAction& WithSchedule(const char* value) { SetSchedule(value); return *this;}
115
117
121 inline const Aws::String& GetTimezone() const{ return m_timezone; }
122 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
123 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
124 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
125 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
126 inline ScheduledAction& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
127 inline ScheduledAction& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
128 inline ScheduledAction& WithTimezone(const char* value) { SetTimezone(value); return *this;}
130
132
193 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
194 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
195 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
196 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
197 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
198 inline ScheduledAction& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
199 inline ScheduledAction& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
200 inline ScheduledAction& WithResourceId(const char* value) { SetResourceId(value); return *this;}
202
204
254 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
255 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
256 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
257 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
259 inline ScheduledAction& WithScalableDimension(ScalableDimension&& value) { SetScalableDimension(std::move(value)); return *this;}
261
263
266 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
267 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
268 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
269 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
270 inline ScheduledAction& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
271 inline ScheduledAction& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
273
275
278 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
279 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
280 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
281 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
282 inline ScheduledAction& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
283 inline ScheduledAction& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
285
287
294 inline const ScalableTargetAction& GetScalableTargetAction() const{ return m_scalableTargetAction; }
295 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
296 inline void SetScalableTargetAction(const ScalableTargetAction& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = value; }
297 inline void SetScalableTargetAction(ScalableTargetAction&& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = std::move(value); }
301
303
306 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
307 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
308 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
309 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
310 inline ScheduledAction& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;}
311 inline ScheduledAction& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
313 private:
314
315 Aws::String m_scheduledActionName;
316 bool m_scheduledActionNameHasBeenSet = false;
317
318 Aws::String m_scheduledActionARN;
319 bool m_scheduledActionARNHasBeenSet = false;
320
321 ServiceNamespace m_serviceNamespace;
322 bool m_serviceNamespaceHasBeenSet = false;
323
324 Aws::String m_schedule;
325 bool m_scheduleHasBeenSet = false;
326
327 Aws::String m_timezone;
328 bool m_timezoneHasBeenSet = false;
329
330 Aws::String m_resourceId;
331 bool m_resourceIdHasBeenSet = false;
332
333 ScalableDimension m_scalableDimension;
334 bool m_scalableDimensionHasBeenSet = false;
335
336 Aws::Utils::DateTime m_startTime;
337 bool m_startTimeHasBeenSet = false;
338
339 Aws::Utils::DateTime m_endTime;
340 bool m_endTimeHasBeenSet = false;
341
342 ScalableTargetAction m_scalableTargetAction;
343 bool m_scalableTargetActionHasBeenSet = false;
344
345 Aws::Utils::DateTime m_creationTime;
346 bool m_creationTimeHasBeenSet = false;
347 };
348
349} // namespace Model
350} // namespace ApplicationAutoScaling
351} // namespace Aws
void SetScalableTargetAction(ScalableTargetAction &&value)
const Aws::Utils::DateTime & GetEndTime() const
ScheduledAction & WithSchedule(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction()
ScheduledAction & WithScheduledActionName(const Aws::String &value)
ScheduledAction & WithScheduledActionARN(Aws::String &&value)
ScheduledAction & WithEndTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithScheduledActionName(const char *value)
void SetEndTime(const Aws::Utils::DateTime &value)
const ScalableTargetAction & GetScalableTargetAction() const
const ServiceNamespace & GetServiceNamespace() const
void SetCreationTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithTimezone(const Aws::String &value)
void SetEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithResourceId(Aws::String &&value)
ScheduledAction & WithScheduledActionARN(const Aws::String &value)
ScheduledAction & WithScalableTargetAction(const ScalableTargetAction &value)
ScheduledAction & WithSchedule(Aws::String &&value)
void SetScalableDimension(const ScalableDimension &value)
ScheduledAction & WithCreationTime(Aws::Utils::DateTime &&value)
void SetScheduledActionARN(const Aws::String &value)
ScheduledAction & WithResourceId(const char *value)
void SetScheduledActionName(const Aws::String &value)
void SetServiceNamespace(const ServiceNamespace &value)
ScheduledAction & WithResourceId(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScalableDimension(ScalableDimension &&value)
ScheduledAction & WithSchedule(const char *value)
const Aws::Utils::DateTime & GetStartTime() const
void SetCreationTime(Aws::Utils::DateTime &&value)
void SetScalableTargetAction(const ScalableTargetAction &value)
void SetStartTime(const Aws::Utils::DateTime &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Utils::Json::JsonValue Jsonize() const
ScheduledAction & WithScalableTargetAction(ScalableTargetAction &&value)
ScheduledAction & WithScheduledActionARN(const char *value)
AWS_APPLICATIONAUTOSCALING_API ScheduledAction(Aws::Utils::Json::JsonView jsonValue)
ScheduledAction & WithScheduledActionName(Aws::String &&value)
ScheduledAction & WithScalableDimension(ScalableDimension &&value)
ScheduledAction & WithEndTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithScalableDimension(const ScalableDimension &value)
ScheduledAction & WithStartTime(Aws::Utils::DateTime &&value)
ScheduledAction & WithServiceNamespace(ServiceNamespace &&value)
ScheduledAction & WithCreationTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithStartTime(const Aws::Utils::DateTime &value)
ScheduledAction & WithTimezone(const char *value)
const Aws::Utils::DateTime & GetCreationTime() const
ScheduledAction & WithTimezone(Aws::String &&value)
const ScalableDimension & GetScalableDimension() const
ScheduledAction & WithServiceNamespace(const ServiceNamespace &value)
void SetStartTime(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue