AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeFleetsRequest.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 "DescribeFleets"; }
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 DescribeFleetsRequest& 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 DescribeFleetsRequest& 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 DescribeFleetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
132 
136  inline DescribeFleetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
137 
141  inline DescribeFleetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143 
147  inline const Aws::Vector<Aws::String>& GetFleetIds() const{ return m_fleetIds; }
148 
152  inline bool FleetIdsHasBeenSet() const { return m_fleetIdsHasBeenSet; }
153 
157  inline void SetFleetIds(const Aws::Vector<Aws::String>& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = value; }
158 
162  inline void SetFleetIds(Aws::Vector<Aws::String>&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds = std::move(value); }
163 
167  inline DescribeFleetsRequest& WithFleetIds(const Aws::Vector<Aws::String>& value) { SetFleetIds(value); return *this;}
168 
172  inline DescribeFleetsRequest& WithFleetIds(Aws::Vector<Aws::String>&& value) { SetFleetIds(std::move(value)); return *this;}
173 
177  inline DescribeFleetsRequest& AddFleetIds(const Aws::String& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; }
178 
182  inline DescribeFleetsRequest& AddFleetIds(Aws::String&& value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(std::move(value)); return *this; }
183 
187  inline DescribeFleetsRequest& AddFleetIds(const char* value) { m_fleetIdsHasBeenSet = true; m_fleetIds.push_back(value); return *this; }
188 
189 
206  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
207 
224  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
225 
242  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
243 
260  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
261 
278  inline DescribeFleetsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
279 
296  inline DescribeFleetsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
297 
314  inline DescribeFleetsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
315 
332  inline DescribeFleetsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
333 
334  private:
335 
336  bool m_dryRun;
337  bool m_dryRunHasBeenSet;
338 
339  int m_maxResults;
340  bool m_maxResultsHasBeenSet;
341 
342  Aws::String m_nextToken;
343  bool m_nextTokenHasBeenSet;
344 
345  Aws::Vector<Aws::String> m_fleetIds;
346  bool m_fleetIdsHasBeenSet;
347 
348  Aws::Vector<Filter> m_filters;
349  bool m_filtersHasBeenSet;
350  };
351 
352 } // namespace Model
353 } // namespace EC2
354 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeFleetsRequest::AddFilters
DescribeFleetsRequest & AddFilters(Filter &&value)
Definition: DescribeFleetsRequest.h:332
Aws::EC2::Model::DescribeFleetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeFleetsRequest.h:93
Aws::EC2::Model::DescribeFleetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeFleetsRequest.h:121
Aws::EC2::Model::DescribeFleetsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFleetsRequest.h:242
Aws::EC2::Model::DescribeFleetsRequest::AddFleetIds
DescribeFleetsRequest & AddFleetIds(const char *value)
Definition: DescribeFleetsRequest.h:187
Aws::EC2::Model::DescribeFleetsRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeFleetsRequest.h:47
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeFleetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeFleetsRequest.h:126
Aws::EC2::Model::DescribeFleetsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeFleetsRequest.h:224
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeFleetsRequest::WithMaxResults
DescribeFleetsRequest & WithMaxResults(int value)
Definition: DescribeFleetsRequest.h:100
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeFleetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeFleetsRequest.h:86
Aws::EC2::Model::DescribeFleetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeFleetsRequest.h:106
Aws::EC2::Model::DescribeFleetsRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeFleetsRequest.h:55
Aws::EC2::Model::DescribeFleetsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeFleetsRequest
Definition: DescribeFleetsRequest.h:24
Aws::EC2::Model::DescribeFleetsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFleetsRequest.h:260
EC2Request.h
Aws::EC2::Model::DescribeFleetsRequest::WithDryRun
DescribeFleetsRequest & WithDryRun(bool value)
Definition: DescribeFleetsRequest.h:71
Aws::EC2::Model::DescribeFleetsRequest::WithFilters
DescribeFleetsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeFleetsRequest.h:296
AWSString.h
Aws::EC2::Model::DescribeFleetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeFleetsRequest.h:111
Aws::EC2::Model::DescribeFleetsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeFleetsRequest.h:206
Aws::EC2::Model::DescribeFleetsRequest::WithFilters
DescribeFleetsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeFleetsRequest.h:278
Aws::EC2::Model::DescribeFleetsRequest::WithNextToken
DescribeFleetsRequest & WithNextToken(const char *value)
Definition: DescribeFleetsRequest.h:141
Aws::EC2::Model::DescribeFleetsRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeFleetsRequest.h:63
Aws::EC2::Model::DescribeFleetsRequest::DescribeFleetsRequest
DescribeFleetsRequest()
Aws::EC2::Model::DescribeFleetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeFleetsRequest.h:32
Aws::EC2::Model::DescribeFleetsRequest::AddFilters
DescribeFleetsRequest & AddFilters(const Filter &value)
Definition: DescribeFleetsRequest.h:314
Aws::EC2::Model::DescribeFleetsRequest::SetFleetIds
void SetFleetIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeFleetsRequest.h:157
Aws::EC2::Model::DescribeFleetsRequest::GetFleetIds
const Aws::Vector< Aws::String > & GetFleetIds() const
Definition: DescribeFleetsRequest.h:147
Aws::EC2::Model::DescribeFleetsRequest::AddFleetIds
DescribeFleetsRequest & AddFleetIds(const Aws::String &value)
Definition: DescribeFleetsRequest.h:177
Aws::EC2::Model::DescribeFleetsRequest::SetFleetIds
void SetFleetIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeFleetsRequest.h:162
Aws::EC2::Model::DescribeFleetsRequest::WithNextToken
DescribeFleetsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeFleetsRequest.h:136
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeFleetsRequest::WithFleetIds
DescribeFleetsRequest & WithFleetIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeFleetsRequest.h:172
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeFleetsRequest::AddFleetIds
DescribeFleetsRequest & AddFleetIds(Aws::String &&value)
Definition: DescribeFleetsRequest.h:182
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeFleetsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeFleetsRequest.h:79
Aws::EC2::Model::DescribeFleetsRequest::WithFleetIds
DescribeFleetsRequest & WithFleetIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeFleetsRequest.h:167
Aws::EC2::Model::DescribeFleetsRequest::SerializePayload
Aws::String SerializePayload() const override
EC2_EXPORTS.h
Aws::EC2::Model::DescribeFleetsRequest::WithNextToken
DescribeFleetsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeFleetsRequest.h:131
Aws::EC2::Model::DescribeFleetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeFleetsRequest.h:116
Aws::EC2::Model::DescribeFleetsRequest::FleetIdsHasBeenSet
bool FleetIdsHasBeenSet() const
Definition: DescribeFleetsRequest.h:152