AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ScheduledActionNameT = Aws::String>
51 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
52 template<typename ScheduledActionNameT = Aws::String>
53 ScheduledAction& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
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) { m_scheduledActionARNHasBeenSet = true; m_scheduledActionARN = std::forward<ScheduledActionARNT>(value); }
64 template<typename ScheduledActionARNT = Aws::String>
65 ScheduledAction& WithScheduledActionARN(ScheduledActionARNT&& value) { SetScheduledActionARN(std::forward<ScheduledActionARNT>(value)); return *this;}
67
69
73 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
74 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
75 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
78
80
100 inline const Aws::String& GetSchedule() const { return m_schedule; }
101 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
102 template<typename ScheduleT = Aws::String>
103 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
104 template<typename ScheduleT = Aws::String>
105 ScheduledAction& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
107
109
113 inline const Aws::String& GetTimezone() const { return m_timezone; }
114 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
115 template<typename TimezoneT = Aws::String>
116 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
117 template<typename TimezoneT = Aws::String>
118 ScheduledAction& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
120
122
186 inline const Aws::String& GetResourceId() const { return m_resourceId; }
187 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
188 template<typename ResourceIdT = Aws::String>
189 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
190 template<typename ResourceIdT = Aws::String>
191 ScheduledAction& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
193
195
247 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
248 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
249 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
252
254
257 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
258 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
259 template<typename StartTimeT = Aws::Utils::DateTime>
260 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
261 template<typename StartTimeT = Aws::Utils::DateTime>
262 ScheduledAction& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
264
266
269 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
270 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
271 template<typename EndTimeT = Aws::Utils::DateTime>
272 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
273 template<typename EndTimeT = Aws::Utils::DateTime>
274 ScheduledAction& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
276
278
285 inline const ScalableTargetAction& GetScalableTargetAction() const { return m_scalableTargetAction; }
286 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
287 template<typename ScalableTargetActionT = ScalableTargetAction>
288 void SetScalableTargetAction(ScalableTargetActionT&& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = std::forward<ScalableTargetActionT>(value); }
289 template<typename ScalableTargetActionT = ScalableTargetAction>
290 ScheduledAction& WithScalableTargetAction(ScalableTargetActionT&& value) { SetScalableTargetAction(std::forward<ScalableTargetActionT>(value)); return *this;}
292
294
297 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
298 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
299 template<typename CreationTimeT = Aws::Utils::DateTime>
300 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
301 template<typename CreationTimeT = Aws::Utils::DateTime>
302 ScheduledAction& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
304 private:
305
306 Aws::String m_scheduledActionName;
307 bool m_scheduledActionNameHasBeenSet = false;
308
309 Aws::String m_scheduledActionARN;
310 bool m_scheduledActionARNHasBeenSet = false;
311
313 bool m_serviceNamespaceHasBeenSet = false;
314
315 Aws::String m_schedule;
316 bool m_scheduleHasBeenSet = false;
317
318 Aws::String m_timezone;
319 bool m_timezoneHasBeenSet = false;
320
321 Aws::String m_resourceId;
322 bool m_resourceIdHasBeenSet = false;
323
325 bool m_scalableDimensionHasBeenSet = false;
326
327 Aws::Utils::DateTime m_startTime{};
328 bool m_startTimeHasBeenSet = false;
329
330 Aws::Utils::DateTime m_endTime{};
331 bool m_endTimeHasBeenSet = false;
332
333 ScalableTargetAction m_scalableTargetAction;
334 bool m_scalableTargetActionHasBeenSet = false;
335
336 Aws::Utils::DateTime m_creationTime{};
337 bool m_creationTimeHasBeenSet = false;
338 };
339
340} // namespace Model
341} // namespace ApplicationAutoScaling
342} // 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