AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
FileCache.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 <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace FSx
28{
29namespace Model
30{
31
40 {
41 public:
42 AWS_FSX_API FileCache() = default;
43 AWS_FSX_API FileCache(Aws::Utils::Json::JsonView jsonValue);
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 FileCache& 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 FileCache& 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 FileCache& 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 FileCache& 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 FileCache& 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 FileCache& WithLifecycle(FileCacheLifecycle value) { SetLifecycle(value); return *this;}
119
121
124 inline const FileCacheFailureDetails& GetFailureDetails() const { return m_failureDetails; }
125 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
126 template<typename FailureDetailsT = FileCacheFailureDetails>
127 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
128 template<typename FailureDetailsT = FileCacheFailureDetails>
129 FileCache& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
131
133
136 inline int GetStorageCapacity() const { return m_storageCapacity; }
137 inline bool StorageCapacityHasBeenSet() const { return m_storageCapacityHasBeenSet; }
138 inline void SetStorageCapacity(int value) { m_storageCapacityHasBeenSet = true; m_storageCapacity = value; }
139 inline FileCache& WithStorageCapacity(int value) { SetStorageCapacity(value); return *this;}
141
143
144 inline const Aws::String& GetVpcId() const { return m_vpcId; }
145 inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; }
146 template<typename VpcIdT = Aws::String>
147 void SetVpcId(VpcIdT&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::forward<VpcIdT>(value); }
148 template<typename VpcIdT = Aws::String>
149 FileCache& WithVpcId(VpcIdT&& value) { SetVpcId(std::forward<VpcIdT>(value)); return *this;}
151
153
154 inline const Aws::Vector<Aws::String>& GetSubnetIds() const { return m_subnetIds; }
155 inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; }
156 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
157 void SetSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::forward<SubnetIdsT>(value); }
158 template<typename SubnetIdsT = Aws::Vector<Aws::String>>
159 FileCache& WithSubnetIds(SubnetIdsT&& value) { SetSubnetIds(std::forward<SubnetIdsT>(value)); return *this;}
160 template<typename SubnetIdsT = Aws::String>
161 FileCache& AddSubnetIds(SubnetIdsT&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.emplace_back(std::forward<SubnetIdsT>(value)); return *this; }
163
165
166 inline const Aws::Vector<Aws::String>& GetNetworkInterfaceIds() const { return m_networkInterfaceIds; }
167 inline bool NetworkInterfaceIdsHasBeenSet() const { return m_networkInterfaceIdsHasBeenSet; }
168 template<typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
169 void SetNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds = std::forward<NetworkInterfaceIdsT>(value); }
170 template<typename NetworkInterfaceIdsT = Aws::Vector<Aws::String>>
171 FileCache& WithNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { SetNetworkInterfaceIds(std::forward<NetworkInterfaceIdsT>(value)); return *this;}
172 template<typename NetworkInterfaceIdsT = Aws::String>
173 FileCache& AddNetworkInterfaceIds(NetworkInterfaceIdsT&& value) { m_networkInterfaceIdsHasBeenSet = true; m_networkInterfaceIds.emplace_back(std::forward<NetworkInterfaceIdsT>(value)); return *this; }
175
177
180 inline const Aws::String& GetDNSName() const { return m_dNSName; }
181 inline bool DNSNameHasBeenSet() const { return m_dNSNameHasBeenSet; }
182 template<typename DNSNameT = Aws::String>
183 void SetDNSName(DNSNameT&& value) { m_dNSNameHasBeenSet = true; m_dNSName = std::forward<DNSNameT>(value); }
184 template<typename DNSNameT = Aws::String>
185 FileCache& WithDNSName(DNSNameT&& value) { SetDNSName(std::forward<DNSNameT>(value)); return *this;}
187
189
197 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
198 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
199 template<typename KmsKeyIdT = Aws::String>
200 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
201 template<typename KmsKeyIdT = Aws::String>
202 FileCache& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
204
206
207 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
208 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
209 template<typename ResourceARNT = Aws::String>
210 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
211 template<typename ResourceARNT = Aws::String>
212 FileCache& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
214
216
219 inline const FileCacheLustreConfiguration& GetLustreConfiguration() const { return m_lustreConfiguration; }
220 inline bool LustreConfigurationHasBeenSet() const { return m_lustreConfigurationHasBeenSet; }
221 template<typename LustreConfigurationT = FileCacheLustreConfiguration>
222 void SetLustreConfiguration(LustreConfigurationT&& value) { m_lustreConfigurationHasBeenSet = true; m_lustreConfiguration = std::forward<LustreConfigurationT>(value); }
223 template<typename LustreConfigurationT = FileCacheLustreConfiguration>
224 FileCache& WithLustreConfiguration(LustreConfigurationT&& value) { SetLustreConfiguration(std::forward<LustreConfigurationT>(value)); return *this;}
226
228
232 inline const Aws::Vector<Aws::String>& GetDataRepositoryAssociationIds() const { return m_dataRepositoryAssociationIds; }
233 inline bool DataRepositoryAssociationIdsHasBeenSet() const { return m_dataRepositoryAssociationIdsHasBeenSet; }
234 template<typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
235 void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { m_dataRepositoryAssociationIdsHasBeenSet = true; m_dataRepositoryAssociationIds = std::forward<DataRepositoryAssociationIdsT>(value); }
236 template<typename DataRepositoryAssociationIdsT = Aws::Vector<Aws::String>>
237 FileCache& WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { SetDataRepositoryAssociationIds(std::forward<DataRepositoryAssociationIdsT>(value)); return *this;}
238 template<typename DataRepositoryAssociationIdsT = Aws::String>
239 FileCache& AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT&& value) { m_dataRepositoryAssociationIdsHasBeenSet = true; m_dataRepositoryAssociationIds.emplace_back(std::forward<DataRepositoryAssociationIdsT>(value)); return *this; }
241 private:
242
243 Aws::String m_ownerId;
244 bool m_ownerIdHasBeenSet = false;
245
246 Aws::Utils::DateTime m_creationTime{};
247 bool m_creationTimeHasBeenSet = false;
248
249 Aws::String m_fileCacheId;
250 bool m_fileCacheIdHasBeenSet = false;
251
252 FileCacheType m_fileCacheType{FileCacheType::NOT_SET};
253 bool m_fileCacheTypeHasBeenSet = false;
254
255 Aws::String m_fileCacheTypeVersion;
256 bool m_fileCacheTypeVersionHasBeenSet = false;
257
259 bool m_lifecycleHasBeenSet = false;
260
261 FileCacheFailureDetails m_failureDetails;
262 bool m_failureDetailsHasBeenSet = false;
263
264 int m_storageCapacity{0};
265 bool m_storageCapacityHasBeenSet = false;
266
267 Aws::String m_vpcId;
268 bool m_vpcIdHasBeenSet = false;
269
270 Aws::Vector<Aws::String> m_subnetIds;
271 bool m_subnetIdsHasBeenSet = false;
272
273 Aws::Vector<Aws::String> m_networkInterfaceIds;
274 bool m_networkInterfaceIdsHasBeenSet = false;
275
276 Aws::String m_dNSName;
277 bool m_dNSNameHasBeenSet = false;
278
279 Aws::String m_kmsKeyId;
280 bool m_kmsKeyIdHasBeenSet = false;
281
282 Aws::String m_resourceARN;
283 bool m_resourceARNHasBeenSet = false;
284
285 FileCacheLustreConfiguration m_lustreConfiguration;
286 bool m_lustreConfigurationHasBeenSet = false;
287
288 Aws::Vector<Aws::String> m_dataRepositoryAssociationIds;
289 bool m_dataRepositoryAssociationIdsHasBeenSet = false;
290 };
291
292} // namespace Model
293} // namespace FSx
294} // namespace Aws
FileCache & AddNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:173
void SetFileCacheType(FileCacheType value)
Definition FileCache.h:86
FileCache & WithFailureDetails(FailureDetailsT &&value)
Definition FileCache.h:129
bool LifecycleHasBeenSet() const
Definition FileCache.h:115
void SetVpcId(VpcIdT &&value)
Definition FileCache.h:147
bool DNSNameHasBeenSet() const
Definition FileCache.h:181
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FSX_API FileCache()=default
FileCache & AddDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:239
FileCache & WithKmsKeyId(KmsKeyIdT &&value)
Definition FileCache.h:202
int GetStorageCapacity() const
Definition FileCache.h:136
const Aws::Vector< Aws::String > & GetSubnetIds() const
Definition FileCache.h:154
FileCacheType GetFileCacheType() const
Definition FileCache.h:84
void SetKmsKeyId(KmsKeyIdT &&value)
Definition FileCache.h:200
bool FailureDetailsHasBeenSet() const
Definition FileCache.h:125
const Aws::String & GetFileCacheTypeVersion() const
Definition FileCache.h:94
bool FileCacheIdHasBeenSet() const
Definition FileCache.h:73
FileCache & WithDNSName(DNSNameT &&value)
Definition FileCache.h:185
bool ResourceARNHasBeenSet() const
Definition FileCache.h:208
bool FileCacheTypeHasBeenSet() const
Definition FileCache.h:85
bool DataRepositoryAssociationIdsHasBeenSet() const
Definition FileCache.h:233
FileCache & WithFileCacheId(FileCacheIdT &&value)
Definition FileCache.h:77
bool StorageCapacityHasBeenSet() const
Definition FileCache.h:137
FileCache & WithNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:171
void SetOwnerId(OwnerIdT &&value)
Definition FileCache.h:53
const Aws::Utils::DateTime & GetCreationTime() const
Definition FileCache.h:60
FileCacheLifecycle GetLifecycle() const
Definition FileCache.h:114
FileCache & WithSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:159
const FileCacheFailureDetails & GetFailureDetails() const
Definition FileCache.h:124
FileCache & WithOwnerId(OwnerIdT &&value)
Definition FileCache.h:55
AWS_FSX_API FileCache(Aws::Utils::Json::JsonView jsonValue)
void SetFileCacheId(FileCacheIdT &&value)
Definition FileCache.h:75
const Aws::String & GetFileCacheId() const
Definition FileCache.h:72
const Aws::String & GetOwnerId() const
Definition FileCache.h:50
void SetFileCacheTypeVersion(FileCacheTypeVersionT &&value)
Definition FileCache.h:97
FileCache & AddSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:161
FileCache & WithLustreConfiguration(LustreConfigurationT &&value)
Definition FileCache.h:224
bool VpcIdHasBeenSet() const
Definition FileCache.h:145
FileCache & WithFileCacheType(FileCacheType value)
Definition FileCache.h:87
bool OwnerIdHasBeenSet() const
Definition FileCache.h:51
const Aws::String & GetResourceARN() const
Definition FileCache.h:207
void SetResourceARN(ResourceARNT &&value)
Definition FileCache.h:210
FileCache & WithFileCacheTypeVersion(FileCacheTypeVersionT &&value)
Definition FileCache.h:99
void SetCreationTime(CreationTimeT &&value)
Definition FileCache.h:63
const Aws::Vector< Aws::String > & GetNetworkInterfaceIds() const
Definition FileCache.h:166
FileCache & WithDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:237
FileCache & WithStorageCapacity(int value)
Definition FileCache.h:139
bool CreationTimeHasBeenSet() const
Definition FileCache.h:61
void SetNetworkInterfaceIds(NetworkInterfaceIdsT &&value)
Definition FileCache.h:169
void SetDataRepositoryAssociationIds(DataRepositoryAssociationIdsT &&value)
Definition FileCache.h:235
void SetDNSName(DNSNameT &&value)
Definition FileCache.h:183
void SetSubnetIds(SubnetIdsT &&value)
Definition FileCache.h:157
const Aws::String & GetKmsKeyId() const
Definition FileCache.h:197
bool FileCacheTypeVersionHasBeenSet() const
Definition FileCache.h:95
void SetLifecycle(FileCacheLifecycle value)
Definition FileCache.h:116
const Aws::Vector< Aws::String > & GetDataRepositoryAssociationIds() const
Definition FileCache.h:232
FileCache & WithResourceARN(ResourceARNT &&value)
Definition FileCache.h:212
const Aws::String & GetDNSName() const
Definition FileCache.h:180
void SetFailureDetails(FailureDetailsT &&value)
Definition FileCache.h:127
FileCache & WithVpcId(VpcIdT &&value)
Definition FileCache.h:149
FileCache & WithCreationTime(CreationTimeT &&value)
Definition FileCache.h:65
bool NetworkInterfaceIdsHasBeenSet() const
Definition FileCache.h:167
bool KmsKeyIdHasBeenSet() const
Definition FileCache.h:198
const Aws::String & GetVpcId() const
Definition FileCache.h:144
bool SubnetIdsHasBeenSet() const
Definition FileCache.h:155
AWS_FSX_API FileCache & operator=(Aws::Utils::Json::JsonView jsonValue)
const FileCacheLustreConfiguration & GetLustreConfiguration() const
Definition FileCache.h:219
bool LustreConfigurationHasBeenSet() const
Definition FileCache.h:220
void SetStorageCapacity(int value)
Definition FileCache.h:138
FileCache & WithLifecycle(FileCacheLifecycle value)
Definition FileCache.h:117
void SetLustreConfiguration(LustreConfigurationT &&value)
Definition FileCache.h:222
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue