AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FileCacheCreating.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/fsx/model/FileCacheType.h>
11#include <aws/fsx/model/FileCacheLifecycle.h>
12#include <aws/fsx/model/FileCacheFailureDetails.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/fsx/model/FileCacheLustreConfiguration.h>
15#include <aws/fsx/model/Tag.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace FSx
29{
30namespace Model
31{
32
40 {
41 public:
42 AWS_FSX_API FileCacheCreating() = default;
46
47
49
50 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
51 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
52 template<typename OwnerIdT = Aws::String>
53 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
54 template<typename OwnerIdT = Aws::String>
55 FileCacheCreating& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
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) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
64 template<typename CreationTimeT = Aws::Utils::DateTime>
65 FileCacheCreating& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
67
69
72 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
73 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
74 template<typename FileCacheIdT = Aws::String>
75 void SetFileCacheId(FileCacheIdT&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::forward<FileCacheIdT>(value); }
76 template<typename FileCacheIdT = Aws::String>
77 FileCacheCreating& WithFileCacheId(FileCacheIdT&& value) { SetFileCacheId(std::forward<FileCacheIdT>(value)); return *this;}
79
81
84 inline FileCacheType GetFileCacheType() const { return m_fileCacheType; }
85 inline bool FileCacheTypeHasBeenSet() const { return m_fileCacheTypeHasBeenSet; }
86 inline void SetFileCacheType(FileCacheType value) { m_fileCacheTypeHasBeenSet = true; m_fileCacheType = value; }
87 inline FileCacheCreating& WithFileCacheType(FileCacheType value) { SetFileCacheType(value); return *this;}
89
91
94 inline const Aws::String& GetFileCacheTypeVersion() const { return m_fileCacheTypeVersion; }
95 inline bool FileCacheTypeVersionHasBeenSet() const { return m_fileCacheTypeVersionHasBeenSet; }
96 template<typename FileCacheTypeVersionT = Aws::String>
97 void SetFileCacheTypeVersion(FileCacheTypeVersionT&& value) { m_fileCacheTypeVersionHasBeenSet = true; m_fileCacheTypeVersion = std::forward<FileCacheTypeVersionT>(value); }
98 template<typename FileCacheTypeVersionT = Aws::String>
99 FileCacheCreating& WithFileCacheTypeVersion(FileCacheTypeVersionT&& value) { SetFileCacheTypeVersion(std::forward<FileCacheTypeVersionT>(value)); return *this;}
101
103
114 inline FileCacheLifecycle GetLifecycle() const { return m_lifecycle; }
115 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
116 inline void SetLifecycle(FileCacheLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
117 inline FileCacheCreating& WithLifecycle(FileCacheLifecycle value) { SetLifecycle(value); return *this;}
119
121
125 inline const FileCacheFailureDetails& GetFailureDetails() const { return m_failureDetails; }
126 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
127 template<typename FailureDetailsT = FileCacheFailureDetails>
128 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
129 template<typename FailureDetailsT = FileCacheFailureDetails>
130 FileCacheCreating& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
132
134
137 inline int GetStorageCapacity() const { return m_storageCapacity; }
138 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
139 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
140 inline FileCacheCreating& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
142
144
145 inline const Aws::String& GetVpcId() const { return m_vpcId; }
146 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
147 template<typename VpcIdT = Aws::String>
148 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
149 template<typename VpcIdT = Aws::String>
150 FileCacheCreating& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
152
154
155 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
156 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
157 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
158 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
159 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
160 FileCacheCreating& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
161 template<typename SubnetIdsT = Aws::String>
162 FileCacheCreating& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
164
166
167 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const { return m_networkInterfaceIds; }
168 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
169 template<typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
170 void SetNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value); }
171 template<typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
172 FileCacheCreating& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value)); return *this;}
173 template<typename NetworkInterfaceIdsT = Aws::String>
174 FileCacheCreating& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value)); return *this; }
176
178
181 inline const Aws::String& GetDNSName() const { return m_dNSName; }
182 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
183 template<typename DNSNameT = Aws::String>
184 void SetDNSName(DNSNameT&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::forward<DNSNameT>(value); }
185 template<typename DNSNameT = Aws::String>
186 FileCacheCreating& WithDNSName(DNSNameT&& value) { SetDNSName(std::forward<DNSNameT>(value)); return *this;}
188
190
198 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
199 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
200 template<typename KmsKeyIdT = Aws::String>
201 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
202 template<typename KmsKeyIdT = Aws::String>
203 FileCacheCreating& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
205
207
208 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
209 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
210 template<typename ResourceARNT = Aws::String>
211 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
212 template<typename ResourceARNT = Aws::String>
213 FileCacheCreating& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
215
217
218 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template<typename TagsT = Aws::Vector<Tag>>
221 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
222 template<typename TagsT = Aws::Vector<Tag>>
223 FileCacheCreating& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
224 template<typename TagsT = Tag>
225 FileCacheCreating& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
227
229
233 inline bool GetCopyTagsToDataRepositoryAssociations() const { return m_copyTagsToDataRepositoryAssociations; }
234 inline bool CopyTagsToDataRepositoryAssociationsHasBeenSet() const { return m_copyTagsToDataRepositoryAssociationsHasBeenSet; }
235 inline void SetCopyTagsToDataRepositoryAssociations(bool value) { m_copyTagsToDataRepositoryAssociationsHasBeenSet = true; m_copyTagsToDataRepositoryAssociations = value; }
238
240
243 inline const FileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
244 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
245 template<typename LustreConfigurationT = FileCacheLustreConfiguration>
246 void SetLustreConfiguration(LustreConfigurationT&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::forward<LustreConfigurationT>(value); }
247 template<typename LustreConfigurationT = FileCacheLustreConfiguration>
248 FileCacheCreating& WithLustreConfiguration(LustreConfigurationT&& value) { SetLustreConfiguration(std::forward<LustreConfigurationT>(value)); return *this;}
250
252
256 inline const Aws::Vector<Aws::String>& GetDataRepositoryAssociationIds() const { return m_dataRepositoryAssociationIds; }
257 inline bool DataRepositoryAssociationIdsHasBeenSet() const { return m_dataRepositoryAssociationIdsHasBeenSet; }
258 template<typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
259 void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { m_dataRepositoryAssociationIdsHasBeenSet = true; m_dataRepositoryAssociationIds = std::forward<DataRepositoryAssociationIdsT>(value); }
260 template<typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
261 FileCacheCreating& WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { SetDataRepositoryAssociationIds(std::forward<DataRepositoryAssociationIdsT>(value)); return *this;}
262 template<typename DataRepositoryAssociationIdsT = Aws::String>
263 FileCacheCreating& AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { m_dataRepositoryAssociationIdsHasBeenSet = true; m_dataRepositoryAssociationIds.emplace_back(std::forward<DataRepositoryAssociationIdsT>(value)); return *this; }
265 private:
266
267 Aws::String m_ownerId;
268 bool m_ownerIdHasBeenSet = false;
269
270 Aws::Utils::DateTime m_creationTime{};
271 bool m_creationTimeHasBeenSet = false;
272
273 Aws::String m_fileCacheId;
274 bool m_fileCacheIdHasBeenSet = false;
275
276 FileCacheType m_fileCacheType{FileCacheType::NOT_SET};
277 bool m_fileCacheTypeHasBeenSet = false;
278
279 Aws::String m_fileCacheTypeVersion;
280 bool m_fileCacheTypeVersionHasBeenSet = false;
281
283 bool m_lifecycleHasBeenSet = false;
284
285 FileCacheFailureDetails m_failureDetails;
286 bool m_failureDetailsHasBeenSet = false;
287
288 int m_storageCapacity{0};
289 bool m_storageCapacityHasBeenSet = false;
290
291 Aws::String m_vpcId;
292 bool m_vpcIdHasBeenSet = false;
293
294 Aws::Vector<Aws::String> m_subnetIds;
295 bool m_subnetIdsHasBeenSet = false;
296
297 Aws::Vector<Aws::String> m_networkInterfaceIds;
298 bool m_networkInterfaceIdsHasBeenSet = false;
299
300 Aws::String m_dNSName;
301 bool m_dNSNameHasBeenSet = false;
302
303 Aws::String m_kmsKeyId;
304 bool m_kmsKeyIdHasBeenSet = false;
305
306 Aws::String m_resourceARN;
307 bool m_resourceARNHasBeenSet = false;
308
309 Aws::Vector<Tag> m_tags;
310 bool m_tagsHasBeenSet = false;
311
312 bool m_copyTagsToDataRepositoryAssociations{false};
313 bool m_copyTagsToDataRepositoryAssociationsHasBeenSet = false;
314
315 FileCacheLustreConfiguration m_lustreConfiguration;
316 bool m_lustreConfigurationHasBeenSet = false;
317
318 Aws::Vector<Aws::String> m_dataRepositoryAssociationIds;
319 bool m_dataRepositoryAssociationIdsHasBeenSet = false;
320 };
321
322} // namespace Model
323} // namespace FSx
324} // 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