AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
DescribeSnapshotsRequest.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 DescribeSnapshotsRequest() = 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 "DescribeSnapshots"; }
28
29 AWS_MEMORYDB_API Aws::String SerializePayload() const override;
30
32
34
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetSnapshotName() const { return m_snapshotName; }
58 inline bool SnapshotNameHasBeenSet() const { return m_snapshotNameHasBeenSet; }
59 template <typename SnapshotNameT = Aws::String>
60 void SetSnapshotName(SnapshotNameT&& value) {
61 m_snapshotNameHasBeenSet = true;
62 m_snapshotName = std::forward<SnapshotNameT>(value);
63 }
64 template <typename SnapshotNameT = Aws::String>
66 SetSnapshotName(std::forward<SnapshotNameT>(value));
67 return *this;
68 }
70
72
78 inline const Aws::String& GetSource() const { return m_source; }
79 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
80 template <typename SourceT = Aws::String>
81 void SetSource(SourceT&& value) {
82 m_sourceHasBeenSet = true;
83 m_source = std::forward<SourceT>(value);
84 }
85 template <typename SourceT = Aws::String>
87 SetSource(std::forward<SourceT>(value));
88 return *this;
89 }
91
93
100 inline const Aws::String& GetNextToken() const { return m_nextToken; }
101 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
102 template <typename NextTokenT = Aws::String>
103 void SetNextToken(NextTokenT&& value) {
104 m_nextTokenHasBeenSet = true;
105 m_nextToken = std::forward<NextTokenT>(value);
106 }
107 template <typename NextTokenT = Aws::String>
109 SetNextToken(std::forward<NextTokenT>(value));
110 return *this;
111 }
113
115
120 inline int GetMaxResults() const { return m_maxResults; }
121 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
122 inline void SetMaxResults(int value) {
123 m_maxResultsHasBeenSet = true;
124 m_maxResults = value;
125 }
127 SetMaxResults(value);
128 return *this;
129 }
131
133
137 inline bool GetShowDetail() const { return m_showDetail; }
138 inline bool ShowDetailHasBeenSet() const { return m_showDetailHasBeenSet; }
139 inline void SetShowDetail(bool value) {
140 m_showDetailHasBeenSet = true;
141 m_showDetail = value;
142 }
144 SetShowDetail(value);
145 return *this;
146 }
148 private:
149 Aws::String m_clusterName;
150
151 Aws::String m_snapshotName;
152
153 Aws::String m_source;
154
155 Aws::String m_nextToken;
156
157 int m_maxResults{0};
158
159 bool m_showDetail{false};
160 bool m_clusterNameHasBeenSet = false;
161 bool m_snapshotNameHasBeenSet = false;
162 bool m_sourceHasBeenSet = false;
163 bool m_nextTokenHasBeenSet = false;
164 bool m_maxResultsHasBeenSet = false;
165 bool m_showDetailHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace MemoryDB
170} // namespace Aws
DescribeSnapshotsRequest & WithClusterName(ClusterNameT &&value)
DescribeSnapshotsRequest & WithSource(SourceT &&value)
DescribeSnapshotsRequest & WithSnapshotName(SnapshotNameT &&value)
AWS_MEMORYDB_API Aws::String SerializePayload() const override
DescribeSnapshotsRequest & WithMaxResults(int value)
DescribeSnapshotsRequest & WithNextToken(NextTokenT &&value)
AWS_MEMORYDB_API DescribeSnapshotsRequest()=default
DescribeSnapshotsRequest & WithShowDetail(bool value)
virtual const char * GetServiceRequestName() const override
AWS_MEMORYDB_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String