AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ServerlessCacheSnapshot.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/elasticache/ElastiCache_EXPORTS.h>
11#include <aws/elasticache/model/ServerlessCacheConfiguration.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Xml {
18class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElastiCache {
22namespace Model {
23
31 public:
32 AWS_ELASTICACHE_API ServerlessCacheSnapshot() = default;
33 AWS_ELASTICACHE_API ServerlessCacheSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_ELASTICACHE_API ServerlessCacheSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetServerlessCacheSnapshotName() const { return m_serverlessCacheSnapshotName; }
45 inline bool ServerlessCacheSnapshotNameHasBeenSet() const { return m_serverlessCacheSnapshotNameHasBeenSet; }
46 template <typename ServerlessCacheSnapshotNameT = Aws::String>
47 void SetServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) {
48 m_serverlessCacheSnapshotNameHasBeenSet = true;
49 m_serverlessCacheSnapshotName = std::forward<ServerlessCacheSnapshotNameT>(value);
50 }
51 template <typename ServerlessCacheSnapshotNameT = Aws::String>
52 ServerlessCacheSnapshot& WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) {
53 SetServerlessCacheSnapshotName(std::forward<ServerlessCacheSnapshotNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetARN() const { return m_aRN; }
64 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
65 template <typename ARNT = Aws::String>
66 void SetARN(ARNT&& value) {
67 m_aRNHasBeenSet = true;
68 m_aRN = std::forward<ARNT>(value);
69 }
70 template <typename ARNT = Aws::String>
72 SetARN(std::forward<ARNT>(value));
73 return *this;
74 }
76
78
83 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
84 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
85 template <typename KmsKeyIdT = Aws::String>
86 void SetKmsKeyId(KmsKeyIdT&& value) {
87 m_kmsKeyIdHasBeenSet = true;
88 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
89 }
90 template <typename KmsKeyIdT = Aws::String>
92 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
93 return *this;
94 }
96
98
102 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
103 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
104 template <typename SnapshotTypeT = Aws::String>
105 void SetSnapshotType(SnapshotTypeT&& value) {
106 m_snapshotTypeHasBeenSet = true;
107 m_snapshotType = std::forward<SnapshotTypeT>(value);
108 }
109 template <typename SnapshotTypeT = Aws::String>
111 SetSnapshotType(std::forward<SnapshotTypeT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetStatus() const { return m_status; }
122 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
123 template <typename StatusT = Aws::String>
124 void SetStatus(StatusT&& value) {
125 m_statusHasBeenSet = true;
126 m_status = std::forward<StatusT>(value);
127 }
128 template <typename StatusT = Aws::String>
130 SetStatus(std::forward<StatusT>(value));
131 return *this;
132 }
134
136
141 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
142 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
143 template <typename CreateTimeT = Aws::Utils::DateTime>
144 void SetCreateTime(CreateTimeT&& value) {
145 m_createTimeHasBeenSet = true;
146 m_createTime = std::forward<CreateTimeT>(value);
147 }
148 template <typename CreateTimeT = Aws::Utils::DateTime>
150 SetCreateTime(std::forward<CreateTimeT>(value));
151 return *this;
152 }
154
156
160 inline const Aws::Utils::DateTime& GetExpiryTime() const { return m_expiryTime; }
161 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
162 template <typename ExpiryTimeT = Aws::Utils::DateTime>
163 void SetExpiryTime(ExpiryTimeT&& value) {
164 m_expiryTimeHasBeenSet = true;
165 m_expiryTime = std::forward<ExpiryTimeT>(value);
166 }
167 template <typename ExpiryTimeT = Aws::Utils::DateTime>
169 SetExpiryTime(std::forward<ExpiryTimeT>(value));
170 return *this;
171 }
173
175
179 inline const Aws::String& GetBytesUsedForCache() const { return m_bytesUsedForCache; }
180 inline bool BytesUsedForCacheHasBeenSet() const { return m_bytesUsedForCacheHasBeenSet; }
181 template <typename BytesUsedForCacheT = Aws::String>
182 void SetBytesUsedForCache(BytesUsedForCacheT&& value) {
183 m_bytesUsedForCacheHasBeenSet = true;
184 m_bytesUsedForCache = std::forward<BytesUsedForCacheT>(value);
185 }
186 template <typename BytesUsedForCacheT = Aws::String>
187 ServerlessCacheSnapshot& WithBytesUsedForCache(BytesUsedForCacheT&& value) {
188 SetBytesUsedForCache(std::forward<BytesUsedForCacheT>(value));
189 return *this;
190 }
192
194
198 inline const ServerlessCacheConfiguration& GetServerlessCacheConfiguration() const { return m_serverlessCacheConfiguration; }
199 inline bool ServerlessCacheConfigurationHasBeenSet() const { return m_serverlessCacheConfigurationHasBeenSet; }
200 template <typename ServerlessCacheConfigurationT = ServerlessCacheConfiguration>
201 void SetServerlessCacheConfiguration(ServerlessCacheConfigurationT&& value) {
202 m_serverlessCacheConfigurationHasBeenSet = true;
203 m_serverlessCacheConfiguration = std::forward<ServerlessCacheConfigurationT>(value);
204 }
205 template <typename ServerlessCacheConfigurationT = ServerlessCacheConfiguration>
206 ServerlessCacheSnapshot& WithServerlessCacheConfiguration(ServerlessCacheConfigurationT&& value) {
207 SetServerlessCacheConfiguration(std::forward<ServerlessCacheConfigurationT>(value));
208 return *this;
209 }
211 private:
212 Aws::String m_serverlessCacheSnapshotName;
213
214 Aws::String m_aRN;
215
216 Aws::String m_kmsKeyId;
217
218 Aws::String m_snapshotType;
219
220 Aws::String m_status;
221
222 Aws::Utils::DateTime m_createTime{};
223
224 Aws::Utils::DateTime m_expiryTime{};
225
226 Aws::String m_bytesUsedForCache;
227
228 ServerlessCacheConfiguration m_serverlessCacheConfiguration;
229 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
230 bool m_aRNHasBeenSet = false;
231 bool m_kmsKeyIdHasBeenSet = false;
232 bool m_snapshotTypeHasBeenSet = false;
233 bool m_statusHasBeenSet = false;
234 bool m_createTimeHasBeenSet = false;
235 bool m_expiryTimeHasBeenSet = false;
236 bool m_bytesUsedForCacheHasBeenSet = false;
237 bool m_serverlessCacheConfigurationHasBeenSet = false;
238};
239
240} // namespace Model
241} // namespace ElastiCache
242} // namespace Aws
AWS_ELASTICACHE_API ServerlessCacheSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheSnapshot & WithARN(ARNT &&value)
ServerlessCacheSnapshot & WithSnapshotType(SnapshotTypeT &&value)
void SetServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT &&value)
AWS_ELASTICACHE_API ServerlessCacheSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheSnapshot & WithServerlessCacheConfiguration(ServerlessCacheConfigurationT &&value)
const ServerlessCacheConfiguration & GetServerlessCacheConfiguration() const
ServerlessCacheSnapshot & WithStatus(StatusT &&value)
ServerlessCacheSnapshot & WithKmsKeyId(KmsKeyIdT &&value)
ServerlessCacheSnapshot & WithCreateTime(CreateTimeT &&value)
ServerlessCacheSnapshot & WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT &&value)
ServerlessCacheSnapshot & WithBytesUsedForCache(BytesUsedForCacheT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICACHE_API ServerlessCacheSnapshot()=default
ServerlessCacheSnapshot & WithExpiryTime(ExpiryTimeT &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetServerlessCacheConfiguration(ServerlessCacheConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream