AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeElasticGpusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ec2/EC2Request.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11#include <aws/ec2/model/Filter.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EC2 {
17namespace Model {
18
22 public:
23 AWS_EC2_API DescribeElasticGpusRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "DescribeElasticGpus"; }
30
31 AWS_EC2_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
41 inline const Aws::Vector<Aws::String>& GetElasticGpuIds() const { return m_elasticGpuIds; }
42 inline bool ElasticGpuIdsHasBeenSet() const { return m_elasticGpuIdsHasBeenSet; }
43 template <typename ElasticGpuIdsT = Aws::Vector<Aws::String>>
44 void SetElasticGpuIds(ElasticGpuIdsT&& value) {
45 m_elasticGpuIdsHasBeenSet = true;
46 m_elasticGpuIds = std::forward<ElasticGpuIdsT>(value);
47 }
48 template <typename ElasticGpuIdsT = Aws::Vector<Aws::String>>
50 SetElasticGpuIds(std::forward<ElasticGpuIdsT>(value));
51 return *this;
52 }
53 template <typename ElasticGpuIdsT = Aws::String>
55 m_elasticGpuIdsHasBeenSet = true;
56 m_elasticGpuIds.emplace_back(std::forward<ElasticGpuIdsT>(value));
57 return *this;
58 }
60
62
68 inline bool GetDryRun() const { return m_dryRun; }
69 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
70 inline void SetDryRun(bool value) {
71 m_dryRunHasBeenSet = true;
72 m_dryRun = value;
73 }
75 SetDryRun(value);
76 return *this;
77 }
79
81
92 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
93 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
94 template <typename FiltersT = Aws::Vector<Filter>>
95 void SetFilters(FiltersT&& value) {
96 m_filtersHasBeenSet = true;
97 m_filters = std::forward<FiltersT>(value);
98 }
99 template <typename FiltersT = Aws::Vector<Filter>>
101 SetFilters(std::forward<FiltersT>(value));
102 return *this;
103 }
104 template <typename FiltersT = Filter>
106 m_filtersHasBeenSet = true;
107 m_filters.emplace_back(std::forward<FiltersT>(value));
108 return *this;
109 }
111
113
118 inline int GetMaxResults() const { return m_maxResults; }
119 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
120 inline void SetMaxResults(int value) {
121 m_maxResultsHasBeenSet = true;
122 m_maxResults = value;
123 }
125 SetMaxResults(value);
126 return *this;
127 }
129
131
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 template <typename NextTokenT = Aws::String>
137 void SetNextToken(NextTokenT&& value) {
138 m_nextTokenHasBeenSet = true;
139 m_nextToken = std::forward<NextTokenT>(value);
140 }
141 template <typename NextTokenT = Aws::String>
143 SetNextToken(std::forward<NextTokenT>(value));
144 return *this;
145 }
147 private:
148 Aws::Vector<Aws::String> m_elasticGpuIds;
149
150 bool m_dryRun{false};
151
152 Aws::Vector<Filter> m_filters;
153
154 int m_maxResults{0};
155
156 Aws::String m_nextToken;
157 bool m_elasticGpuIdsHasBeenSet = false;
158 bool m_dryRunHasBeenSet = false;
159 bool m_filtersHasBeenSet = false;
160 bool m_maxResultsHasBeenSet = false;
161 bool m_nextTokenHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace EC2
166} // namespace Aws
DescribeElasticGpusRequest & AddElasticGpuIds(ElasticGpuIdsT &&value)
DescribeElasticGpusRequest & WithDryRun(bool value)
const Aws::Vector< Aws::String > & GetElasticGpuIds() const
virtual const char * GetServiceRequestName() const override
AWS_EC2_API DescribeElasticGpusRequest()=default
const Aws::Vector< Filter > & GetFilters() const
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeElasticGpusRequest & WithMaxResults(int value)
DescribeElasticGpusRequest & WithFilters(FiltersT &&value)
DescribeElasticGpusRequest & WithElasticGpuIds(ElasticGpuIdsT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
DescribeElasticGpusRequest & WithNextToken(NextTokenT &&value)
DescribeElasticGpusRequest & AddFilters(FiltersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector