AWS SDK for C++  1.9.69
AWS SDK for C++
DescribeFleetInstancesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeFleetInstances"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
47  inline bool GetDryRun() const{ return m_dryRun; }
48 
55  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
56 
63  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
64 
71  inline DescribeFleetInstancesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
72 
73 
79  inline int GetMaxResults() const{ return m_maxResults; }
80 
86  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 
93  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
94 
100  inline DescribeFleetInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
101 
102 
106  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
107 
111  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
112 
116  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
117 
121  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
122 
126  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
127 
131  inline DescribeFleetInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
132 
136  inline DescribeFleetInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
137 
141  inline DescribeFleetInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143 
147  inline const Aws::String& GetFleetId() const{ return m_fleetId; }
148 
152  inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
153 
157  inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
158 
162  inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
163 
167  inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
168 
172  inline DescribeFleetInstancesRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
173 
177  inline DescribeFleetInstancesRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
178 
182  inline DescribeFleetInstancesRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
183 
184 
189  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
190 
195  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
196 
201  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
202 
207  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
208 
213  inline DescribeFleetInstancesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
214 
219  inline DescribeFleetInstancesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
220 
225  inline DescribeFleetInstancesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
226 
231  inline DescribeFleetInstancesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
232 
233  private:
234 
235  bool m_dryRun;
236  bool m_dryRunHasBeenSet;
237 
238  int m_maxResults;
239  bool m_maxResultsHasBeenSet;
240 
241  Aws::String m_nextToken;
242  bool m_nextTokenHasBeenSet;
243 
244  Aws::String m_fleetId;
245  bool m_fleetIdHasBeenSet;
246 
247  Aws::Vector<Filter> m_filters;
248  bool m_filtersHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace EC2
253 } // namespace Aws
Aws::EC2::Model::DescribeFleetInstancesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeFleetInstancesRequest.h:32
Aws::EC2::Model::DescribeFleetInstancesRequest
Definition: DescribeFleetInstancesRequest.h:24
Aws::EC2::Model::DescribeFleetInstancesRequest::WithMaxResults
DescribeFleetInstancesRequest & WithMaxResults(int value)
Definition: DescribeFleetInstancesRequest.h:100
Aws::EC2::Model::DescribeFleetInstancesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeFleetInstancesRequest.h:86
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeFleetInstancesRequest::WithFleetId
DescribeFleetInstancesRequest & WithFleetId(Aws::String &&value)
Definition: DescribeFleetInstancesRequest.h:177
Aws::EC2::Model::DescribeFleetInstancesRequest::WithNextToken
DescribeFleetInstancesRequest & WithNextToken(Aws::String &&value)
Definition: DescribeFleetInstancesRequest.h:136
Aws::EC2::Model::DescribeFleetInstancesRequest::AddFilters
DescribeFleetInstancesRequest & AddFilters(Filter &&value)
Definition: DescribeFleetInstancesRequest.h:231
Aws::EC2::Model::DescribeFleetInstancesRequest::WithFilters
DescribeFleetInstancesRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFleetInstancesRequest.h:213
Aws::EC2::Model::DescribeFleetInstancesRequest::WithFleetId
DescribeFleetInstancesRequest & WithFleetId(const Aws::String &value)
Definition: DescribeFleetInstancesRequest.h:172
Aws::EC2::Model::DescribeFleetInstancesRequest::DescribeFleetInstancesRequest
DescribeFleetInstancesRequest()
Aws::EC2::Model::DescribeFleetInstancesRequest::WithFilters
DescribeFleetInstancesRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFleetInstancesRequest.h:219
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetInstancesRequest::SetFleetId
void SetFleetId(const char *value)
Definition: DescribeFleetInstancesRequest.h:167
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFleetInstancesRequest::SetFleetId
void SetFleetId(const Aws::String &value)
Definition: DescribeFleetInstancesRequest.h:157
Aws::EC2::Model::DescribeFleetInstancesRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeFleetInstancesRequest.h:63
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeFleetInstancesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeFleetInstancesRequest.h:111
Aws::EC2::Model::DescribeFleetInstancesRequest::GetFleetId
const Aws::String & GetFleetId() const
Definition: DescribeFleetInstancesRequest.h:147
Aws::EC2::Model::DescribeFleetInstancesRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFleetInstancesRequest.h:201
Aws::EC2::Model::DescribeFleetInstancesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeFleetInstancesRequest.h:55
Aws::EC2::Model::DescribeFleetInstancesRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeFleetInstancesRequest.h:189
Aws::EC2::Model::DescribeFleetInstancesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFleetInstancesRequest.h:106
Aws::EC2::Model::DescribeFleetInstancesRequest::WithNextToken
DescribeFleetInstancesRequest & WithNextToken(const Aws::String &value)
Definition: DescribeFleetInstancesRequest.h:131
Aws::EC2::Model::DescribeFleetInstancesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeFleetInstancesRequest::WithNextToken
DescribeFleetInstancesRequest & WithNextToken(const char *value)
Definition: DescribeFleetInstancesRequest.h:141
Aws::EC2::Model::DescribeFleetInstancesRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFleetInstancesRequest.h:207
EC2Request.h
Aws::EC2::Model::DescribeFleetInstancesRequest::SetFleetId
void SetFleetId(Aws::String &&value)
Definition: DescribeFleetInstancesRequest.h:162
Aws::EC2::Model::DescribeFleetInstancesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFleetInstancesRequest.h:116
AWSString.h
Aws::EC2::Model::DescribeFleetInstancesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeFleetInstancesRequest.h:195
Aws::EC2::Model::DescribeFleetInstancesRequest::WithDryRun
DescribeFleetInstancesRequest & WithDryRun(bool value)
Definition: DescribeFleetInstancesRequest.h:71
Aws::EC2::Model::DescribeFleetInstancesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeFleetInstancesRequest::AddFilters
DescribeFleetInstancesRequest & AddFilters(const Filter &value)
Definition: DescribeFleetInstancesRequest.h:225
Aws::EC2::Model::DescribeFleetInstancesRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeFleetInstancesRequest.h:79
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFleetInstancesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFleetInstancesRequest.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeFleetInstancesRequest::FleetIdHasBeenSet
bool FleetIdHasBeenSet() const
Definition: DescribeFleetInstancesRequest.h:152
Aws::EC2::Model::DescribeFleetInstancesRequest::WithFleetId
DescribeFleetInstancesRequest & WithFleetId(const char *value)
Definition: DescribeFleetInstancesRequest.h:182
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeFleetInstancesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeFleetInstancesRequest.h:93
Aws::EC2::Model::DescribeFleetInstancesRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeFleetInstancesRequest.h:47
Aws::EC2::Model::DescribeFleetInstancesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFleetInstancesRequest.h:126
EC2_EXPORTS.h