AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
PutScheduledActionRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
8#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
9#include <aws/application-autoscaling/model/ScalableDimension.h>
10#include <aws/application-autoscaling/model/ScalableTargetAction.h>
11#include <aws/application-autoscaling/model/ServiceNamespace.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ApplicationAutoScaling {
19namespace Model {
20
24 public:
25 AWS_APPLICATIONAUTOSCALING_API PutScheduledActionRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "PutScheduledAction"; }
32
33 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
34
35 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
38
43 inline ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
44 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
46 m_serviceNamespaceHasBeenSet = true;
47 m_serviceNamespace = value;
48 }
51 return *this;
52 }
54
56
76 inline const Aws::String& GetSchedule() const { return m_schedule; }
77 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
78 template <typename ScheduleT = Aws::String>
79 void SetSchedule(ScheduleT&& value) {
80 m_scheduleHasBeenSet = true;
81 m_schedule = std::forward<ScheduleT>(value);
82 }
83 template <typename ScheduleT = Aws::String>
85 SetSchedule(std::forward<ScheduleT>(value));
86 return *this;
87 }
89
91
99 inline const Aws::String& GetTimezone() const { return m_timezone; }
100 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
101 template <typename TimezoneT = Aws::String>
102 void SetTimezone(TimezoneT&& value) {
103 m_timezoneHasBeenSet = true;
104 m_timezone = std::forward<TimezoneT>(value);
105 }
106 template <typename TimezoneT = Aws::String>
108 SetTimezone(std::forward<TimezoneT>(value));
109 return *this;
110 }
112
114
118 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
119 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
120 template <typename ScheduledActionNameT = Aws::String>
121 void SetScheduledActionName(ScheduledActionNameT&& value) {
122 m_scheduledActionNameHasBeenSet = true;
123 m_scheduledActionName = std::forward<ScheduledActionNameT>(value);
124 }
125 template <typename ScheduledActionNameT = Aws::String>
126 PutScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) {
127 SetScheduledActionName(std::forward<ScheduledActionNameT>(value));
128 return *this;
129 }
131
133
197 inline const Aws::String& GetResourceId() const { return m_resourceId; }
198 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
199 template <typename ResourceIdT = Aws::String>
200 void SetResourceId(ResourceIdT&& value) {
201 m_resourceIdHasBeenSet = true;
202 m_resourceId = std::forward<ResourceIdT>(value);
203 }
204 template <typename ResourceIdT = Aws::String>
206 SetResourceId(std::forward<ResourceIdT>(value));
207 return *this;
208 }
210
212
264 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
265 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
267 m_scalableDimensionHasBeenSet = true;
268 m_scalableDimension = value;
269 }
272 return *this;
273 }
275
277
280 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
281 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
282 template <typename StartTimeT = Aws::Utils::DateTime>
283 void SetStartTime(StartTimeT&& value) {
284 m_startTimeHasBeenSet = true;
285 m_startTime = std::forward<StartTimeT>(value);
286 }
287 template <typename StartTimeT = Aws::Utils::DateTime>
289 SetStartTime(std::forward<StartTimeT>(value));
290 return *this;
291 }
293
295
298 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
299 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
300 template <typename EndTimeT = Aws::Utils::DateTime>
301 void SetEndTime(EndTimeT&& value) {
302 m_endTimeHasBeenSet = true;
303 m_endTime = std::forward<EndTimeT>(value);
304 }
305 template <typename EndTimeT = Aws::Utils::DateTime>
307 SetEndTime(std::forward<EndTimeT>(value));
308 return *this;
309 }
311
313
320 inline const ScalableTargetAction& GetScalableTargetAction() const { return m_scalableTargetAction; }
321 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
322 template <typename ScalableTargetActionT = ScalableTargetAction>
323 void SetScalableTargetAction(ScalableTargetActionT&& value) {
324 m_scalableTargetActionHasBeenSet = true;
325 m_scalableTargetAction = std::forward<ScalableTargetActionT>(value);
326 }
327 template <typename ScalableTargetActionT = ScalableTargetAction>
328 PutScheduledActionRequest& WithScalableTargetAction(ScalableTargetActionT&& value) {
329 SetScalableTargetAction(std::forward<ScalableTargetActionT>(value));
330 return *this;
331 }
333 private:
335
336 Aws::String m_schedule;
337
338 Aws::String m_timezone;
339
340 Aws::String m_scheduledActionName;
341
342 Aws::String m_resourceId;
343
345
346 Aws::Utils::DateTime m_startTime{};
347
348 Aws::Utils::DateTime m_endTime{};
349
350 ScalableTargetAction m_scalableTargetAction;
351 bool m_serviceNamespaceHasBeenSet = false;
352 bool m_scheduleHasBeenSet = false;
353 bool m_timezoneHasBeenSet = false;
354 bool m_scheduledActionNameHasBeenSet = false;
355 bool m_resourceIdHasBeenSet = false;
356 bool m_scalableDimensionHasBeenSet = false;
357 bool m_startTimeHasBeenSet = false;
358 bool m_endTimeHasBeenSet = false;
359 bool m_scalableTargetActionHasBeenSet = false;
360};
361
362} // namespace Model
363} // namespace ApplicationAutoScaling
364} // namespace Aws
PutScheduledActionRequest & WithResourceId(ResourceIdT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutScheduledActionRequest & WithScheduledActionName(ScheduledActionNameT &&value)
PutScheduledActionRequest & WithSchedule(ScheduleT &&value)
PutScheduledActionRequest & WithServiceNamespace(ServiceNamespace value)
PutScheduledActionRequest & WithScalableDimension(ScalableDimension value)
PutScheduledActionRequest & WithStartTime(StartTimeT &&value)
PutScheduledActionRequest & WithScalableTargetAction(ScalableTargetActionT &&value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
AWS_APPLICATIONAUTOSCALING_API PutScheduledActionRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String