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