AWS SDK for C++  1.9.20
AWS SDK for C++
ListFleetsRequest.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 "ListFleets"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
47  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
48 
59  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
60 
71  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
72 
83  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
84 
95  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
96 
107  inline ListFleetsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
108 
119  inline ListFleetsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
120 
131  inline ListFleetsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
132 
133 
143  inline int GetMaxResults() const{ return m_maxResults; }
144 
154  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
155 
165  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
166 
176  inline ListFleetsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
177 
178 
184  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
185 
191  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
192 
198  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
199 
205  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
206 
212  inline ListFleetsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
213 
219  inline ListFleetsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
220 
226  inline ListFleetsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
227 
233  inline ListFleetsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
234 
235  private:
236 
237  Aws::String m_nextToken;
238  bool m_nextTokenHasBeenSet;
239 
240  int m_maxResults;
241  bool m_maxResultsHasBeenSet;
242 
243  Aws::Vector<Filter> m_filters;
244  bool m_filtersHasBeenSet;
245  };
246 
247 } // namespace Model
248 } // namespace RoboMaker
249 } // namespace Aws
Aws::RoboMaker::Model::ListFleetsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListFleetsRequest.h:191
Aws::RoboMaker::Model::ListFleetsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListFleetsRequest.h:71
Aws::RoboMaker::Model::ListFleetsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: ListFleetsRequest.h:184
RoboMakerRequest.h
Aws::RoboMaker::Model::ListFleetsRequest::AddFilters
ListFleetsRequest & AddFilters(Filter &&value)
Definition: ListFleetsRequest.h:233
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::RoboMaker::Model::ListFleetsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListFleetsRequest.h:59
Aws::RoboMaker::Model::ListFleetsRequest::WithFilters
ListFleetsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: ListFleetsRequest.h:219
Aws::RoboMaker::Model::ListFleetsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListFleetsRequest.h:83
Aws::RoboMaker::Model::ListFleetsRequest::WithMaxResults
ListFleetsRequest & WithMaxResults(int value)
Definition: ListFleetsRequest.h:176
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::ListFleetsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListFleetsRequest.h:154
Aws::RoboMaker::Model::ListFleetsRequest::WithNextToken
ListFleetsRequest & WithNextToken(const char *value)
Definition: ListFleetsRequest.h:131
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::ListFleetsRequest::WithNextToken
ListFleetsRequest & WithNextToken(const Aws::String &value)
Definition: ListFleetsRequest.h:107
AWSString.h
Aws::RoboMaker::Model::Filter
Definition: Filter.h:33
Aws::RoboMaker::Model::ListFleetsRequest::AddFilters
ListFleetsRequest & AddFilters(const Filter &value)
Definition: ListFleetsRequest.h:226
Aws::RoboMaker::Model::ListFleetsRequest::ListFleetsRequest
ListFleetsRequest()
Aws::RoboMaker::Model::ListFleetsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: ListFleetsRequest.h:198
Aws::RoboMaker::Model::ListFleetsRequest::WithNextToken
ListFleetsRequest & WithNextToken(Aws::String &&value)
Definition: ListFleetsRequest.h:119
Aws::RoboMaker::Model::ListFleetsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListFleetsRequest.h:32
Aws
Definition: AccessManagementClient.h:15
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::ListFleetsRequest
Definition: ListFleetsRequest.h:24
Aws::RoboMaker::Model::ListFleetsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::RoboMaker::Model::ListFleetsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListFleetsRequest.h:143
Aws::RoboMaker::Model::ListFleetsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListFleetsRequest.h:47
Aws::RoboMaker::Model::ListFleetsRequest::WithFilters
ListFleetsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: ListFleetsRequest.h:212
Aws::RoboMaker::Model::ListFleetsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListFleetsRequest.h:95
Aws::RoboMaker::Model::ListFleetsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: ListFleetsRequest.h:205
Filter.h
Aws::RoboMaker::Model::ListFleetsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListFleetsRequest.h:165