AWS SDK for C++  1.9.104
AWS SDK for C++
ListOperationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ServiceDiscovery
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 "ListOperations"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
50  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
51 
63  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 
76  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
77 
89  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
90 
102  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
103 
115  inline ListOperationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
128  inline ListOperationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
129 
141  inline ListOperationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
142 
143 
149  inline int GetMaxResults() const{ return m_maxResults; }
150 
156  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
157 
163  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
164 
170  inline ListOperationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
171 
172 
179  inline const Aws::Vector<OperationFilter>& GetFilters() const{ return m_filters; }
180 
187  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
188 
195  inline void SetFilters(const Aws::Vector<OperationFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
196 
203  inline void SetFilters(Aws::Vector<OperationFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
204 
211  inline ListOperationsRequest& WithFilters(const Aws::Vector<OperationFilter>& value) { SetFilters(value); return *this;}
212 
219  inline ListOperationsRequest& WithFilters(Aws::Vector<OperationFilter>&& value) { SetFilters(std::move(value)); return *this;}
220 
227  inline ListOperationsRequest& AddFilters(const OperationFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
228 
235  inline ListOperationsRequest& AddFilters(OperationFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
236 
237  private:
238 
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241 
242  int m_maxResults;
243  bool m_maxResultsHasBeenSet;
244 
246  bool m_filtersHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace ServiceDiscovery
251 } // namespace Aws
ServiceDiscoveryRequest.h
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::ListOperationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListOperationsRequest.h:50
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithNextToken
ListOperationsRequest & WithNextToken(const char *value)
Definition: ListOperationsRequest.h:141
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithFilters
ListOperationsRequest & WithFilters(Aws::Vector< OperationFilter > &&value)
Definition: ListOperationsRequest.h:219
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListOperationsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListOperationsRequest.h:149
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::ListOperationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListOperationsRequest.h:156
AWSVector.h
Aws::ServiceDiscovery::Model::ListOperationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListOperationsRequest.h:32
OperationFilter.h
Aws::ServiceDiscovery::Model::ListOperationsRequest::AddFilters
ListOperationsRequest & AddFilters(OperationFilter &&value)
Definition: ListOperationsRequest.h:235
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListOperationsRequest.h:102
Aws::ServiceDiscovery::Model::ListOperationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListOperationsRequest.h:187
Aws::ServiceDiscovery::Model::OperationFilter
Definition: OperationFilter.h:36
Aws::ServiceDiscovery::Model::ListOperationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListOperationsRequest.h:63
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::ListOperationsRequest
Definition: ListOperationsRequest.h:24
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithFilters
ListOperationsRequest & WithFilters(const Aws::Vector< OperationFilter > &value)
Definition: ListOperationsRequest.h:211
AWSString.h
Aws::ServiceDiscovery::Model::ListOperationsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetFilters
void SetFilters(const Aws::Vector< OperationFilter > &value)
Definition: ListOperationsRequest.h:195
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithNextToken
ListOperationsRequest & WithNextToken(Aws::String &&value)
Definition: ListOperationsRequest.h:128
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListOperationsRequest.h:89
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithNextToken
ListOperationsRequest & WithNextToken(const Aws::String &value)
Definition: ListOperationsRequest.h:115
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::ListOperationsRequest::ListOperationsRequest
ListOperationsRequest()
Aws::ServiceDiscovery::Model::ListOperationsRequest::WithMaxResults
ListOperationsRequest & WithMaxResults(int value)
Definition: ListOperationsRequest.h:170
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetFilters
void SetFilters(Aws::Vector< OperationFilter > &&value)
Definition: ListOperationsRequest.h:203
Aws::ServiceDiscovery::Model::ListOperationsRequest::GetFilters
const Aws::Vector< OperationFilter > & GetFilters() const
Definition: ListOperationsRequest.h:179
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListOperationsRequest.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListOperationsRequest::AddFilters
ListOperationsRequest & AddFilters(const OperationFilter &value)
Definition: ListOperationsRequest.h:227
Aws::ServiceDiscovery::Model::ListOperationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListOperationsRequest.h:76
Aws::ServiceDiscovery::Model::ListOperationsRequest::SerializePayload
Aws::String SerializePayload() const override