AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutScheduledActionRequest.h
1
6#pragma once
7#include <aws/application-autoscaling/ApplicationAutoScaling_EXPORTS.h>
8#include <aws/application-autoscaling/ApplicationAutoScalingRequest.h>
9#include <aws/application-autoscaling/model/ServiceNamespace.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/application-autoscaling/model/ScalableDimension.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/application-autoscaling/model/ScalableTargetAction.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ApplicationAutoScaling
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPLICATIONAUTOSCALING_API PutScheduledActionRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "PutScheduledAction"; }
35
36 AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override;
37
38 AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
47 inline const ServiceNamespace& GetServiceNamespace() const{ return m_serviceNamespace; }
48 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
49 inline void SetServiceNamespace(const ServiceNamespace& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
50 inline void SetServiceNamespace(ServiceNamespace&& value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = std::move(value); }
52 inline PutScheduledActionRequest& WithServiceNamespace(ServiceNamespace&& value) { SetServiceNamespace(std::move(value)); return *this;}
54
56
76 inline const Aws::String& GetSchedule() const{ return m_schedule; }
77 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
78 inline void SetSchedule(const Aws::String& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
79 inline void SetSchedule(Aws::String&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
80 inline void SetSchedule(const char* value) { m_scheduleHasBeenSet = true; m_schedule.assign(value); }
81 inline PutScheduledActionRequest& WithSchedule(const Aws::String& value) { SetSchedule(value); return *this;}
82 inline PutScheduledActionRequest& WithSchedule(Aws::String&& value) { SetSchedule(std::move(value)); return *this;}
83 inline PutScheduledActionRequest& WithSchedule(const char* value) { SetSchedule(value); return *this;}
85
87
95 inline const Aws::String& GetTimezone() const{ return m_timezone; }
96 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
97 inline void SetTimezone(const Aws::String& value) { m_timezoneHasBeenSet = true; m_timezone = value; }
98 inline void SetTimezone(Aws::String&& value) { m_timezoneHasBeenSet = true; m_timezone = std::move(value); }
99 inline void SetTimezone(const char* value) { m_timezoneHasBeenSet = true; m_timezone.assign(value); }
100 inline PutScheduledActionRequest& WithTimezone(const Aws::String& value) { SetTimezone(value); return *this;}
101 inline PutScheduledActionRequest& WithTimezone(Aws::String&& value) { SetTimezone(std::move(value)); return *this;}
102 inline PutScheduledActionRequest& WithTimezone(const char* value) { SetTimezone(value); return *this;}
104
106
110 inline const Aws::String& GetScheduledActionName() const{ return m_scheduledActionName; }
111 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
112 inline void SetScheduledActionName(const Aws::String& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = value; }
113 inline void SetScheduledActionName(Aws::String&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::move(value); }
114 inline void SetScheduledActionName(const char* value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName.assign(value); }
116 inline PutScheduledActionRequest& WithScheduledActionName(Aws::String&& value) { SetScheduledActionName(std::move(value)); return *this;}
117 inline PutScheduledActionRequest& WithScheduledActionName(const char* value) { SetScheduledActionName(value); return *this;}
119
121
182 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
183 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
184 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
185 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
186 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
187 inline PutScheduledActionRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
188 inline PutScheduledActionRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
189 inline PutScheduledActionRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
191
193
243 inline const ScalableDimension& GetScalableDimension() const{ return m_scalableDimension; }
244 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
245 inline void SetScalableDimension(const ScalableDimension& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
246 inline void SetScalableDimension(ScalableDimension&& value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = std::move(value); }
250
252
255 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
256 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
257 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
258 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
259 inline PutScheduledActionRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
260 inline PutScheduledActionRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
262
264
267 inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; }
268 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
269 inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; }
270 inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); }
271 inline PutScheduledActionRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;}
272 inline PutScheduledActionRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;}
274
276
283 inline const ScalableTargetAction& GetScalableTargetAction() const{ return m_scalableTargetAction; }
284 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
285 inline void SetScalableTargetAction(const ScalableTargetAction& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = value; }
286 inline void SetScalableTargetAction(ScalableTargetAction&& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = std::move(value); }
290 private:
291
292 ServiceNamespace m_serviceNamespace;
293 bool m_serviceNamespaceHasBeenSet = false;
294
295 Aws::String m_schedule;
296 bool m_scheduleHasBeenSet = false;
297
298 Aws::String m_timezone;
299 bool m_timezoneHasBeenSet = false;
300
301 Aws::String m_scheduledActionName;
302 bool m_scheduledActionNameHasBeenSet = false;
303
304 Aws::String m_resourceId;
305 bool m_resourceIdHasBeenSet = false;
306
307 ScalableDimension m_scalableDimension;
308 bool m_scalableDimensionHasBeenSet = false;
309
310 Aws::Utils::DateTime m_startTime;
311 bool m_startTimeHasBeenSet = false;
312
313 Aws::Utils::DateTime m_endTime;
314 bool m_endTimeHasBeenSet = false;
315
316 ScalableTargetAction m_scalableTargetAction;
317 bool m_scalableTargetActionHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace ApplicationAutoScaling
322} // namespace Aws
PutScheduledActionRequest & WithTimezone(Aws::String &&value)
PutScheduledActionRequest & WithSchedule(const Aws::String &value)
PutScheduledActionRequest & WithStartTime(const Aws::Utils::DateTime &value)
PutScheduledActionRequest & WithResourceId(const Aws::String &value)
AWS_APPLICATIONAUTOSCALING_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutScheduledActionRequest & WithServiceNamespace(const ServiceNamespace &value)
PutScheduledActionRequest & WithScalableTargetAction(const ScalableTargetAction &value)
PutScheduledActionRequest & WithScalableTargetAction(ScalableTargetAction &&value)
PutScheduledActionRequest & WithSchedule(Aws::String &&value)
PutScheduledActionRequest & WithScheduledActionName(const Aws::String &value)
PutScheduledActionRequest & WithResourceId(Aws::String &&value)
PutScheduledActionRequest & WithTimezone(const Aws::String &value)
PutScheduledActionRequest & WithSchedule(const char *value)
PutScheduledActionRequest & WithEndTime(Aws::Utils::DateTime &&value)
PutScheduledActionRequest & WithStartTime(Aws::Utils::DateTime &&value)
PutScheduledActionRequest & WithScheduledActionName(const char *value)
PutScheduledActionRequest & WithServiceNamespace(ServiceNamespace &&value)
PutScheduledActionRequest & WithEndTime(const Aws::Utils::DateTime &value)
AWS_APPLICATIONAUTOSCALING_API Aws::String SerializePayload() const override
PutScheduledActionRequest & WithScheduledActionName(Aws::String &&value)
PutScheduledActionRequest & WithScalableDimension(const ScalableDimension &value)
PutScheduledActionRequest & WithResourceId(const char *value)
PutScheduledActionRequest & WithScalableDimension(ScalableDimension &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String