AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServerlessCacheSnapshot.h
1
6#pragma once
7#include <aws/elasticache/ElastiCache_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/elasticache/model/ServerlessCacheConfiguration.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Xml
19{
20 class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace ElastiCache
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ELASTICACHE_API ServerlessCacheSnapshot() = default;
38 AWS_ELASTICACHE_API ServerlessCacheSnapshot(const Aws::Utils::Xml::XmlNode& xmlNode);
39 AWS_ELASTICACHE_API ServerlessCacheSnapshot& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
42 AWS_ELASTICACHE_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
43
44
46
50 inline const Aws::String& GetServerlessCacheSnapshotName() const { return m_serverlessCacheSnapshotName; }
51 inline bool ServerlessCacheSnapshotNameHasBeenSet() const { return m_serverlessCacheSnapshotNameHasBeenSet; }
52 template<typename ServerlessCacheSnapshotNameT = Aws::String>
53 void SetServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = std::forward<ServerlessCacheSnapshotNameT>(value); }
54 template<typename ServerlessCacheSnapshotNameT = Aws::String>
55 ServerlessCacheSnapshot& WithServerlessCacheSnapshotName(ServerlessCacheSnapshotNameT&& value) { SetServerlessCacheSnapshotName(std::forward<ServerlessCacheSnapshotNameT>(value)); return *this;}
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) { m_aRNHasBeenSet = true; m_aRN = std::forward<ARNT>(value); }
67 template<typename ARNT = Aws::String>
68 ServerlessCacheSnapshot& WithARN(ARNT&& value) { SetARN(std::forward<ARNT>(value)); return *this;}
70
72
77 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
78 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
79 template<typename KmsKeyIdT = Aws::String>
80 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
81 template<typename KmsKeyIdT = Aws::String>
82 ServerlessCacheSnapshot& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
84
86
90 inline const Aws::String& GetSnapshotType() const { return m_snapshotType; }
91 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
92 template<typename SnapshotTypeT = Aws::String>
93 void SetSnapshotType(SnapshotTypeT&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::forward<SnapshotTypeT>(value); }
94 template<typename SnapshotTypeT = Aws::String>
95 ServerlessCacheSnapshot& WithSnapshotType(SnapshotTypeT&& value) { SetSnapshotType(std::forward<SnapshotTypeT>(value)); return *this;}
97
99
103 inline const Aws::String& GetStatus() const { return m_status; }
104 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
105 template<typename StatusT = Aws::String>
106 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
107 template<typename StatusT = Aws::String>
108 ServerlessCacheSnapshot& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
110
112
117 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
118 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
119 template<typename CreateTimeT = Aws::Utils::DateTime>
120 void SetCreateTime(CreateTimeT&& value) { m_createTimeHasBeenSet = true; m_createTime = std::forward<CreateTimeT>(value); }
121 template<typename CreateTimeT = Aws::Utils::DateTime>
122 ServerlessCacheSnapshot& WithCreateTime(CreateTimeT&& value) { SetCreateTime(std::forward<CreateTimeT>(value)); return *this;}
124
126
130 inline const Aws::Utils::DateTime& GetExpiryTime() const { return m_expiryTime; }
131 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
132 template<typename ExpiryTimeT = Aws::Utils::DateTime>
133 void SetExpiryTime(ExpiryTimeT&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::forward<ExpiryTimeT>(value); }
134 template<typename ExpiryTimeT = Aws::Utils::DateTime>
135 ServerlessCacheSnapshot& WithExpiryTime(ExpiryTimeT&& value) { SetExpiryTime(std::forward<ExpiryTimeT>(value)); return *this;}
137
139
143 inline const Aws::String& GetBytesUsedForCache() const { return m_bytesUsedForCache; }
144 inline bool BytesUsedForCacheHasBeenSet() const { return m_bytesUsedForCacheHasBeenSet; }
145 template<typename BytesUsedForCacheT = Aws::String>
146 void SetBytesUsedForCache(BytesUsedForCacheT&& value) { m_bytesUsedForCacheHasBeenSet = true; m_bytesUsedForCache = std::forward<BytesUsedForCacheT>(value); }
147 template<typename BytesUsedForCacheT = Aws::String>
148 ServerlessCacheSnapshot& WithBytesUsedForCache(BytesUsedForCacheT&& value) { SetBytesUsedForCache(std::forward<BytesUsedForCacheT>(value)); return *this;}
150
152
156 inline const ServerlessCacheConfiguration& GetServerlessCacheConfiguration() const { return m_serverlessCacheConfiguration; }
157 inline bool ServerlessCacheConfigurationHasBeenSet() const { return m_serverlessCacheConfigurationHasBeenSet; }
158 template<typename ServerlessCacheConfigurationT = ServerlessCacheConfiguration>
159 void SetServerlessCacheConfiguration(ServerlessCacheConfigurationT&& value) { m_serverlessCacheConfigurationHasBeenSet = true; m_serverlessCacheConfiguration = std::forward<ServerlessCacheConfigurationT>(value); }
160 template<typename ServerlessCacheConfigurationT = ServerlessCacheConfiguration>
161 ServerlessCacheSnapshot& WithServerlessCacheConfiguration(ServerlessCacheConfigurationT&& value) { SetServerlessCacheConfiguration(std::forward<ServerlessCacheConfigurationT>(value)); return *this;}
163 private:
164
165 Aws::String m_serverlessCacheSnapshotName;
166 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
167
168 Aws::String m_aRN;
169 bool m_aRNHasBeenSet = false;
170
171 Aws::String m_kmsKeyId;
172 bool m_kmsKeyIdHasBeenSet = false;
173
174 Aws::String m_snapshotType;
175 bool m_snapshotTypeHasBeenSet = false;
176
177 Aws::String m_status;
178 bool m_statusHasBeenSet = false;
179
180 Aws::Utils::DateTime m_createTime{};
181 bool m_createTimeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_expiryTime{};
184 bool m_expiryTimeHasBeenSet = false;
185
186 Aws::String m_bytesUsedForCache;
187 bool m_bytesUsedForCacheHasBeenSet = false;
188
189 ServerlessCacheConfiguration m_serverlessCacheConfiguration;
190 bool m_serverlessCacheConfigurationHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace ElastiCache
195} // 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