AWS SDK for C++  1.9.67
AWS SDK for C++
DescribeElasticGpusRequest.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 "DescribeElasticGpus"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetElasticGpuIds() const{ return m_elasticGpuIds; }
45 
49  inline bool ElasticGpuIdsHasBeenSet() const { return m_elasticGpuIdsHasBeenSet; }
50 
54  inline void SetElasticGpuIds(const Aws::Vector<Aws::String>& value) { m_elasticGpuIdsHasBeenSet = true; m_elasticGpuIds = value; }
55 
59  inline void SetElasticGpuIds(Aws::Vector<Aws::String>&& value) { m_elasticGpuIdsHasBeenSet = true; m_elasticGpuIds = std::move(value); }
60 
64  inline DescribeElasticGpusRequest& WithElasticGpuIds(const Aws::Vector<Aws::String>& value) { SetElasticGpuIds(value); return *this;}
65 
69  inline DescribeElasticGpusRequest& WithElasticGpuIds(Aws::Vector<Aws::String>&& value) { SetElasticGpuIds(std::move(value)); return *this;}
70 
74  inline DescribeElasticGpusRequest& AddElasticGpuIds(const Aws::String& value) { m_elasticGpuIdsHasBeenSet = true; m_elasticGpuIds.push_back(value); return *this; }
75 
79  inline DescribeElasticGpusRequest& AddElasticGpuIds(Aws::String&& value) { m_elasticGpuIdsHasBeenSet = true; m_elasticGpuIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeElasticGpusRequest& AddElasticGpuIds(const char* value) { m_elasticGpuIdsHasBeenSet = true; m_elasticGpuIds.push_back(value); return *this; }
85 
86 
93  inline bool GetDryRun() const{ return m_dryRun; }
94 
101  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
102 
109  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
110 
117  inline DescribeElasticGpusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
118 
119 
131  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
132 
144  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
145 
157  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
158 
170  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
171 
183  inline DescribeElasticGpusRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
184 
196  inline DescribeElasticGpusRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
197 
209  inline DescribeElasticGpusRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
210 
222  inline DescribeElasticGpusRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
223 
224 
230  inline int GetMaxResults() const{ return m_maxResults; }
231 
237  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
238 
244  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
245 
251  inline DescribeElasticGpusRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
252 
253 
257  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
258 
262  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
263 
267  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
268 
272  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
273 
277  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
278 
282  inline DescribeElasticGpusRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
283 
287  inline DescribeElasticGpusRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
288 
292  inline DescribeElasticGpusRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
293 
294  private:
295 
296  Aws::Vector<Aws::String> m_elasticGpuIds;
297  bool m_elasticGpuIdsHasBeenSet;
298 
299  bool m_dryRun;
300  bool m_dryRunHasBeenSet;
301 
302  Aws::Vector<Filter> m_filters;
303  bool m_filtersHasBeenSet;
304 
305  int m_maxResults;
306  bool m_maxResultsHasBeenSet;
307 
308  Aws::String m_nextToken;
309  bool m_nextTokenHasBeenSet;
310  };
311 
312 } // namespace Model
313 } // namespace EC2
314 } // namespace Aws
Aws::EC2::Model::DescribeElasticGpusRequest::WithFilters
DescribeElasticGpusRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeElasticGpusRequest.h:183
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeElasticGpusRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeElasticGpusRequest.h:244
Aws::EC2::Model::DescribeElasticGpusRequest::AddElasticGpuIds
DescribeElasticGpusRequest & AddElasticGpuIds(const Aws::String &value)
Definition: DescribeElasticGpusRequest.h:74
Aws::EC2::Model::DescribeElasticGpusRequest::WithNextToken
DescribeElasticGpusRequest & WithNextToken(const char *value)
Definition: DescribeElasticGpusRequest.h:292
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeElasticGpusRequest::AddFilters
DescribeElasticGpusRequest & AddFilters(const Filter &value)
Definition: DescribeElasticGpusRequest.h:209
Aws::EC2::Model::DescribeElasticGpusRequest::WithNextToken
DescribeElasticGpusRequest & WithNextToken(const Aws::String &value)
Definition: DescribeElasticGpusRequest.h:282
Aws::EC2::Model::DescribeElasticGpusRequest::GetDryRun
bool GetDryRun() const
Definition: DescribeElasticGpusRequest.h:93
Aws::EC2::Model::DescribeElasticGpusRequest::WithFilters
DescribeElasticGpusRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeElasticGpusRequest.h:196
Aws::EC2::Model::DescribeElasticGpusRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeElasticGpusRequest.h:262
AWSVector.h
Aws::EC2::Model::DescribeElasticGpusRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: DescribeElasticGpusRequest.h:101
Filter.h
Aws::EC2::Model::DescribeElasticGpusRequest::WithNextToken
DescribeElasticGpusRequest & WithNextToken(Aws::String &&value)
Definition: DescribeElasticGpusRequest.h:287
Aws::EC2::Model::DescribeElasticGpusRequest::AddElasticGpuIds
DescribeElasticGpusRequest & AddElasticGpuIds(Aws::String &&value)
Definition: DescribeElasticGpusRequest.h:79
Aws::EC2::Model::DescribeElasticGpusRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeElasticGpusRequest.h:257
EC2Request.h
Aws::EC2::Model::DescribeElasticGpusRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeElasticGpusRequest.h:277
Aws::EC2::Model::DescribeElasticGpusRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeElasticGpusRequest::WithElasticGpuIds
DescribeElasticGpusRequest & WithElasticGpuIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeElasticGpusRequest.h:64
AWSString.h
Aws::EC2::Model::DescribeElasticGpusRequest::ElasticGpuIdsHasBeenSet
bool ElasticGpuIdsHasBeenSet() const
Definition: DescribeElasticGpusRequest.h:49
Aws::EC2::Model::DescribeElasticGpusRequest::AddElasticGpuIds
DescribeElasticGpusRequest & AddElasticGpuIds(const char *value)
Definition: DescribeElasticGpusRequest.h:84
Aws::EC2::Model::DescribeElasticGpusRequest::SetDryRun
void SetDryRun(bool value)
Definition: DescribeElasticGpusRequest.h:109
Aws::EC2::Model::DescribeElasticGpusRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeElasticGpusRequest.h:32
Aws::EC2::Model::DescribeElasticGpusRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeElasticGpusRequest.h:157
Aws::EC2::Model::DescribeElasticGpusRequest::GetElasticGpuIds
const Aws::Vector< Aws::String > & GetElasticGpuIds() const
Definition: DescribeElasticGpusRequest.h:44
Aws::EC2::Model::DescribeElasticGpusRequest
Definition: DescribeElasticGpusRequest.h:24
Aws::EC2::Model::DescribeElasticGpusRequest::WithElasticGpuIds
DescribeElasticGpusRequest & WithElasticGpuIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeElasticGpusRequest.h:69
Aws::EC2::Model::DescribeElasticGpusRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeElasticGpusRequest.h:272
Aws::EC2::Model::DescribeElasticGpusRequest::SetElasticGpuIds
void SetElasticGpuIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeElasticGpusRequest.h:59
Aws::EC2::Model::DescribeElasticGpusRequest::DescribeElasticGpusRequest
DescribeElasticGpusRequest()
Aws::EC2::Model::DescribeElasticGpusRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeElasticGpusRequest.h:230
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeElasticGpusRequest::SetElasticGpuIds
void SetElasticGpuIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeElasticGpusRequest.h:54
Aws::EC2::Model::DescribeElasticGpusRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeElasticGpusRequest.h:131
Aws::EC2::Model::DescribeElasticGpusRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeElasticGpusRequest.h:144
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeElasticGpusRequest::AddFilters
DescribeElasticGpusRequest & AddFilters(Filter &&value)
Definition: DescribeElasticGpusRequest.h:222
Aws::EC2::Model::DescribeElasticGpusRequest::WithDryRun
DescribeElasticGpusRequest & WithDryRun(bool value)
Definition: DescribeElasticGpusRequest.h:117
Aws::EC2::Model::DescribeElasticGpusRequest::WithMaxResults
DescribeElasticGpusRequest & WithMaxResults(int value)
Definition: DescribeElasticGpusRequest.h:251
EC2_EXPORTS.h
Aws::EC2::Model::DescribeElasticGpusRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeElasticGpusRequest.h:170
Aws::EC2::Model::DescribeElasticGpusRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeElasticGpusRequest.h:237
Aws::EC2::Model::DescribeElasticGpusRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeElasticGpusRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeElasticGpusRequest.h:267