AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
FileCacheCreating.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#include <aws/fsx/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace FSx {
27namespace Model {
28
36 public:
37 AWS_FSX_API FileCacheCreating() = default;
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 FileCacheCreating& 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 FileCacheCreating& 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 FileCacheCreating& 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 FileCacheCreating& 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
155 inline const FileCacheFailureDetails& GetFailureDetails() const { return m_failureDetails; }
156 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
157 template <typename FailureDetailsT = FileCacheFailureDetails>
158 void SetFailureDetails(FailureDetailsT&& value) {
159 m_failureDetailsHasBeenSet = true;
160 m_failureDetails = std::forward<FailureDetailsT>(value);
161 }
162 template <typename FailureDetailsT = FileCacheFailureDetails>
163 FileCacheCreating& WithFailureDetails(FailureDetailsT&& value) {
164 SetFailureDetails(std::forward<FailureDetailsT>(value));
165 return *this;
166 }
168
170
173 inline int GetStorageCapacity() const { return m_storageCapacity; }
174 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
175 inline void SetStorageCapacity(int value) {
176 m_storageCapacityHasBeenSet = true;
177 m_storageCapacity = value;
178 }
180 SetStorageCapacity(value);
181 return *this;
182 }
184
186
187 inline const Aws::String& GetVpcId() const { return m_vpcId; }
188 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
189 template <typename VpcIdT = Aws::String>
190 void SetVpcId(VpcIdT&& value) {
191 m_vpcIdHasBeenSet = true;
192 m_vpcId = std::forward<VpcIdT>(value);
193 }
194 template <typename VpcIdT = Aws::String>
195 FileCacheCreating& WithVpcId(VpcIdT&& value) {
196 SetVpcId(std::forward<VpcIdT>(value));
197 return *this;
198 }
200
202
203 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
204 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
205 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
206 void SetSubnetIds(SubnetIdsT&& value) {
207 m_subnetIdsHasBeenSet = true;
208 m_subnetIds = std::forward<SubnetIdsT>(value);
209 }
210 template <typename SubnetIdsT = Aws::Vector<Aws::String>>
211 FileCacheCreating& WithSubnetIds(SubnetIdsT&& value) {
212 SetSubnetIds(std::forward<SubnetIdsT>(value));
213 return *this;
214 }
215 template <typename SubnetIdsT = Aws::String>
216 FileCacheCreating& AddSubnetIds(SubnetIdsT&& value) {
217 m_subnetIdsHasBeenSet = true;
218 m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value));
219 return *this;
220 }
222
224
225 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const { return m_networkInterfaceIds; }
226 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
227 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
228 void SetNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
229 m_networkInterfaceIdsHasBeenSet = true;
230 m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value);
231 }
232 template <typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
233 FileCacheCreating& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
234 SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value));
235 return *this;
236 }
237 template <typename NetworkInterfaceIdsT = Aws::String>
238 FileCacheCreating& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) {
239 m_networkInterfaceIdsHasBeenSet = true;
240 m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value));
241 return *this;
242 }
244
246
249 inline const Aws::String& GetDNSName() const { return m_dNSName; }
250 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
251 template <typename DNSNameT = Aws::String>
252 void SetDNSName(DNSNameT&& value) {
253 m_dNSNameHasBeenSet = true;
254 m_dNSName = std::forward<DNSNameT>(value);
255 }
256 template <typename DNSNameT = Aws::String>
257 FileCacheCreating& WithDNSName(DNSNameT&& value) {
258 SetDNSName(std::forward<DNSNameT>(value));
259 return *this;
260 }
262
264
272 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
273 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
274 template <typename KmsKeyIdT = Aws::String>
275 void SetKmsKeyId(KmsKeyIdT&& value) {
276 m_kmsKeyIdHasBeenSet = true;
277 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
278 }
279 template <typename KmsKeyIdT = Aws::String>
280 FileCacheCreating& WithKmsKeyId(KmsKeyIdT&& value) {
281 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
282 return *this;
283 }
285
287
288 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
289 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
290 template <typename ResourceARNT = Aws::String>
291 void SetResourceARN(ResourceARNT&& value) {
292 m_resourceARNHasBeenSet = true;
293 m_resourceARN = std::forward<ResourceARNT>(value);
294 }
295 template <typename ResourceARNT = Aws::String>
296 FileCacheCreating& WithResourceARN(ResourceARNT&& value) {
297 SetResourceARN(std::forward<ResourceARNT>(value));
298 return *this;
299 }
301
303
304 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
305 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
306 template <typename TagsT = Aws::Vector<Tag>>
307 void SetTags(TagsT&& value) {
308 m_tagsHasBeenSet = true;
309 m_tags = std::forward<TagsT>(value);
310 }
311 template <typename TagsT = Aws::Vector<Tag>>
312 FileCacheCreating& WithTags(TagsT&& value) {
313 SetTags(std::forward<TagsT>(value));
314 return *this;
315 }
316 template <typename TagsT = Tag>
317 FileCacheCreating& AddTags(TagsT&& value) {
318 m_tagsHasBeenSet = true;
319 m_tags.emplace_back(std::forward<TagsT>(value));
320 return *this;
321 }
323
325
329 inline bool GetCopyTagsToDataRepositoryAssociations() const { return m_copyTagsToDataRepositoryAssociations; }
330 inline bool CopyTagsToDataRepositoryAssociationsHasBeenSet() const { return m_copyTagsToDataRepositoryAssociationsHasBeenSet; }
332 m_copyTagsToDataRepositoryAssociationsHasBeenSet = true;
333 m_copyTagsToDataRepositoryAssociations = value;
334 }
337 return *this;
338 }
340
342
345 inline const FileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
346 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
347 template <typename LustreConfigurationT = FileCacheLustreConfiguration>
348 void SetLustreConfiguration(LustreConfigurationT&& value) {
349 m_lustreConfigurationHasBeenSet = true;
350 m_lustreConfiguration = std::forward<LustreConfigurationT>(value);
351 }
352 template <typename LustreConfigurationT = FileCacheLustreConfiguration>
353 FileCacheCreating& WithLustreConfiguration(LustreConfigurationT&& value) {
354 SetLustreConfiguration(std::forward<LustreConfigurationT>(value));
355 return *this;
356 }
358
360
364 inline const Aws::Vector<Aws::String>& GetDataRepositoryAssociationIds() const { return m_dataRepositoryAssociationIds; }
365 inline bool DataRepositoryAssociationIdsHasBeenSet() const { return m_dataRepositoryAssociationIdsHasBeenSet; }
366 template <typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
367 void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
368 m_dataRepositoryAssociationIdsHasBeenSet = true;
369 m_dataRepositoryAssociationIds = std::forward<DataRepositoryAssociationIdsT>(value);
370 }
371 template <typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
372 FileCacheCreating& WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
373 SetDataRepositoryAssociationIds(std::forward<DataRepositoryAssociationIdsT>(value));
374 return *this;
375 }
376 template <typename DataRepositoryAssociationIdsT = Aws::String>
377 FileCacheCreating& AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) {
378 m_dataRepositoryAssociationIdsHasBeenSet = true;
379 m_dataRepositoryAssociationIds.emplace_back(std::forward<DataRepositoryAssociationIdsT>(value));
380 return *this;
381 }
383 private:
384 Aws::String m_ownerId;
385
386 Aws::Utils::DateTime m_creationTime{};
387
388 Aws::String m_fileCacheId;
389
390 FileCacheType m_fileCacheType{FileCacheType::NOT_SET};
391
392 Aws::String m_fileCacheTypeVersion;
393
395
396 FileCacheFailureDetails m_failureDetails;
397
398 int m_storageCapacity{0};
399
400 Aws::String m_vpcId;
401
402 Aws::Vector<Aws::String> m_subnetIds;
403
404 Aws::Vector<Aws::String> m_networkInterfaceIds;
405
406 Aws::String m_dNSName;
407
408 Aws::String m_kmsKeyId;
409
410 Aws::String m_resourceARN;
411
412 Aws::Vector<Tag> m_tags;
413
414 bool m_copyTagsToDataRepositoryAssociations{false};
415
416 FileCacheLustreConfiguration m_lustreConfiguration;
417
418 Aws::Vector<Aws::String> m_dataRepositoryAssociationIds;
419 bool m_ownerIdHasBeenSet = false;
420 bool m_creationTimeHasBeenSet = false;
421 bool m_fileCacheIdHasBeenSet = false;
422 bool m_fileCacheTypeHasBeenSet = false;
423 bool m_fileCacheTypeVersionHasBeenSet = false;
424 bool m_lifecycleHasBeenSet = false;
425 bool m_failureDetailsHasBeenSet = false;
426 bool m_storageCapacityHasBeenSet = false;
427 bool m_vpcIdHasBeenSet = false;
428 bool m_subnetIdsHasBeenSet = false;
429 bool m_networkInterfaceIdsHasBeenSet = false;
430 bool m_dNSNameHasBeenSet = false;
431 bool m_kmsKeyIdHasBeenSet = false;
432 bool m_resourceARNHasBeenSet = false;
433 bool m_tagsHasBeenSet = false;
434 bool m_copyTagsToDataRepositoryAssociationsHasBeenSet = false;
435 bool m_lustreConfigurationHasBeenSet = false;
436 bool m_dataRepositoryAssociationIdsHasBeenSet = false;
437};
438
439} // namespace Model
440} // namespace FSx
441} // namespace Aws
void SetFileCacheTypeVersion(FileCacheTypeVersionT &&value)
const Aws::Vector< Aws::String > & GetDataRepositoryAssociationIds() const
bool CopyTagsToDataRepositoryAssociationsHasBeenSet() const
const Aws::String & GetFileCacheId() const
FileCacheCreating & WithLifecycle(FileCacheLifecycle value)
FileCacheCreating & WithStorageCapacity(int value)
FileCacheCreating & WithFileCacheType(FileCacheType value)
void SetFileCacheId(FileCacheIdT &&value)
void SetFileCacheType(FileCacheType value)
FileCacheCreating & AddTags(TagsT &&value)
const Aws::String & GetKmsKeyId() const
const Aws::String & GetDNSName() const
const Aws::Vector< Aws::String > & GetSubnetIds() const
void SetLustreConfiguration(LustreConfigurationT &&value)
void SetNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
FileCacheCreating & WithNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
FileCacheCreating & WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
FileCacheCreating & WithFileCacheTypeVersion(FileCacheTypeVersionT &&value)
FileCacheCreating & WithSubnetIds(SubnetIdsT &&value)
FileCacheCreating & AddNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
void SetLifecycle(FileCacheLifecycle value)
FileCacheCreating & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
const Aws::String & GetFileCacheTypeVersion() const
const FileCacheFailureDetails & GetFailureDetails() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetCopyTagsToDataRepositoryAssociations(bool value)
FileCacheCreating & WithVpcId(VpcIdT &&value)
FileCacheCreating & AddSubnetIds(SubnetIdsT &&value)
AWS_FSX_API FileCacheCreating()=default
FileCacheCreating & AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
const Aws::String & GetOwnerId() const
FileCacheCreating & WithLustreConfiguration(LustreConfigurationT &&value)
const Aws::String & GetVpcId() const
FileCacheLifecycle GetLifecycle() const
FileCacheCreating & WithKmsKeyId(KmsKeyIdT &&value)
const Aws::Vector< Tag > & GetTags() const
FileCacheCreating & WithCopyTagsToDataRepositoryAssociations(bool value)
void SetFailureDetails(FailureDetailsT &&value)
void SetCreationTime(CreationTimeT &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
FileCacheCreating & WithTags(TagsT &&value)
FileCacheCreating & WithOwnerId(OwnerIdT &&value)
void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
AWS_FSX_API FileCacheCreating(Aws::Utils::Json::JsonView jsonValue)
FileCacheCreating & WithFileCacheId(FileCacheIdT &&value)
FileCacheCreating & WithDNSName(DNSNameT &&value)
FileCacheCreating & WithResourceARN(ResourceARNT &&value)
AWS_FSX_API FileCacheCreating & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetResourceARN(ResourceARNT &&value)
void SetSubnetIds(SubnetIdsT &&value)
const Aws::String & GetResourceARN() const
FileCacheCreating & WithFailureDetails(FailureDetailsT &&value)
const FileCacheLustreConfiguration & GetLustreConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue