AWS SDK for C++  1.9.107
AWS SDK for C++
DescribeAutoScalingInstancesRequest.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 "DescribeAutoScalingInstances"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
45  inline const Aws::Vector<Aws::String>& GetInstanceIds() const{ return m_instanceIds; }
46 
52  inline bool InstanceIdsHasBeenSet() const { return m_instanceIdsHasBeenSet; }
53 
59  inline void SetInstanceIds(const Aws::Vector<Aws::String>& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = value; }
60 
66  inline void SetInstanceIds(Aws::Vector<Aws::String>&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds = std::move(value); }
67 
73  inline DescribeAutoScalingInstancesRequest& WithInstanceIds(const Aws::Vector<Aws::String>& value) { SetInstanceIds(value); return *this;}
74 
80  inline DescribeAutoScalingInstancesRequest& WithInstanceIds(Aws::Vector<Aws::String>&& value) { SetInstanceIds(std::move(value)); return *this;}
81 
87  inline DescribeAutoScalingInstancesRequest& AddInstanceIds(const Aws::String& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
88 
94  inline DescribeAutoScalingInstancesRequest& AddInstanceIds(Aws::String&& value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(std::move(value)); return *this; }
95 
101  inline DescribeAutoScalingInstancesRequest& AddInstanceIds(const char* value) { m_instanceIdsHasBeenSet = true; m_instanceIds.push_back(value); return *this; }
102 
103 
108  inline int GetMaxRecords() const{ return m_maxRecords; }
109 
114  inline bool MaxRecordsHasBeenSet() const { return m_maxRecordsHasBeenSet; }
115 
120  inline void SetMaxRecords(int value) { m_maxRecordsHasBeenSet = true; m_maxRecords = value; }
121 
126  inline DescribeAutoScalingInstancesRequest& WithMaxRecords(int value) { SetMaxRecords(value); return *this;}
127 
128 
133  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
134 
139  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
140 
145  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
146 
151  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
152 
157  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
158 
163  inline DescribeAutoScalingInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
164 
169  inline DescribeAutoScalingInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
170 
175  inline DescribeAutoScalingInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
176 
177  private:
178 
179  Aws::Vector<Aws::String> m_instanceIds;
180  bool m_instanceIdsHasBeenSet;
181 
182  int m_maxRecords;
183  bool m_maxRecordsHasBeenSet;
184 
185  Aws::String m_nextToken;
186  bool m_nextTokenHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace AutoScaling
191 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest
Definition: DescribeAutoScalingInstancesRequest.h:23
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeAutoScalingInstancesRequest.h:145
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetInstanceIds
void SetInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAutoScalingInstancesRequest.h:59
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetMaxRecords
void SetMaxRecords(int value)
Definition: DescribeAutoScalingInstancesRequest.h:120
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::AddInstanceIds
DescribeAutoScalingInstancesRequest & AddInstanceIds(Aws::String &&value)
Definition: DescribeAutoScalingInstancesRequest.h:94
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::GetInstanceIds
const Aws::Vector< Aws::String > & GetInstanceIds() const
Definition: DescribeAutoScalingInstancesRequest.h:45
AWSVector.h
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithInstanceIds
DescribeAutoScalingInstancesRequest & WithInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAutoScalingInstancesRequest.h:80
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithInstanceIds
DescribeAutoScalingInstancesRequest & WithInstanceIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAutoScalingInstancesRequest.h:73
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithNextToken
DescribeAutoScalingInstancesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeAutoScalingInstancesRequest.h:169
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetInstanceIds
void SetInstanceIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAutoScalingInstancesRequest.h:66
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::AddInstanceIds
DescribeAutoScalingInstancesRequest & AddInstanceIds(const char *value)
Definition: DescribeAutoScalingInstancesRequest.h:101
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeAutoScalingInstancesRequest.h:157
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithMaxRecords
DescribeAutoScalingInstancesRequest & WithMaxRecords(int value)
Definition: DescribeAutoScalingInstancesRequest.h:126
AutoScalingRequest.h
AWS_AUTOSCALING_API
#define AWS_AUTOSCALING_API
Definition: AutoScaling_EXPORTS.h:28
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWSString.h
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeAutoScalingInstancesRequest.h:151
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAutoScalingInstancesRequest.h:31
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::AddInstanceIds
DescribeAutoScalingInstancesRequest & AddInstanceIds(const Aws::String &value)
Definition: DescribeAutoScalingInstancesRequest.h:87
Aws::AutoScaling::AutoScalingRequest
Definition: AutoScalingRequest.h:17
AutoScaling_EXPORTS.h
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::DescribeAutoScalingInstancesRequest
DescribeAutoScalingInstancesRequest()
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeAutoScalingInstancesRequest.h:139
Aws
Definition: AccessManagementClient.h:15
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithNextToken
DescribeAutoScalingInstancesRequest & WithNextToken(const char *value)
Definition: DescribeAutoScalingInstancesRequest.h:175
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::InstanceIdsHasBeenSet
bool InstanceIdsHasBeenSet() const
Definition: DescribeAutoScalingInstancesRequest.h:52
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::WithNextToken
DescribeAutoScalingInstancesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeAutoScalingInstancesRequest.h:163
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeAutoScalingInstancesRequest.h:133
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::GetMaxRecords
int GetMaxRecords() const
Definition: DescribeAutoScalingInstancesRequest.h:108
Aws::AutoScaling::Model::DescribeAutoScalingInstancesRequest::MaxRecordsHasBeenSet
bool MaxRecordsHasBeenSet() const
Definition: DescribeAutoScalingInstancesRequest.h:114