AWS SDK for C++  1.9.105
AWS SDK for C++
ListServicesRequest.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 "ListServices"; }
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 ListServicesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
116 
128  inline ListServicesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
129 
141  inline ListServicesRequest& 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 ListServicesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
171 
172 
178  inline const Aws::Vector<ServiceFilter>& GetFilters() const{ return m_filters; }
179 
185  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
186 
192  inline void SetFilters(const Aws::Vector<ServiceFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
193 
199  inline void SetFilters(Aws::Vector<ServiceFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
200 
206  inline ListServicesRequest& WithFilters(const Aws::Vector<ServiceFilter>& value) { SetFilters(value); return *this;}
207 
213  inline ListServicesRequest& WithFilters(Aws::Vector<ServiceFilter>&& value) { SetFilters(std::move(value)); return *this;}
214 
220  inline ListServicesRequest& AddFilters(const ServiceFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
221 
227  inline ListServicesRequest& AddFilters(ServiceFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
228 
229  private:
230 
231  Aws::String m_nextToken;
232  bool m_nextTokenHasBeenSet;
233 
234  int m_maxResults;
235  bool m_maxResultsHasBeenSet;
236 
237  Aws::Vector<ServiceFilter> m_filters;
238  bool m_filtersHasBeenSet;
239  };
240 
241 } // namespace Model
242 } // namespace ServiceDiscovery
243 } // namespace Aws
ServiceDiscoveryRequest.h
Aws::ServiceDiscovery::Model::ListServicesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:76
Aws::ServiceDiscovery::Model::ListServicesRequest::GetMaxResults
int GetMaxResults() const
Definition: ListServicesRequest.h:149
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ServiceDiscovery::Model::ListServicesRequest::ListServicesRequest
ListServicesRequest()
Aws::ServiceDiscovery::Model::ListServicesRequest::AddFilters
ListServicesRequest & AddFilters(ServiceFilter &&value)
Definition: ListServicesRequest.h:227
Aws::ServiceDiscovery::Model::ListServicesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::ListServicesRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListServicesRequest.h:156
Aws::ServiceDiscovery::Model::ListServicesRequest::WithFilters
ListServicesRequest & WithFilters(const Aws::Vector< ServiceFilter > &value)
Definition: ListServicesRequest.h:206
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ServiceDiscovery::Model::ListServicesRequest
Definition: ListServicesRequest.h:24
Aws::ServiceDiscovery::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:128
Aws::ServiceDiscovery::Model::ListServicesRequest::SetFilters
void SetFilters(Aws::Vector< ServiceFilter > &&value)
Definition: ListServicesRequest.h:199
Aws::ServiceDiscovery::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const Aws::String &value)
Definition: ListServicesRequest.h:115
Aws::ServiceDiscovery::Model::ListServicesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListServicesRequest.h:32
Aws::ServiceDiscovery::Model::ListServicesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListServicesRequest.h:102
Aws::ServiceDiscovery::Model::ListServicesRequest::GetFilters
const Aws::Vector< ServiceFilter > & GetFilters() const
Definition: ListServicesRequest.h:178
Aws::ServiceDiscovery::Model::ListServicesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListServicesRequest.h:50
Aws::ServiceDiscovery::Model::ListServicesRequest::WithNextToken
ListServicesRequest & WithNextToken(const char *value)
Definition: ListServicesRequest.h:141
Aws::ServiceDiscovery::Model::ListServicesRequest::WithMaxResults
ListServicesRequest & WithMaxResults(int value)
Definition: ListServicesRequest.h:170
Aws::ServiceDiscovery::Model::ListServicesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListServicesRequest.h:89
Aws::ServiceDiscovery::ServiceDiscoveryRequest
Definition: ServiceDiscoveryRequest.h:17
Aws::ServiceDiscovery::Model::ListServicesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListServicesRequest.h:63
AWSString.h
Aws::ServiceDiscovery::Model::ListServicesRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: ListServicesRequest.h:185
Aws::ServiceDiscovery::Model::ListServicesRequest::AddFilters
ListServicesRequest & AddFilters(const ServiceFilter &value)
Definition: ListServicesRequest.h:220
Aws
Definition: AccessManagementClient.h:15
Aws::ServiceDiscovery::Model::ListServicesRequest::SetFilters
void SetFilters(const Aws::Vector< ServiceFilter > &value)
Definition: ListServicesRequest.h:192
Aws::ServiceDiscovery::Model::ListServicesRequest::WithFilters
ListServicesRequest & WithFilters(Aws::Vector< ServiceFilter > &&value)
Definition: ListServicesRequest.h:213
Aws::ServiceDiscovery::Model::ListServicesRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListServicesRequest.h:163
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ServiceDiscovery::Model::ListServicesRequest::SerializePayload
Aws::String SerializePayload() const override
ServiceFilter.h
Aws::ServiceDiscovery::Model::ServiceFilter
Definition: ServiceFilter.h:36