AWS SDK for C++  1.9.40
AWS SDK for C++
ListClustersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace Kafka
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "ListClusters"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
48  inline const Aws::String& GetClusterNameFilter() const{ return m_clusterNameFilter; }
49 
57  inline bool ClusterNameFilterHasBeenSet() const { return m_clusterNameFilterHasBeenSet; }
58 
66  inline void SetClusterNameFilter(const Aws::String& value) { m_clusterNameFilterHasBeenSet = true; m_clusterNameFilter = value; }
67 
75  inline void SetClusterNameFilter(Aws::String&& value) { m_clusterNameFilterHasBeenSet = true; m_clusterNameFilter = std::move(value); }
76 
84  inline void SetClusterNameFilter(const char* value) { m_clusterNameFilterHasBeenSet = true; m_clusterNameFilter.assign(value); }
85 
93  inline ListClustersRequest& WithClusterNameFilter(const Aws::String& value) { SetClusterNameFilter(value); return *this;}
94 
102  inline ListClustersRequest& WithClusterNameFilter(Aws::String&& value) { SetClusterNameFilter(std::move(value)); return *this;}
103 
111  inline ListClustersRequest& WithClusterNameFilter(const char* value) { SetClusterNameFilter(value); return *this;}
112 
113 
121  inline int GetMaxResults() const{ return m_maxResults; }
122 
130  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
131 
139  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
140 
148  inline ListClustersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
149 
150 
159  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
160 
169  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
170 
179  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
180 
189  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
190 
199  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
200 
209  inline ListClustersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
210 
219  inline ListClustersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
220 
229  inline ListClustersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
230 
231  private:
232 
233  Aws::String m_clusterNameFilter;
234  bool m_clusterNameFilterHasBeenSet;
235 
236  int m_maxResults;
237  bool m_maxResultsHasBeenSet;
238 
239  Aws::String m_nextToken;
240  bool m_nextTokenHasBeenSet;
241  };
242 
243 } // namespace Model
244 } // namespace Kafka
245 } // namespace Aws
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::Kafka::Model::ListClustersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListClustersRequest.h:169
Aws::Kafka::Model::ListClustersRequest::SetClusterNameFilter
void SetClusterNameFilter(Aws::String &&value)
Definition: ListClustersRequest.h:75
Aws::Kafka::Model::ListClustersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:189
Aws::Kafka::Model::ListClustersRequest::ClusterNameFilterHasBeenSet
bool ClusterNameFilterHasBeenSet() const
Definition: ListClustersRequest.h:57
Aws::Kafka::Model::ListClustersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListClustersRequest.h:159
Aws::Kafka::Model::ListClustersRequest::ListClustersRequest
ListClustersRequest()
Aws::Kafka::Model::ListClustersRequest::GetClusterNameFilter
const Aws::String & GetClusterNameFilter() const
Definition: ListClustersRequest.h:48
Aws::Kafka::Model::ListClustersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:179
Aws::Kafka::Model::ListClustersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListClustersRequest.h:139
Aws::Kafka::Model::ListClustersRequest::SetClusterNameFilter
void SetClusterNameFilter(const char *value)
Definition: ListClustersRequest.h:84
Aws::Kafka::Model::ListClustersRequest::SetClusterNameFilter
void SetClusterNameFilter(const Aws::String &value)
Definition: ListClustersRequest.h:66
Aws::Kafka::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const char *value)
Definition: ListClustersRequest.h:229
Aws::Kafka::Model::ListClustersRequest::GetMaxResults
int GetMaxResults() const
Definition: ListClustersRequest.h:121
Aws::Kafka::Model::ListClustersRequest::WithClusterNameFilter
ListClustersRequest & WithClusterNameFilter(const Aws::String &value)
Definition: ListClustersRequest.h:93
Aws::Kafka::Model::ListClustersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListClustersRequest.h:34
Aws::Kafka::Model::ListClustersRequest::WithClusterNameFilter
ListClustersRequest & WithClusterNameFilter(Aws::String &&value)
Definition: ListClustersRequest.h:102
Aws::Kafka::Model::ListClustersRequest::WithClusterNameFilter
ListClustersRequest & WithClusterNameFilter(const char *value)
Definition: ListClustersRequest.h:111
AWSString.h
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::ListClustersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListClustersRequest.h:130
Aws::Kafka::Model::ListClustersRequest::WithMaxResults
ListClustersRequest & WithMaxResults(int value)
Definition: ListClustersRequest.h:148
Aws::Kafka::Model::ListClustersRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Kafka::Model::ListClustersRequest
Definition: ListClustersRequest.h:26
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(const Aws::String &value)
Definition: ListClustersRequest.h:209
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::ListClustersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListClustersRequest.h:199
Aws::Kafka::Model::ListClustersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kafka::Model::ListClustersRequest::WithNextToken
ListClustersRequest & WithNextToken(Aws::String &&value)
Definition: ListClustersRequest.h:219