AWS SDK for C++  1.9.105
AWS SDK for C++
ListKafkaVersionsRequest.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 "ListKafkaVersions"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
46  inline int GetMaxResults() const{ return m_maxResults; }
47 
53  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
54 
60  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
61 
67  inline ListKafkaVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
68 
69 
76  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
77 
84  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
85 
92  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
93 
100  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
101 
108  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
109 
116  inline ListKafkaVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
117 
124  inline ListKafkaVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
125 
132  inline ListKafkaVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
133 
134  private:
135 
136  int m_maxResults;
137  bool m_maxResultsHasBeenSet;
138 
139  Aws::String m_nextToken;
140  bool m_nextTokenHasBeenSet;
141  };
142 
143 } // namespace Model
144 } // namespace Kafka
145 } // namespace Aws
KafkaRequest.h
Aws::Kafka::KafkaRequest
Definition: KafkaRequest.h:17
Aws::Http::URI
Definition: URI.h:32
Aws::Kafka::Model::ListKafkaVersionsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::Kafka::Model::ListKafkaVersionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListKafkaVersionsRequest.h:108
Aws::Kafka::Model::ListKafkaVersionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListKafkaVersionsRequest.h:100
Aws::Kafka::Model::ListKafkaVersionsRequest::WithNextToken
ListKafkaVersionsRequest & WithNextToken(const Aws::String &value)
Definition: ListKafkaVersionsRequest.h:116
Aws::Kafka::Model::ListKafkaVersionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListKafkaVersionsRequest.h:46
Aws::Kafka::Model::ListKafkaVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Kafka::Model::ListKafkaVersionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListKafkaVersionsRequest.h:84
Aws::Kafka::Model::ListKafkaVersionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListKafkaVersionsRequest.h:53
AWSString.h
Aws::Kafka::Model::ListKafkaVersionsRequest
Definition: ListKafkaVersionsRequest.h:26
AWS_KAFKA_API
#define AWS_KAFKA_API
Definition: Kafka_EXPORTS.h:28
Aws::Kafka::Model::ListKafkaVersionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListKafkaVersionsRequest.h:92
Aws::Kafka::Model::ListKafkaVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListKafkaVersionsRequest.h:34
Aws::Kafka::Model::ListKafkaVersionsRequest::ListKafkaVersionsRequest
ListKafkaVersionsRequest()
Aws::Kafka::Model::ListKafkaVersionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListKafkaVersionsRequest.h:60
Aws
Definition: AccessManagementClient.h:15
Aws::Kafka::Model::ListKafkaVersionsRequest::WithMaxResults
ListKafkaVersionsRequest & WithMaxResults(int value)
Definition: ListKafkaVersionsRequest.h:67
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Kafka_EXPORTS.h
Aws::Kafka::Model::ListKafkaVersionsRequest::WithNextToken
ListKafkaVersionsRequest & WithNextToken(const char *value)
Definition: ListKafkaVersionsRequest.h:132
Aws::Kafka::Model::ListKafkaVersionsRequest::WithNextToken
ListKafkaVersionsRequest & WithNextToken(Aws::String &&value)
Definition: ListKafkaVersionsRequest.h:124
Aws::Kafka::Model::ListKafkaVersionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListKafkaVersionsRequest.h:76