AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
DescribeServerlessCachesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/elasticache/ElastiCacheRequest.h>
9#include <aws/elasticache/ElastiCache_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace ElastiCache {
15namespace Model {
16
20 public:
21 AWS_ELASTICACHE_API DescribeServerlessCachesRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "DescribeServerlessCaches"; }
28
29 AWS_ELASTICACHE_API Aws::String SerializePayload() const override;
30
31 protected:
32 AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
33
34 public:
36
40 inline const Aws::String& GetServerlessCacheName() const { return m_serverlessCacheName; }
41 inline bool ServerlessCacheNameHasBeenSet() const { return m_serverlessCacheNameHasBeenSet; }
42 template <typename ServerlessCacheNameT = Aws::String>
43 void SetServerlessCacheName(ServerlessCacheNameT&& value) {
44 m_serverlessCacheNameHasBeenSet = true;
45 m_serverlessCacheName = std::forward<ServerlessCacheNameT>(value);
46 }
47 template <typename ServerlessCacheNameT = Aws::String>
49 SetServerlessCacheName(std::forward<ServerlessCacheNameT>(value));
50 return *this;
51 }
53
55
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
79 inline const Aws::String& GetNextToken() const { return m_nextToken; }
80 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
81 template <typename NextTokenT = Aws::String>
82 void SetNextToken(NextTokenT&& value) {
83 m_nextTokenHasBeenSet = true;
84 m_nextToken = std::forward<NextTokenT>(value);
85 }
86 template <typename NextTokenT = Aws::String>
88 SetNextToken(std::forward<NextTokenT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_serverlessCacheName;
94
95 int m_maxResults{0};
96
97 Aws::String m_nextToken;
98 bool m_serverlessCacheNameHasBeenSet = false;
99 bool m_maxResultsHasBeenSet = false;
100 bool m_nextTokenHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElastiCache
105} // namespace Aws
DescribeServerlessCachesRequest & WithServerlessCacheName(ServerlessCacheNameT &&value)
AWS_ELASTICACHE_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
DescribeServerlessCachesRequest & WithNextToken(NextTokenT &&value)
AWS_ELASTICACHE_API DescribeServerlessCachesRequest()=default
AWS_ELASTICACHE_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String