AWS SDK for C++  1.9.109
AWS SDK for C++
ListElasticsearchVersionsRequest.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 ElasticsearchService
19 {
20 namespace Model
21 {
22 
34  {
35  public:
37 
38  // Service request name is the Operation name which will send this request out,
39  // each operation should has unique request name, so that we can get operation's name from this request.
40  // Note: this is not true for response, multiple operations may have the same response name,
41  // so we can not get operation's name from response.
42  inline virtual const char* GetServiceRequestName() const override { return "ListElasticsearchVersions"; }
43 
44  Aws::String SerializePayload() const override;
45 
46  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
47 
48 
53  inline int GetMaxResults() const{ return m_maxResults; }
54 
59  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 
65  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
66 
71  inline ListElasticsearchVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
72 
73 
74 
75  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
76 
77 
78  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 
80 
81  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
82 
83 
84  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
85 
86 
87  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
88 
89 
90  inline ListElasticsearchVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
91 
92 
93  inline ListElasticsearchVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
94 
95 
96  inline ListElasticsearchVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
97 
98  private:
99 
100  int m_maxResults;
101  bool m_maxResultsHasBeenSet;
102 
103  Aws::String m_nextToken;
104  bool m_nextTokenHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace ElasticsearchService
109 } // namespace Aws
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListElasticsearchVersionsRequest.h:65
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListElasticsearchVersionsRequest.h:84
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListElasticsearchVersionsRequest.h:42
Aws::Http::URI
Definition: URI.h:32
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticsearchService::ElasticsearchServiceRequest
Definition: ElasticsearchServiceRequest.h:17
ElasticsearchServiceRequest.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListElasticsearchVersionsRequest.h:53
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListElasticsearchVersionsRequest.h:87
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListElasticsearchVersionsRequest.h:75
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListElasticsearchVersionsRequest.h:78
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::ListElasticsearchVersionsRequest
ListElasticsearchVersionsRequest()
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::WithNextToken
ListElasticsearchVersionsRequest & WithNextToken(const Aws::String &value)
Definition: ListElasticsearchVersionsRequest.h:90
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::WithNextToken
ListElasticsearchVersionsRequest & WithNextToken(Aws::String &&value)
Definition: ListElasticsearchVersionsRequest.h:93
AWSString.h
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::WithNextToken
ListElasticsearchVersionsRequest & WithNextToken(const char *value)
Definition: ListElasticsearchVersionsRequest.h:96
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListElasticsearchVersionsRequest.h:81
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListElasticsearchVersionsRequest.h:59
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest
Definition: ListElasticsearchVersionsRequest.h:34
Aws::ElasticsearchService::Model::ListElasticsearchVersionsRequest::WithMaxResults
ListElasticsearchVersionsRequest & WithMaxResults(int value)
Definition: ListElasticsearchVersionsRequest.h:71