AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeClustersRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/memorydb/MemoryDBRequest.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace MemoryDB {
15namespace Model {
16
20 public:
21 AWS_MEMORYDB_API DescribeClustersRequest() = 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 "DescribeClusters"; }
28
29 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
30
32
34
37 inline const Aws::String& GetClusterName() const { return m_clusterName; }
38 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
39 template <typename ClusterNameT = Aws::String>
40 void SetClusterName(ClusterNameT&& value) {
41 m_clusterNameHasBeenSet = true;
42 m_clusterName = std::forward<ClusterNameT>(value);
43 }
44 template <typename ClusterNameT = Aws::String>
46 SetClusterName(std::forward<ClusterNameT>(value));
47 return *this;
48 }
50
52
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) {
60 m_maxResultsHasBeenSet = true;
61 m_maxResults = value;
62 }
64 SetMaxResults(value);
65 return *this;
66 }
68
70
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template <typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) {
81 m_nextTokenHasBeenSet = true;
82 m_nextToken = std::forward<NextTokenT>(value);
83 }
84 template <typename NextTokenT = Aws::String>
86 SetNextToken(std::forward<NextTokenT>(value));
87 return *this;
88 }
90
92
96 inline bool GetShowShardDetails() const { return m_showShardDetails; }
97 inline bool ShowShardDetailsHasBeenSet() const { return m_showShardDetailsHasBeenSet; }
98 inline void SetShowShardDetails(bool value) {
99 m_showShardDetailsHasBeenSet = true;
100 m_showShardDetails = value;
101 }
103 SetShowShardDetails(value);
104 return *this;
105 }
107 private:
108 Aws::String m_clusterName;
109
110 int m_maxResults{0};
111
112 Aws::String m_nextToken;
113
114 bool m_showShardDetails{false};
115 bool m_clusterNameHasBeenSet = false;
116 bool m_maxResultsHasBeenSet = false;
117 bool m_nextTokenHasBeenSet = false;
118 bool m_showShardDetailsHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace MemoryDB
123} // namespace Aws
AWS_MEMORYDB_API DescribeClustersRequest()=default
DescribeClustersRequest & WithClusterName(ClusterNameT &&value)
DescribeClustersRequest & WithShowShardDetails(bool value)
DescribeClustersRequest & WithNextToken(NextTokenT &&value)
DescribeClustersRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MEMORYDB_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String