AWS SDK for C++  1.9.19
AWS SDK for C++
ListRobotsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace RoboMaker
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 "ListRobots"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
45  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
46 
55  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
56 
65  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
66 
75  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 
85  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
86 
95  inline ListRobotsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 
105  inline ListRobotsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
106 
115  inline ListRobotsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
116 
117 
127  inline int GetMaxResults() const{ return m_maxResults; }
128 
138  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
139 
149  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
150 
160  inline ListRobotsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
161 
162 
171  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
172 
181  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
182 
191  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
192 
201  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
202 
211  inline ListRobotsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
212 
221  inline ListRobotsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
222 
231  inline ListRobotsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
232 
241  inline ListRobotsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
242 
243  private:
244 
245  Aws::String m_nextToken;
246  bool m_nextTokenHasBeenSet;
247 
248  int m_maxResults;
249  bool m_maxResultsHasBeenSet;
250 
251  Aws::Vector<Filter> m_filters;
252  bool m_filtersHasBeenSet;
253  };
254 
255 } // namespace Model
256 } // namespace RoboMaker
257 } // namespace Aws
Aws::RoboMaker::Model::ListRobotsRequest::ListRobotsRequest
ListRobotsRequest()
Aws::RoboMaker::Model::ListRobotsRequest
Definition: ListRobotsRequest.h:24
Aws::RoboMaker::Model::ListRobotsRequest::WithMaxResults
ListRobotsRequest & WithMaxResults(int value)
Definition: ListRobotsRequest.h:160
Aws::RoboMaker::Model::ListRobotsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RoboMaker::Model::ListRobotsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListRobotsRequest.h:65
Aws::RoboMaker::Model::ListRobotsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListRobotsRequest.h:85
Aws::RoboMaker::Model::ListRobotsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListRobotsRequest.h:171
Aws::RoboMaker::Model::ListRobotsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListRobotsRequest.h:181
RoboMakerRequest.h
Aws::RoboMaker::Model::ListRobotsRequest::WithFilters
ListRobotsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListRobotsRequest.h:211
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::RoboMaker::Model::ListRobotsRequest::WithNextToken
ListRobotsRequest & WithNextToken(const Aws::String &value)
Definition: ListRobotsRequest.h:95
Aws::RoboMaker::Model::ListRobotsRequest::AddFilters
ListRobotsRequest & AddFilters(Filter &&value)
Definition: ListRobotsRequest.h:241
AWSVector.h
Aws::RoboMaker::Model::ListRobotsRequest::WithFilters
ListRobotsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListRobotsRequest.h:221
Aws::RoboMaker::Model::ListRobotsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListRobotsRequest.h:191
Aws::RoboMaker::Model::ListRobotsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListRobotsRequest.h:201
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::ListRobotsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListRobotsRequest.h:32
Aws::RoboMaker::Model::ListRobotsRequest::WithNextToken
ListRobotsRequest & WithNextToken(const char *value)
Definition: ListRobotsRequest.h:115
Aws::RoboMaker::Model::ListRobotsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListRobotsRequest.h:55
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::ListRobotsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListRobotsRequest.h:138
AWSString.h
Aws::RoboMaker::Model::ListRobotsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListRobotsRequest.h:45
Aws::RoboMaker::Model::Filter
Definition: Filter.h:33
Aws::RoboMaker::Model::ListRobotsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListRobotsRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::Model::ListRobotsRequest::AddFilters
ListRobotsRequest & AddFilters(const Filter &value)
Definition: ListRobotsRequest.h:231
Aws::RoboMaker::RoboMakerRequest
Definition: RoboMakerRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::ListRobotsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListRobotsRequest.h:127
Aws::RoboMaker::Model::ListRobotsRequest::WithNextToken
ListRobotsRequest & WithNextToken(Aws::String &&value)
Definition: ListRobotsRequest.h:105
Aws::RoboMaker::Model::ListRobotsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListRobotsRequest.h:149
Filter.h