AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ListVersionsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearch/OpenSearchServiceRequest.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace OpenSearchService {
18namespace Model {
19
27 public:
28 AWS_OPENSEARCHSERVICE_API ListVersionsRequest() = default;
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 "ListVersions"; }
35
36 AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override;
37
38 AWS_OPENSEARCHSERVICE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
45 inline int GetMaxResults() const { return m_maxResults; }
46 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
47 inline void SetMaxResults(int value) {
48 m_maxResultsHasBeenSet = true;
49 m_maxResults = value;
50 }
52 SetMaxResults(value);
53 return *this;
54 }
56
58
64 inline const Aws::String& GetNextToken() const { return m_nextToken; }
65 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
66 template <typename NextTokenT = Aws::String>
67 void SetNextToken(NextTokenT&& value) {
68 m_nextTokenHasBeenSet = true;
69 m_nextToken = std::forward<NextTokenT>(value);
70 }
71 template <typename NextTokenT = Aws::String>
72 ListVersionsRequest& WithNextToken(NextTokenT&& value) {
73 SetNextToken(std::forward<NextTokenT>(value));
74 return *this;
75 }
77 private:
78 int m_maxResults{0};
79
80 Aws::String m_nextToken;
81 bool m_maxResultsHasBeenSet = false;
82 bool m_nextTokenHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace OpenSearchService
87} // namespace Aws
AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override
ListVersionsRequest & WithNextToken(NextTokenT &&value)
AWS_OPENSEARCHSERVICE_API ListVersionsRequest()=default
AWS_OPENSEARCHSERVICE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String