AWS SDK for C++  1.9.129
AWS SDK for C++
DescribeAcceleratorsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ElasticInference
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 "DescribeAccelerators"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::Vector<Aws::String>& GetAcceleratorIds() const{ return m_acceleratorIds; }
41 
45  inline bool AcceleratorIdsHasBeenSet() const { return m_acceleratorIdsHasBeenSet; }
46 
50  inline void SetAcceleratorIds(const Aws::Vector<Aws::String>& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = value; }
51 
55  inline void SetAcceleratorIds(Aws::Vector<Aws::String>&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds = std::move(value); }
56 
60  inline DescribeAcceleratorsRequest& WithAcceleratorIds(const Aws::Vector<Aws::String>& value) { SetAcceleratorIds(value); return *this;}
61 
65  inline DescribeAcceleratorsRequest& WithAcceleratorIds(Aws::Vector<Aws::String>&& value) { SetAcceleratorIds(std::move(value)); return *this;}
66 
70  inline DescribeAcceleratorsRequest& AddAcceleratorIds(const Aws::String& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; }
71 
75  inline DescribeAcceleratorsRequest& AddAcceleratorIds(Aws::String&& value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(std::move(value)); return *this; }
76 
80  inline DescribeAcceleratorsRequest& AddAcceleratorIds(const char* value) { m_acceleratorIdsHasBeenSet = true; m_acceleratorIds.push_back(value); return *this; }
81 
82 
89  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
90 
97  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
98 
105  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
106 
113  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
114 
121  inline DescribeAcceleratorsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
122 
129  inline DescribeAcceleratorsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
130 
137  inline DescribeAcceleratorsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
138 
145  inline DescribeAcceleratorsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
146 
147 
155  inline int GetMaxResults() const{ return m_maxResults; }
156 
164  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
165 
173  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
174 
182  inline DescribeAcceleratorsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
183 
184 
189  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
190 
195  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
196 
201  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
202 
207  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
208 
213  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
214 
219  inline DescribeAcceleratorsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
220 
225  inline DescribeAcceleratorsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
226 
231  inline DescribeAcceleratorsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
232 
233  private:
234 
235  Aws::Vector<Aws::String> m_acceleratorIds;
236  bool m_acceleratorIdsHasBeenSet;
237 
238  Aws::Vector<Filter> m_filters;
239  bool m_filtersHasBeenSet;
240 
241  int m_maxResults;
242  bool m_maxResultsHasBeenSet;
243 
244  Aws::String m_nextToken;
245  bool m_nextTokenHasBeenSet;
246  };
247 
248 } // namespace Model
249 } // namespace ElasticInference
250 } // namespace Aws
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeAcceleratorsRequest.h:97
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AddFilters
DescribeAcceleratorsRequest & AddFilters(Filter &&value)
Definition: DescribeAcceleratorsRequest.h:145
Aws::ElasticInference::Model::Filter
Definition: Filter.h:34
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeAcceleratorsRequest.h:89
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SerializePayload
Aws::String SerializePayload() const override
Filter.h
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithMaxResults
DescribeAcceleratorsRequest & WithMaxResults(int value)
Definition: DescribeAcceleratorsRequest.h:182
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithFilters
DescribeAcceleratorsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAcceleratorsRequest.h:129
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AddAcceleratorIds
DescribeAcceleratorsRequest & AddAcceleratorIds(Aws::String &&value)
Definition: DescribeAcceleratorsRequest.h:75
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithAcceleratorIds
DescribeAcceleratorsRequest & WithAcceleratorIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAcceleratorsRequest.h:60
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeAcceleratorsRequest.h:164
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AddAcceleratorIds
DescribeAcceleratorsRequest & AddAcceleratorIds(const char *value)
Definition: DescribeAcceleratorsRequest.h:80
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeAcceleratorsRequest.h:113
AWSVector.h
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AddFilters
DescribeAcceleratorsRequest & AddFilters(const Filter &value)
Definition: DescribeAcceleratorsRequest.h:137
Aws::ElasticInference::Model::DescribeAcceleratorsRequest
Definition: DescribeAcceleratorsRequest.h:24
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::GetAcceleratorIds
const Aws::Vector< Aws::String > & GetAcceleratorIds() const
Definition: DescribeAcceleratorsRequest.h:40
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithFilters
DescribeAcceleratorsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAcceleratorsRequest.h:121
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithNextToken
DescribeAcceleratorsRequest & WithNextToken(const char *value)
Definition: DescribeAcceleratorsRequest.h:231
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAcceleratorsRequest.h:32
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeAcceleratorsRequest.h:105
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeAcceleratorsRequest.h:207
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeAcceleratorsRequest.h:173
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetAcceleratorIds
void SetAcceleratorIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAcceleratorsRequest.h:55
AWSString.h
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AddAcceleratorIds
DescribeAcceleratorsRequest & AddAcceleratorIds(const Aws::String &value)
Definition: DescribeAcceleratorsRequest.h:70
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeAcceleratorsRequest.h:189
ElasticInference_EXPORTS.h
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeAcceleratorsRequest.h:155
ElasticInferenceRequest.h
AWS_ELASTICINFERENCE_API
#define AWS_ELASTICINFERENCE_API
Definition: ElasticInference_EXPORTS.h:28
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeAcceleratorsRequest.h:213
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeAcceleratorsRequest.h:201
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticInference::ElasticInferenceRequest
Definition: ElasticInferenceRequest.h:17
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::SetAcceleratorIds
void SetAcceleratorIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeAcceleratorsRequest.h:50
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithNextToken
DescribeAcceleratorsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeAcceleratorsRequest.h:225
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::DescribeAcceleratorsRequest
DescribeAcceleratorsRequest()
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithAcceleratorIds
DescribeAcceleratorsRequest & WithAcceleratorIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeAcceleratorsRequest.h:65
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::AcceleratorIdsHasBeenSet
bool AcceleratorIdsHasBeenSet() const
Definition: DescribeAcceleratorsRequest.h:45
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeAcceleratorsRequest.h:195
Aws::ElasticInference::Model::DescribeAcceleratorsRequest::WithNextToken
DescribeAcceleratorsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeAcceleratorsRequest.h:219