AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
FileCache.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/fsx/FSx_EXPORTS.h>
11#include <aws/fsx/model/FileCacheFailureDetails.h>
12#include <aws/fsx/model/FileCacheLifecycle.h>
13#include <aws/fsx/model/FileCacheLustreConfiguration.h>
14#include <aws/fsx/model/FileCacheType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace FSx {
26namespace Model {
27
35class FileCache {
36 public:
37 AWS_FSX_API FileCache() = default;
38 AWS_FSX_API FileCache(Aws::Utils::Json::JsonView jsonValue);
41
43
44 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
45 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
46 template <typename OwnerIdT = Aws::String>
47 void SetOwnerId(OwnerIdT&& value) {
48 m_ownerIdHasBeenSet = true;
49 m_ownerId = std::forward<OwnerIdT>(value);
50 }
51 template <typename OwnerIdT = Aws::String>
52 FileCache& WithOwnerId(OwnerIdT&& value) {
53 SetOwnerId(std::forward<OwnerIdT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
61 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
62 template <typename CreationTimeT = Aws::Utils::DateTime>
63 void SetCreationTime(CreationTimeT&& value) {
64 m_creationTimeHasBeenSet = true;
65 m_creationTime = std::forward<CreationTimeT>(value);
66 }
67 template <typename CreationTimeT = Aws::Utils::DateTime>
68 FileCache& WithCreationTime(CreationTimeT&& value) {
69 SetCreationTime(std::forward<CreationTimeT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
79 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
80 template <typename FileCacheIdT = Aws::String>
81 void SetFileCacheId(FileCacheIdT&& value) {
82 m_fileCacheIdHasBeenSet = true;
83 m_fileCacheId = std::forward<FileCacheIdT>(value);
84 }
85 template <typename FileCacheIdT = Aws::String>
86 FileCache& WithFileCacheId(FileCacheIdT&& value) {
87 SetFileCacheId(std::forward<FileCacheIdT>(value));
88 return *this;
89 }
91
93
96 inline FileCacheType GetFileCacheType() const { return m_fileCacheType; }
97 inline bool FileCacheTypeHasBeenSet() const { return m_fileCacheTypeHasBeenSet; }
98 inline void SetFileCacheType(FileCacheType value) {
99 m_fileCacheTypeHasBeenSet = true;
100 m_fileCacheType = value;
101 }
103 SetFileCacheType(value);
104 return *this;
105 }
107
109
112 inline const Aws::String& GetFileCacheTypeVersion() const { return m_fileCacheTypeVersion; }
113 inline bool FileCacheTypeVersionHasBeenSet() const { return m_fileCacheTypeVersionHasBeenSet; }
114 template <typename FileCacheTypeVersionT = Aws::String>
115 void SetFileCacheTypeVersion(FileCacheTypeVersionT&& value) {
116 m_fileCacheTypeVersionHasBeenSet = true;
117 m_fileCacheTypeVersion = std::forward<FileCacheTypeVersionT>(value);
118 }
119 template <typename FileCacheTypeVersionT = Aws::String>
120 FileCache& WithFileCacheTypeVersion(FileCacheTypeVersionT&& value) {
121 SetFileCacheTypeVersion(std::forward<FileCacheTypeVersionT>(value));
122 return *this;
123 }
125
127
138 inline FileCacheLifecycle GetLifecycle() const { return m_lifecycle; }
139 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
140 inline void SetLifecycle(FileCacheLifecycle value) {
141 m_lifecycleHasBeenSet = true;
142 m_lifecycle = value;
143 }
145 SetLifecycle(value);
146 return *this;
147 }
149
151
154 inline const FileCacheFailureDetails& GetFailureDetails() const { return m_failureDetails; }
155 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
156 template <typename FailureDetailsT = FileCacheFailureDetails>
157 void SetFailureDetails(FailureDetailsT&& value) {
158 m_failureDetailsHasBeenSet = true;
159 m_failureDetails = std::forward<FailureDetailsT>(value);
160 }
161 template <typename FailureDetailsT = FileCacheFailureDetails>
162 FileCache& WithFailureDetails(FailureDetailsT&& value) {
163 SetFailureDetails(std::forward<FailureDetailsT>(value));
164 return *this;
165 }
167
169
172 inline int GetStorageCapacity() const { return m_storageCapacity; }
173 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
174 inline void SetStorageCapacity(int value) {
175 m_storageCapacityHasBeenSet = true;
176 m_storageCapacity = value;
177 }
178 inline FileCache& WithStorageCapacity(int value) {
179 SetStorageCapacity(value);
180 return *this;
181 }
183
185
186 inline const Aws::String& GetVpcId() const { return m_vpcId; }
187 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
188 template <typename VpcIdT = Aws::String>
189 void SetVpcId(VpcIdT&& value) {
190 m_vpcIdHasBeenSet = true;
191 m_vpcId = std::forward<VpcIdT>(value);
192 }
193 template <typename VpcIdT = Aws::String>
194 FileCache& WithVpcId(VpcIdT&& value) {
195 SetVpcId(std::forward<VpcIdT>(value));
196 return *this;
197 }
199
201
202 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
203 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
204 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
205 void SetSubnetIds(SubnetIdsT&& value) {
206 m_subnetIdsHasBeenSet = true;
207 m_subnetIds = std::forward<SubnetIdsT>(value);
208 }
209 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
210 FileCache& WithSubnetIds(SubnetIdsT&& value) {
211 SetSubnetIds(std::forward<SubnetIdsT>(value));
212 return *this;
213 }
214 template <typename SubnetIdsT = Aws::String>
215 FileCache& AddSubnetIds(SubnetIdsT&& value) {
216 m_subnetIdsHasBeenSet = true;
217 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
218 return *this;
219 }
221
223
224 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const { return m_networkInterfaceIds; }
225 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
226 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
227 void SetNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
228 m_networkInterfaceIdsHasBeenSet = true;
229 m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value);
230 }
231 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
232 FileCache& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
233 SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value));
234 return *this;
235 }
236 template <typename NetworkInterfaceIdsT = Aws::String>
237 FileCache& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
238 m_networkInterfaceIdsHasBeenSet = true;
239 m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::String& GetDNSName() const { return m_dNSName; }
249 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
250 template <typename DNSNameT = Aws::String>
251 void SetDNSName(DNSNameT&& value) {
252 m_dNSNameHasBeenSet = true;
253 m_dNSName = std::forward<DNSNameT>(value);
254 }
255 template <typename DNSNameT = Aws::String>
256 FileCache& WithDNSName(DNSNameT&& value) {
257 SetDNSName(std::forward<DNSNameT>(value));
258 return *this;
259 }
261
263
271 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
272 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
273 template <typename KmsKeyIdT = Aws::String>
274 void SetKmsKeyId(KmsKeyIdT&& value) {
275 m_kmsKeyIdHasBeenSet = true;
276 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
277 }
278 template <typename KmsKeyIdT = Aws::String>
279 FileCache& WithKmsKeyId(KmsKeyIdT&& value) {
280 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
281 return *this;
282 }
284
286
287 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
288 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
289 template <typename ResourceARNT = Aws::String>
290 void SetResourceARN(ResourceARNT&& value) {
291 m_resourceARNHasBeenSet = true;
292 m_resourceARN = std::forward<ResourceARNT>(value);
293 }
294 template <typename ResourceARNT = Aws::String>
295 FileCache& WithResourceARN(ResourceARNT&& value) {
296 SetResourceARN(std::forward<ResourceARNT>(value));
297 return *this;
298 }
300
302
305 inline const FileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
306 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
307 template <typename LustreConfigurationT = FileCacheLustreConfiguration>
308 void SetLustreConfiguration(LustreConfigurationT&& value) {
309 m_lustreConfigurationHasBeenSet = true;
310 m_lustreConfiguration = std::forward<LustreConfigurationT>(value);
311 }
312 template <typename LustreConfigurationT = FileCacheLustreConfiguration>
313 FileCache& WithLustreConfiguration(LustreConfigurationT&& value) {
314 SetLustreConfiguration(std::forward<LustreConfigurationT>(value));
315 return *this;
316 }
318
320
324 inline const Aws::Vector<Aws::String>& GetDataRepositoryAssociationIds() const { return m_dataRepositoryAssociationIds; }
325 inline bool DataRepositoryAssociationIdsHasBeenSet() const { return m_dataRepositoryAssociationIdsHasBeenSet; }
326 template <typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
327 void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
328 m_dataRepositoryAssociationIdsHasBeenSet = true;
329 m_dataRepositoryAssociationIds = std::forward<DataRepositoryAssociationIdsT>(value);
330 }
331 template <typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
332 FileCache& WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
333 SetDataRepositoryAssociationIds(std::forward<DataRepositoryAssociationIdsT>(value));
334 return *this;
335 }
336 template <typename DataRepositoryAssociationIdsT = Aws::String>
337 FileCache& AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
338 m_dataRepositoryAssociationIdsHasBeenSet = true;
339 m_dataRepositoryAssociationIds.emplace_back(std::forward<DataRepositoryAssociationIdsT>(value));
340 return *this;
341 }
343 private:
344 Aws::String m_ownerId;
345
346 Aws::Utils::DateTime m_creationTime{};
347
348 Aws::String m_fileCacheId;
349
350 FileCacheType m_fileCacheType{FileCacheType::NOT_SET};
351
352 Aws::String m_fileCacheTypeVersion;
353
355
356 FileCacheFailureDetails m_failureDetails;
357
358 int m_storageCapacity{0};
359
360 Aws::String m_vpcId;
361
362 Aws::Vector<Aws::String> m_subnetIds;
363
364 Aws::Vector<Aws::String> m_networkInterfaceIds;
365
366 Aws::String m_dNSName;
367
368 Aws::String m_kmsKeyId;
369
370 Aws::String m_resourceARN;
371
372 FileCacheLustreConfiguration m_lustreConfiguration;
373
374 Aws::Vector<Aws::String> m_dataRepositoryAssociationIds;
375 bool m_ownerIdHasBeenSet = false;
376 bool m_creationTimeHasBeenSet = false;
377 bool m_fileCacheIdHasBeenSet = false;
378 bool m_fileCacheTypeHasBeenSet = false;
379 bool m_fileCacheTypeVersionHasBeenSet = false;
380 bool m_lifecycleHasBeenSet = false;
381 bool m_failureDetailsHasBeenSet = false;
382 bool m_storageCapacityHasBeenSet = false;
383 bool m_vpcIdHasBeenSet = false;
384 bool m_subnetIdsHasBeenSet = false;
385 bool m_networkInterfaceIdsHasBeenSet = false;
386 bool m_dNSNameHasBeenSet = false;
387 bool m_kmsKeyIdHasBeenSet = false;
388 bool m_resourceARNHasBeenSet = false;
389 bool m_lustreConfigurationHasBeenSet = false;
390 bool m_dataRepositoryAssociationIdsHasBeenSet = false;
391};
392
393} // namespace Model
394} // namespace FSx
395} // namespace Aws
FileCache & AddNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:237
void SetFileCacheType(FileCacheType value)
Definition FileCache.h:98
FileCache & WithFailureDetails(FailureDetailsT &&value)
Definition FileCache.h:162
bool LifecycleHasBeenSet() const
Definition FileCache.h:139
void SetVpcId(VpcIdT &&value)
Definition FileCache.h:189
bool DNSNameHasBeenSet() const
Definition FileCache.h:249
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API FileCache()=default
FileCache & AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:337
FileCache & WithKmsKeyId(KmsKeyIdT &&value)
Definition FileCache.h:279
int GetStorageCapacity() const
Definition FileCache.h:172
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition FileCache.h:202
FileCacheType GetFileCacheType() const
Definition FileCache.h:96
void SetKmsKeyId(KmsKeyIdT &&value)
Definition FileCache.h:274
bool FailureDetailsHasBeenSet() const
Definition FileCache.h:155
const Aws::String & GetFileCacheTypeVersion() const
Definition FileCache.h:112
bool FileCacheIdHasBeenSet() const
Definition FileCache.h:79
FileCache & WithDNSName(DNSNameT &&value)
Definition FileCache.h:256
bool ResourceARNHasBeenSet() const
Definition FileCache.h:288
bool FileCacheTypeHasBeenSet() const
Definition FileCache.h:97
bool DataRepositoryAssociationIdsHasBeenSet() const
Definition FileCache.h:325
FileCache & WithFileCacheId(FileCacheIdT &&value)
Definition FileCache.h:86
bool StorageCapacityHasBeenSet() const
Definition FileCache.h:173
FileCache & WithNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:232
void SetOwnerId(OwnerIdT &&value)
Definition FileCache.h:47
const Aws::Utils::DateTime & GetCreationTime() const
Definition FileCache.h:60
FileCacheLifecycle GetLifecycle() const
Definition FileCache.h:138
FileCache & WithSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:210
const FileCacheFailureDetails & GetFailureDetails() const
Definition FileCache.h:154
FileCache & WithOwnerId(OwnerIdT &&value)
Definition FileCache.h:52
AWS_FSX_API FileCache(Aws::Utils::Json::JsonView jsonValue)
void SetFileCacheId(FileCacheIdT &&value)
Definition FileCache.h:81
const Aws::String & GetFileCacheId() const
Definition FileCache.h:78
const Aws::String & GetOwnerId() const
Definition FileCache.h:44
void SetFileCacheTypeVersion(FileCacheTypeVersionT &&value)
Definition FileCache.h:115
FileCache & AddSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:215
FileCache & WithLustreConfiguration(LustreConfigurationT &&value)
Definition FileCache.h:313
bool VpcIdHasBeenSet() const
Definition FileCache.h:187
FileCache & WithFileCacheType(FileCacheType value)
Definition FileCache.h:102
bool OwnerIdHasBeenSet() const
Definition FileCache.h:45
const Aws::String & GetResourceARN() const
Definition FileCache.h:287
void SetResourceARN(ResourceARNT &&value)
Definition FileCache.h:290
FileCache & WithFileCacheTypeVersion(FileCacheTypeVersionT &&value)
Definition FileCache.h:120
void SetCreationTime(CreationTimeT &&value)
Definition FileCache.h:63
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
Definition FileCache.h:224
FileCache & WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:332
FileCache & WithStorageCapacity(int value)
Definition FileCache.h:178
bool CreationTimeHasBeenSet() const
Definition FileCache.h:61
void SetNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:227
void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:327
void SetDNSName(DNSNameT &&value)
Definition FileCache.h:251
void SetSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:205
const Aws::String & GetKmsKeyId() const
Definition FileCache.h:271
bool FileCacheTypeVersionHasBeenSet() const
Definition FileCache.h:113
void SetLifecycle(FileCacheLifecycle value)
Definition FileCache.h:140
const Aws::Vector< Aws::String > & GetDataRepositoryAssociationIds() const
Definition FileCache.h:324
FileCache & WithResourceARN(ResourceARNT &&value)
Definition FileCache.h:295
const Aws::String & GetDNSName() const
Definition FileCache.h:248
void SetFailureDetails(FailureDetailsT &&value)
Definition FileCache.h:157
FileCache & WithVpcId(VpcIdT &&value)
Definition FileCache.h:194
FileCache & WithCreationTime(CreationTimeT &&value)
Definition FileCache.h:68
bool NetworkInterfaceIdsHasBeenSet() const
Definition FileCache.h:225
bool KmsKeyIdHasBeenSet() const
Definition FileCache.h:272
const Aws::String & GetVpcId() const
Definition FileCache.h:186
bool SubnetIdsHasBeenSet() const
Definition FileCache.h:203
AWS_FSX_API FileCache & operator=(Aws::Utils::Json::JsonView jsonValue)
const FileCacheLustreConfiguration & GetLustreConfiguration() const
Definition FileCache.h:305
bool LustreConfigurationHasBeenSet() const
Definition FileCache.h:306
void SetStorageCapacity(int value)
Definition FileCache.h:174
FileCache & WithLifecycle(FileCacheLifecycle value)
Definition FileCache.h:144
void SetLustreConfiguration(LustreConfigurationT &&value)
Definition FileCache.h:308
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue