AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SetDesiredCapacityRequest.h
1
6#pragma once
7#include <aws/autoscaling/AutoScalingRequest.h>
8#include <aws/autoscaling/AutoScaling_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace AutoScaling {
15namespace Model {
16
20 public:
21 AWS_AUTOSCALING_API SetDesiredCapacityRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "SetDesiredCapacity"; }
28
29 AWS_AUTOSCALING_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
39 inline const Aws::String& GetAutoScalingGroupName() const { return m_autoScalingGroupName; }
40 inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
41 template <typename AutoScalingGroupNameT = Aws::String>
42 void SetAutoScalingGroupName(AutoScalingGroupNameT&& value) {
43 m_autoScalingGroupNameHasBeenSet = true;
44 m_autoScalingGroupName = std::forward<AutoScalingGroupNameT>(value);
45 }
46 template <typename AutoScalingGroupNameT = Aws::String>
47 SetDesiredCapacityRequest& WithAutoScalingGroupName(AutoScalingGroupNameT&& value) {
48 SetAutoScalingGroupName(std::forward<AutoScalingGroupNameT>(value));
49 return *this;
50 }
52
54
58 inline int GetDesiredCapacity() const { return m_desiredCapacity; }
59 inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
60 inline void SetDesiredCapacity(int value) {
61 m_desiredCapacityHasBeenSet = true;
62 m_desiredCapacity = value;
63 }
65 SetDesiredCapacity(value);
66 return *this;
67 }
69
71
77 inline bool GetHonorCooldown() const { return m_honorCooldown; }
78 inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; }
79 inline void SetHonorCooldown(bool value) {
80 m_honorCooldownHasBeenSet = true;
81 m_honorCooldown = value;
82 }
84 SetHonorCooldown(value);
85 return *this;
86 }
88 private:
89 Aws::String m_autoScalingGroupName;
90 bool m_autoScalingGroupNameHasBeenSet = false;
91
92 int m_desiredCapacity{0};
93 bool m_desiredCapacityHasBeenSet = false;
94
95 bool m_honorCooldown{false};
96 bool m_honorCooldownHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace AutoScaling
101} // namespace Aws
SetDesiredCapacityRequest & WithHonorCooldown(bool value)
SetDesiredCapacityRequest & WithDesiredCapacity(int value)
void SetAutoScalingGroupName(AutoScalingGroupNameT &&value)
SetDesiredCapacityRequest & WithAutoScalingGroupName(AutoScalingGroupNameT &&value)
AWS_AUTOSCALING_API Aws::String SerializePayload() const override
AWS_AUTOSCALING_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_AUTOSCALING_API SetDesiredCapacityRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String