AWS SDK for C++  1.8.129
AWS SDK for C++
EnterStandbyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace AutoScaling
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "EnterStandby"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
44 
48  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
49 
53  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
54 
58  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
59 
63  inline EnterStandbyRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
64 
68  inline EnterStandbyRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
69 
73  inline EnterStandbyRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
74 
78  inline EnterStandbyRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
79 
83  inline EnterStandbyRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
84 
85 
89  inline const Aws::String& GetAutoScalingGroupName() const{ return m_autoScalingGroupName; }
90 
94  inline bool AutoScalingGroupNameHasBeenSet() const { return m_autoScalingGroupNameHasBeenSet; }
95 
99  inline void SetAutoScalingGroupName(const Aws::String& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = value; }
100 
104  inline void SetAutoScalingGroupName(Aws::String&& value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName = std::move(value); }
105 
109  inline void SetAutoScalingGroupName(const char* value) { m_autoScalingGroupNameHasBeenSet = true; m_autoScalingGroupName.assign(value); }
110 
114  inline EnterStandbyRequest& WithAutoScalingGroupName(const Aws::String& value) { SetAutoScalingGroupName(value); return *this;}
115 
119  inline EnterStandbyRequest& WithAutoScalingGroupName(Aws::String&& value) { SetAutoScalingGroupName(std::move(value)); return *this;}
120 
124  inline EnterStandbyRequest& WithAutoScalingGroupName(const char* value) { SetAutoScalingGroupName(value); return *this;}
125 
126 
131  inline bool GetShouldDecrementDesiredCapacity() const{ return m_shouldDecrementDesiredCapacity; }
132 
137  inline bool ShouldDecrementDesiredCapacityHasBeenSet() const { return m_shouldDecrementDesiredCapacityHasBeenSet; }
138 
143  inline void SetShouldDecrementDesiredCapacity(bool value) { m_shouldDecrementDesiredCapacityHasBeenSet = true; m_shouldDecrementDesiredCapacity = value; }
144 
149  inline EnterStandbyRequest& WithShouldDecrementDesiredCapacity(bool value) { SetShouldDecrementDesiredCapacity(value); return *this;}
150 
151  private:
152 
153  Aws::Vector<Aws::String> m_instanceIds;
154  bool m_instanceIdsHasBeenSet;
155 
156  Aws::String m_autoScalingGroupName;
157  bool m_autoScalingGroupNameHasBeenSet;
158 
159  bool m_shouldDecrementDesiredCapacity;
160  bool m_shouldDecrementDesiredCapacityHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace AutoScaling
165 } // namespace Aws
Aws::AutoScaling::Model::EnterStandbyRequest::WithAutoScalingGroupName
EnterStandbyRequest & WithAutoScalingGroupName(Aws::String &&value)
Definition: EnterStandbyRequest.h:119
Aws::AutoScaling::Model::EnterStandbyRequest
Definition: EnterStandbyRequest.h:23
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::EnterStandbyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::EnterStandbyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const Aws::String &value)
Definition: EnterStandbyRequest.h:99
Aws::AutoScaling::Model::EnterStandbyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(Aws::String &&value)
Definition: EnterStandbyRequest.h:104
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::AutoScaling::Model::EnterStandbyRequest::ShouldDecrementDesiredCapacityHasBeenSet
bool ShouldDecrementDesiredCapacityHasBeenSet() const
Definition: EnterStandbyRequest.h:137
Aws::AutoScaling::Model::EnterStandbyRequest::WithInstanceIds
EnterStandbyRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: EnterStandbyRequest.h:63
Aws::AutoScaling::Model::EnterStandbyRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: EnterStandbyRequest.h:48
Aws::AutoScaling::Model::EnterStandbyRequest::AddInstanceIds
EnterStandbyRequest & AddInstanceIds(Aws::String &&value)
Definition: EnterStandbyRequest.h:78
Aws::AutoScaling::Model::EnterStandbyRequest::SetAutoScalingGroupName
void SetAutoScalingGroupName(const char *value)
Definition: EnterStandbyRequest.h:109
Aws::AutoScaling::Model::EnterStandbyRequest::AddInstanceIds
EnterStandbyRequest & AddInstanceIds(const char *value)
Definition: EnterStandbyRequest.h:83
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::EnterStandbyRequest::WithShouldDecrementDesiredCapacity
EnterStandbyRequest & WithShouldDecrementDesiredCapacity(bool value)
Definition: EnterStandbyRequest.h:149
Aws::AutoScaling::Model::EnterStandbyRequest::AutoScalingGroupNameHasBeenSet
bool AutoScalingGroupNameHasBeenSet() const
Definition: EnterStandbyRequest.h:94
AWSString.h
Aws::AutoScaling::Model::EnterStandbyRequest::GetAutoScalingGroupName
const Aws::String & GetAutoScalingGroupName() const
Definition: EnterStandbyRequest.h:89
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
Aws::AutoScaling::Model::EnterStandbyRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: EnterStandbyRequest.h:43
Aws::AutoScaling::Model::EnterStandbyRequest::WithInstanceIds
EnterStandbyRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: EnterStandbyRequest.h:68
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::EnterStandbyRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::AutoScaling::Model::EnterStandbyRequest::EnterStandbyRequest
EnterStandbyRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::EnterStandbyRequest::WithAutoScalingGroupName
EnterStandbyRequest & WithAutoScalingGroupName(const Aws::String &value)
Definition: EnterStandbyRequest.h:114
Aws::AutoScaling::Model::EnterStandbyRequest::GetShouldDecrementDesiredCapacity
bool GetShouldDecrementDesiredCapacity() const
Definition: EnterStandbyRequest.h:131
Aws::AutoScaling::Model::EnterStandbyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: EnterStandbyRequest.h:31
Aws::AutoScaling::Model::EnterStandbyRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: EnterStandbyRequest.h:58
Aws::AutoScaling::Model::EnterStandbyRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: EnterStandbyRequest.h:53
Aws::AutoScaling::Model::EnterStandbyRequest::AddInstanceIds
EnterStandbyRequest & AddInstanceIds(const Aws::String &value)
Definition: EnterStandbyRequest.h:73
Aws::AutoScaling::Model::EnterStandbyRequest::SetShouldDecrementDesiredCapacity
void SetShouldDecrementDesiredCapacity(bool value)
Definition: EnterStandbyRequest.h:143
Aws::AutoScaling::Model::EnterStandbyRequest::WithAutoScalingGroupName
EnterStandbyRequest & WithAutoScalingGroupName(const char *value)
Definition: EnterStandbyRequest.h:124