AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetServerlessCacheSnapshotName(const Aws::String& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = value; }
53 inline void SetServerlessCacheSnapshotName(Aws::String&& value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName = std::move(value); }
54 inline void SetServerlessCacheSnapshotName(const char* value) { m_serverlessCacheSnapshotNameHasBeenSet = true; m_serverlessCacheSnapshotName.assign(value); }
59
61
65 inline const Aws::String& GetARN() const{ return m_aRN; }
66 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
67 inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
68 inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
69 inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
70 inline ServerlessCacheSnapshot& WithARN(const Aws::String& value) { SetARN(value); return *this;}
71 inline ServerlessCacheSnapshot& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
72 inline ServerlessCacheSnapshot& WithARN(const char* value) { SetARN(value); return *this;}
74
76
81 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
82 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
83 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
84 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
85 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
86 inline ServerlessCacheSnapshot& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
87 inline ServerlessCacheSnapshot& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
88 inline ServerlessCacheSnapshot& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
90
92
96 inline const Aws::String& GetSnapshotType() const{ return m_snapshotType; }
97 inline bool SnapshotTypeHasBeenSet() const { return m_snapshotTypeHasBeenSet; }
98 inline void SetSnapshotType(const Aws::String& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = value; }
99 inline void SetSnapshotType(Aws::String&& value) { m_snapshotTypeHasBeenSet = true; m_snapshotType = std::move(value); }
100 inline void SetSnapshotType(const char* value) { m_snapshotTypeHasBeenSet = true; m_snapshotType.assign(value); }
101 inline ServerlessCacheSnapshot& WithSnapshotType(const Aws::String& value) { SetSnapshotType(value); return *this;}
102 inline ServerlessCacheSnapshot& WithSnapshotType(Aws::String&& value) { SetSnapshotType(std::move(value)); return *this;}
103 inline ServerlessCacheSnapshot& WithSnapshotType(const char* value) { SetSnapshotType(value); return *this;}
105
107
111 inline const Aws::String& GetStatus() const{ return m_status; }
112 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
113 inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; }
114 inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
115 inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); }
116 inline ServerlessCacheSnapshot& WithStatus(const Aws::String& value) { SetStatus(value); return *this;}
117 inline ServerlessCacheSnapshot& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;}
118 inline ServerlessCacheSnapshot& WithStatus(const char* value) { SetStatus(value); return *this;}
120
122
127 inline const Aws::Utils::DateTime& GetCreateTime() const{ return m_createTime; }
128 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
129 inline void SetCreateTime(const Aws::Utils::DateTime& value) { m_createTimeHasBeenSet = true; m_createTime = value; }
130 inline void SetCreateTime(Aws::Utils::DateTime&& value) { m_createTimeHasBeenSet = true; m_createTime = std::move(value); }
131 inline ServerlessCacheSnapshot& WithCreateTime(const Aws::Utils::DateTime& value) { SetCreateTime(value); return *this;}
132 inline ServerlessCacheSnapshot& WithCreateTime(Aws::Utils::DateTime&& value) { SetCreateTime(std::move(value)); return *this;}
134
136
140 inline const Aws::Utils::DateTime& GetExpiryTime() const{ return m_expiryTime; }
141 inline bool ExpiryTimeHasBeenSet() const { return m_expiryTimeHasBeenSet; }
142 inline void SetExpiryTime(const Aws::Utils::DateTime& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = value; }
143 inline void SetExpiryTime(Aws::Utils::DateTime&& value) { m_expiryTimeHasBeenSet = true; m_expiryTime = std::move(value); }
144 inline ServerlessCacheSnapshot& WithExpiryTime(const Aws::Utils::DateTime& value) { SetExpiryTime(value); return *this;}
145 inline ServerlessCacheSnapshot& WithExpiryTime(Aws::Utils::DateTime&& value) { SetExpiryTime(std::move(value)); return *this;}
147
149
153 inline const Aws::String& GetBytesUsedForCache() const{ return m_bytesUsedForCache; }
154 inline bool BytesUsedForCacheHasBeenSet() const { return m_bytesUsedForCacheHasBeenSet; }
155 inline void SetBytesUsedForCache(const Aws::String& value) { m_bytesUsedForCacheHasBeenSet = true; m_bytesUsedForCache = value; }
156 inline void SetBytesUsedForCache(Aws::String&& value) { m_bytesUsedForCacheHasBeenSet = true; m_bytesUsedForCache = std::move(value); }
157 inline void SetBytesUsedForCache(const char* value) { m_bytesUsedForCacheHasBeenSet = true; m_bytesUsedForCache.assign(value); }
159 inline ServerlessCacheSnapshot& WithBytesUsedForCache(Aws::String&& value) { SetBytesUsedForCache(std::move(value)); return *this;}
160 inline ServerlessCacheSnapshot& WithBytesUsedForCache(const char* value) { SetBytesUsedForCache(value); return *this;}
162
164
168 inline const ServerlessCacheConfiguration& GetServerlessCacheConfiguration() const{ return m_serverlessCacheConfiguration; }
169 inline bool ServerlessCacheConfigurationHasBeenSet() const { return m_serverlessCacheConfigurationHasBeenSet; }
170 inline void SetServerlessCacheConfiguration(const ServerlessCacheConfiguration& value) { m_serverlessCacheConfigurationHasBeenSet = true; m_serverlessCacheConfiguration = value; }
171 inline void SetServerlessCacheConfiguration(ServerlessCacheConfiguration&& value) { m_serverlessCacheConfigurationHasBeenSet = true; m_serverlessCacheConfiguration = std::move(value); }
175 private:
176
177 Aws::String m_serverlessCacheSnapshotName;
178 bool m_serverlessCacheSnapshotNameHasBeenSet = false;
179
180 Aws::String m_aRN;
181 bool m_aRNHasBeenSet = false;
182
183 Aws::String m_kmsKeyId;
184 bool m_kmsKeyIdHasBeenSet = false;
185
186 Aws::String m_snapshotType;
187 bool m_snapshotTypeHasBeenSet = false;
188
189 Aws::String m_status;
190 bool m_statusHasBeenSet = false;
191
192 Aws::Utils::DateTime m_createTime;
193 bool m_createTimeHasBeenSet = false;
194
195 Aws::Utils::DateTime m_expiryTime;
196 bool m_expiryTimeHasBeenSet = false;
197
198 Aws::String m_bytesUsedForCache;
199 bool m_bytesUsedForCacheHasBeenSet = false;
200
201 ServerlessCacheConfiguration m_serverlessCacheConfiguration;
202 bool m_serverlessCacheConfigurationHasBeenSet = false;
203 };
204
205} // namespace Model
206} // namespace ElastiCache
207} // namespace Aws
ServerlessCacheSnapshot & WithExpiryTime(const Aws::Utils::DateTime &value)
AWS_ELASTICACHE_API ServerlessCacheSnapshot & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheSnapshot & WithServerlessCacheSnapshotName(Aws::String &&value)
ServerlessCacheSnapshot & WithKmsKeyId(const char *value)
ServerlessCacheSnapshot & WithKmsKeyId(Aws::String &&value)
void SetExpiryTime(const Aws::Utils::DateTime &value)
void SetCreateTime(const Aws::Utils::DateTime &value)
AWS_ELASTICACHE_API ServerlessCacheSnapshot(const Aws::Utils::Xml::XmlNode &xmlNode)
ServerlessCacheSnapshot & WithServerlessCacheSnapshotName(const Aws::String &value)
ServerlessCacheSnapshot & WithBytesUsedForCache(const Aws::String &value)
ServerlessCacheSnapshot & WithARN(const char *value)
ServerlessCacheSnapshot & WithSnapshotType(const Aws::String &value)
const ServerlessCacheConfiguration & GetServerlessCacheConfiguration() const
void SetServerlessCacheConfiguration(const ServerlessCacheConfiguration &value)
ServerlessCacheSnapshot & WithServerlessCacheConfiguration(ServerlessCacheConfiguration &&value)
ServerlessCacheSnapshot & WithExpiryTime(Aws::Utils::DateTime &&value)
ServerlessCacheSnapshot & WithStatus(Aws::String &&value)
ServerlessCacheSnapshot & WithSnapshotType(const char *value)
ServerlessCacheSnapshot & WithCreateTime(const Aws::Utils::DateTime &value)
ServerlessCacheSnapshot & WithBytesUsedForCache(const char *value)
ServerlessCacheSnapshot & WithARN(Aws::String &&value)
void SetServerlessCacheConfiguration(ServerlessCacheConfiguration &&value)
ServerlessCacheSnapshot & WithBytesUsedForCache(Aws::String &&value)
ServerlessCacheSnapshot & WithSnapshotType(Aws::String &&value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServerlessCacheSnapshot & WithStatus(const char *value)
AWS_ELASTICACHE_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServerlessCacheSnapshot & WithARN(const Aws::String &value)
ServerlessCacheSnapshot & WithStatus(const Aws::String &value)
ServerlessCacheSnapshot & WithServerlessCacheConfiguration(const ServerlessCacheConfiguration &value)
ServerlessCacheSnapshot & WithCreateTime(Aws::Utils::DateTime &&value)
ServerlessCacheSnapshot & WithServerlessCacheSnapshotName(const char *value)
ServerlessCacheSnapshot & WithKmsKeyId(const Aws::String &value)
void SetServerlessCacheSnapshotName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream