AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 ServiceNamespace GetServiceNamespace() const { return m_serviceNamespace; }
48 inline bool ServiceNamespaceHasBeenSet() const { return m_serviceNamespaceHasBeenSet; }
49 inline void SetServiceNamespace(ServiceNamespace value) { m_serviceNamespaceHasBeenSet = true; m_serviceNamespace = value; }
52
54
74 inline const Aws::String& GetSchedule() const { return m_schedule; }
75 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
76 template<typename ScheduleT = Aws::String>
77 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
78 template<typename ScheduleT = Aws::String>
79 PutScheduledActionRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
81
83
91 inline const Aws::String& GetTimezone() const { return m_timezone; }
92 inline bool TimezoneHasBeenSet() const { return m_timezoneHasBeenSet; }
93 template<typename TimezoneT = Aws::String>
94 void SetTimezone(TimezoneT&& value) { m_timezoneHasBeenSet = true; m_timezone = std::forward<TimezoneT>(value); }
95 template<typename TimezoneT = Aws::String>
96 PutScheduledActionRequest& WithTimezone(TimezoneT&& value) { SetTimezone(std::forward<TimezoneT>(value)); return *this;}
98
100
104 inline const Aws::String& GetScheduledActionName() const { return m_scheduledActionName; }
105 inline bool ScheduledActionNameHasBeenSet() const { return m_scheduledActionNameHasBeenSet; }
106 template<typename ScheduledActionNameT = Aws::String>
107 void SetScheduledActionName(ScheduledActionNameT&& value) { m_scheduledActionNameHasBeenSet = true; m_scheduledActionName = std::forward<ScheduledActionNameT>(value); }
108 template<typename ScheduledActionNameT = Aws::String>
109 PutScheduledActionRequest& WithScheduledActionName(ScheduledActionNameT&& value) { SetScheduledActionName(std::forward<ScheduledActionNameT>(value)); return *this;}
111
113
177 inline const Aws::String& GetResourceId() const { return m_resourceId; }
178 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
179 template<typename ResourceIdT = Aws::String>
180 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
181 template<typename ResourceIdT = Aws::String>
182 PutScheduledActionRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
184
186
238 inline ScalableDimension GetScalableDimension() const { return m_scalableDimension; }
239 inline bool ScalableDimensionHasBeenSet() const { return m_scalableDimensionHasBeenSet; }
240 inline void SetScalableDimension(ScalableDimension value) { m_scalableDimensionHasBeenSet = true; m_scalableDimension = value; }
243
245
248 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
249 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
250 template<typename StartTimeT = Aws::Utils::DateTime>
251 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
252 template<typename StartTimeT = Aws::Utils::DateTime>
253 PutScheduledActionRequest& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
255
257
260 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
261 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
262 template<typename EndTimeT = Aws::Utils::DateTime>
263 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
264 template<typename EndTimeT = Aws::Utils::DateTime>
265 PutScheduledActionRequest& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
267
269
276 inline const ScalableTargetAction& GetScalableTargetAction() const { return m_scalableTargetAction; }
277 inline bool ScalableTargetActionHasBeenSet() const { return m_scalableTargetActionHasBeenSet; }
278 template<typename ScalableTargetActionT = ScalableTargetAction>
279 void SetScalableTargetAction(ScalableTargetActionT&& value) { m_scalableTargetActionHasBeenSet = true; m_scalableTargetAction = std::forward<ScalableTargetActionT>(value); }
280 template<typename ScalableTargetActionT = ScalableTargetAction>
281 PutScheduledActionRequest& WithScalableTargetAction(ScalableTargetActionT&& value) { SetScalableTargetAction(std::forward<ScalableTargetActionT>(value)); return *this;}
283 private:
284
286 bool m_serviceNamespaceHasBeenSet = false;
287
288 Aws::String m_schedule;
289 bool m_scheduleHasBeenSet = false;
290
291 Aws::String m_timezone;
292 bool m_timezoneHasBeenSet = false;
293
294 Aws::String m_scheduledActionName;
295 bool m_scheduledActionNameHasBeenSet = false;
296
297 Aws::String m_resourceId;
298 bool m_resourceIdHasBeenSet = false;
299
301 bool m_scalableDimensionHasBeenSet = false;
302
303 Aws::Utils::DateTime m_startTime{};
304 bool m_startTimeHasBeenSet = false;
305
306 Aws::Utils::DateTime m_endTime{};
307 bool m_endTimeHasBeenSet = false;
308
309 ScalableTargetAction m_scalableTargetAction;
310 bool m_scalableTargetActionHasBeenSet = false;
311 };
312
313} // namespace Model
314} // namespace ApplicationAutoScaling
315} // 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
PutScheduledActionRequest & WithTimezone(TimezoneT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String