AWS SDK for C++  1.9.40
AWS SDK for C++
SetDesiredCapacityRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace AutoScaling
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "SetDesiredCapacity"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
43 
47  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
48 
52  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
53 
57  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
58 
62  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
63 
67  inline SetDesiredCapacityRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
68 
72  inline SetDesiredCapacityRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
73 
77  inline SetDesiredCapacityRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
78 
79 
84  inline int GetDesiredCapacity() const{ return m_desiredCapacity; }
85 
90  inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; }
91 
96  inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; }
97 
102  inline SetDesiredCapacityRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;}
103 
104 
111  inline bool GetHonorCooldown() const{ return m_honorCooldown; }
112 
119  inline bool HonorCooldownHasBeenSet() const { return m_honorCooldownHasBeenSet; }
120 
127  inline void SetHonorCooldown(bool value) { m_honorCooldownHasBeenSet = true; m_honorCooldown = value; }
128 
135  inline SetDesiredCapacityRequest& WithHonorCooldown(bool value) { SetHonorCooldown(value); return *this;}
136 
137  private:
138 
139  Aws::String m_autoScalingGroupName;
140  bool m_autoScalingGroupNameHasBeenSet;
141 
142  int m_desiredCapacity;
143  bool m_desiredCapacityHasBeenSet;
144 
145  bool m_honorCooldown;
146  bool m_honorCooldownHasBeenSet;
147  };
148 
149 } // namespace Model
150 } // namespace AutoScaling
151 } // namespace Aws
Aws::AutoScaling::Model::SetDesiredCapacityRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::SetDesiredCapacityRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: SetDesiredCapacityRequest.h:47
Aws::AutoScaling::Model::SetDesiredCapacityRequest::GetHonorCooldown
bool GetHonorCooldown() const
Definition: SetDesiredCapacityRequest.h:111
Aws::AutoScaling::Model::SetDesiredCapacityRequest::DesiredCapacityHasBeenSet
bool DesiredCapacityHasBeenSet() const
Definition: SetDesiredCapacityRequest.h:90
Aws::AutoScaling::Model::SetDesiredCapacityRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: SetDesiredCapacityRequest.h:42
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: SetDesiredCapacityRequest.h:52
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetHonorCooldown
void SetHonorCooldown(bool value)
Definition: SetDesiredCapacityRequest.h:127
Aws::AutoScaling::Model::SetDesiredCapacityRequest::WithAutoScalingGroupName
SetDesiredCapacityRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: SetDesiredCapacityRequest.h:67
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::SetDesiredCapacityRequest::WithAutoScalingGroupName
SetDesiredCapacityRequest & WithAutoScalingGroupName(const char *value)
Definition: SetDesiredCapacityRequest.h:77
Aws::AutoScaling::Model::SetDesiredCapacityRequest::WithHonorCooldown
SetDesiredCapacityRequest & WithHonorCooldown(bool value)
Definition: SetDesiredCapacityRequest.h:135
AWSString.h
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: SetDesiredCapacityRequest.h:62
Aws::AutoScaling::Model::SetDesiredCapacityRequest
Definition: SetDesiredCapacityRequest.h:22
Aws::AutoScaling::Model::SetDesiredCapacityRequest::HonorCooldownHasBeenSet
bool HonorCooldownHasBeenSet() const
Definition: SetDesiredCapacityRequest.h:119
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetDesiredCapacityRequest
SetDesiredCapacityRequest()
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetDesiredCapacity
void SetDesiredCapacity(int value)
Definition: SetDesiredCapacityRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::SetDesiredCapacityRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: SetDesiredCapacityRequest.h:57
Aws::AutoScaling::Model::SetDesiredCapacityRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetDesiredCapacityRequest.h:30
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::SetDesiredCapacityRequest::WithAutoScalingGroupName
SetDesiredCapacityRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: SetDesiredCapacityRequest.h:72
Aws::AutoScaling::Model::SetDesiredCapacityRequest::WithDesiredCapacity
SetDesiredCapacityRequest & WithDesiredCapacity(int value)
Definition: SetDesiredCapacityRequest.h:102
Aws::AutoScaling::Model::SetDesiredCapacityRequest::GetDesiredCapacity
int GetDesiredCapacity() const
Definition: SetDesiredCapacityRequest.h:84