AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DataRepositoryAssociation.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fsx/model/DataRepositoryLifecycle.h>
10#include <aws/fsx/model/DataRepositoryFailureDetails.h>
11#include <aws/fsx/model/S3DataRepositoryConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/fsx/model/NFSDataRepositoryConfiguration.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
48 {
49 public:
50 AWS_FSX_API DataRepositoryAssociation() = default;
54
55
57
60 inline const Aws::String& GetAssociationId() const { return m_associationId; }
61 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
62 template<typename AssociationIdT = Aws::String>
63 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
64 template<typename AssociationIdT = Aws::String>
65 DataRepositoryAssociation& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
67
69
70 inline const Aws::String& GetResourceARN() const { return m_resourceARN; }
71 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
72 template<typename ResourceARNT = Aws::String>
73 void SetResourceARN(ResourceARNT&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::forward<ResourceARNT>(value); }
74 template<typename ResourceARNT = Aws::String>
75 DataRepositoryAssociation& WithResourceARN(ResourceARNT&& value) { SetResourceARN(std::forward<ResourceARNT>(value)); return *this;}
77
79
80 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
81 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
82 template<typename FileSystemIdT = Aws::String>
83 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
84 template<typename FileSystemIdT = Aws::String>
85 DataRepositoryAssociation& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
87
89
105 inline DataRepositoryLifecycle GetLifecycle() const { return m_lifecycle; }
106 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
107 inline void SetLifecycle(DataRepositoryLifecycle value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
110
112
113 inline const DataRepositoryFailureDetails& GetFailureDetails() const { return m_failureDetails; }
114 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
115 template<typename FailureDetailsT = DataRepositoryFailureDetails>
116 void SetFailureDetails(FailureDetailsT&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::forward<FailureDetailsT>(value); }
117 template<typename FailureDetailsT = DataRepositoryFailureDetails>
118 DataRepositoryAssociation& WithFailureDetails(FailureDetailsT&& value) { SetFailureDetails(std::forward<FailureDetailsT>(value)); return *this;}
120
122
138 inline const Aws::String& GetFileSystemPath() const { return m_fileSystemPath; }
139 inline bool FileSystemPathHasBeenSet() const { return m_fileSystemPathHasBeenSet; }
140 template<typename FileSystemPathT = Aws::String>
141 void SetFileSystemPath(FileSystemPathT&& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = std::forward<FileSystemPathT>(value); }
142 template<typename FileSystemPathT = Aws::String>
143 DataRepositoryAssociation& WithFileSystemPath(FileSystemPathT&& value) { SetFileSystemPath(std::forward<FileSystemPathT>(value)); return *this;}
145
147
167 inline const Aws::String& GetDataRepositoryPath() const { return m_dataRepositoryPath; }
168 inline bool DataRepositoryPathHasBeenSet() const { return m_dataRepositoryPathHasBeenSet; }
169 template<typename DataRepositoryPathT = Aws::String>
170 void SetDataRepositoryPath(DataRepositoryPathT&& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = std::forward<DataRepositoryPathT>(value); }
171 template<typename DataRepositoryPathT = Aws::String>
172 DataRepositoryAssociation& WithDataRepositoryPath(DataRepositoryPathT&& value) { SetDataRepositoryPath(std::forward<DataRepositoryPathT>(value)); return *this;}
174
176
183 inline bool GetBatchImportMetaDataOnCreate() const { return m_batchImportMetaDataOnCreate; }
184 inline bool BatchImportMetaDataOnCreateHasBeenSet() const { return m_batchImportMetaDataOnCreateHasBeenSet; }
185 inline void SetBatchImportMetaDataOnCreate(bool value) { m_batchImportMetaDataOnCreateHasBeenSet = true; m_batchImportMetaDataOnCreate = value; }
188
190
198 inline int GetImportedFileChunkSize() const { return m_importedFileChunkSize; }
199 inline bool ImportedFileChunkSizeHasBeenSet() const { return m_importedFileChunkSizeHasBeenSet; }
200 inline void SetImportedFileChunkSize(int value) { m_importedFileChunkSizeHasBeenSet = true; m_importedFileChunkSize = value; }
203
205
209 inline const S3DataRepositoryConfiguration& GetS3() const { return m_s3; }
210 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
211 template<typename S3T = S3DataRepositoryConfiguration>
212 void SetS3(S3T&& value) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
213 template<typename S3T = S3DataRepositoryConfiguration>
214 DataRepositoryAssociation& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
216
218
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 DataRepositoryAssociation& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 DataRepositoryAssociation& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228
230
231 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
232 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
233 template<typename CreationTimeT = Aws::Utils::DateTime>
234 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
235 template<typename CreationTimeT = Aws::Utils::DateTime>
236 DataRepositoryAssociation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
238
240
243 inline const Aws::String& GetFileCacheId() const { return m_fileCacheId; }
244 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
245 template<typename FileCacheIdT = Aws::String>
246 void SetFileCacheId(FileCacheIdT&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::forward<FileCacheIdT>(value); }
247 template<typename FileCacheIdT = Aws::String>
248 DataRepositoryAssociation& WithFileCacheId(FileCacheIdT&& value) { SetFileCacheId(std::forward<FileCacheIdT>(value)); return *this;}
250
252
268 inline const Aws::String& GetFileCachePath() const { return m_fileCachePath; }
269 inline bool FileCachePathHasBeenSet() const { return m_fileCachePathHasBeenSet; }
270 template<typename FileCachePathT = Aws::String>
271 void SetFileCachePath(FileCachePathT&& value) { m_fileCachePathHasBeenSet = true; m_fileCachePath = std::forward<FileCachePathT>(value); }
272 template<typename FileCachePathT = Aws::String>
273 DataRepositoryAssociation& WithFileCachePath(FileCachePathT&& value) { SetFileCachePath(std::forward<FileCachePathT>(value)); return *this;}
275
277
286 inline const Aws::Vector<Aws::String>& GetDataRepositorySubdirectories() const { return m_dataRepositorySubdirectories; }
287 inline bool DataRepositorySubdirectoriesHasBeenSet() const { return m_dataRepositorySubdirectoriesHasBeenSet; }
288 template<typename DataRepositorySubdirectoriesT = Aws::Vector<Aws::String>>
289 void SetDataRepositorySubdirectories(DataRepositorySubdirectoriesT&& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories = std::forward<DataRepositorySubdirectoriesT>(value); }
290 template<typename DataRepositorySubdirectoriesT = Aws::Vector<Aws::String>>
291 DataRepositoryAssociation& WithDataRepositorySubdirectories(DataRepositorySubdirectoriesT&& value) { SetDataRepositorySubdirectories(std::forward<DataRepositorySubdirectoriesT>(value)); return *this;}
292 template<typename DataRepositorySubdirectoriesT = Aws::String>
293 DataRepositoryAssociation& AddDataRepositorySubdirectories(DataRepositorySubdirectoriesT&& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories.emplace_back(std::forward<DataRepositorySubdirectoriesT>(value)); return *this; }
295
297
301 inline const NFSDataRepositoryConfiguration& GetNFS() const { return m_nFS; }
302 inline bool NFSHasBeenSet() const { return m_nFSHasBeenSet; }
303 template<typename NFST = NFSDataRepositoryConfiguration>
304 void SetNFS(NFST&& value) { m_nFSHasBeenSet = true; m_nFS = std::forward<NFST>(value); }
305 template<typename NFST = NFSDataRepositoryConfiguration>
306 DataRepositoryAssociation& WithNFS(NFST&& value) { SetNFS(std::forward<NFST>(value)); return *this;}
308 private:
309
310 Aws::String m_associationId;
311 bool m_associationIdHasBeenSet = false;
312
313 Aws::String m_resourceARN;
314 bool m_resourceARNHasBeenSet = false;
315
316 Aws::String m_fileSystemId;
317 bool m_fileSystemIdHasBeenSet = false;
318
320 bool m_lifecycleHasBeenSet = false;
321
322 DataRepositoryFailureDetails m_failureDetails;
323 bool m_failureDetailsHasBeenSet = false;
324
325 Aws::String m_fileSystemPath;
326 bool m_fileSystemPathHasBeenSet = false;
327
328 Aws::String m_dataRepositoryPath;
329 bool m_dataRepositoryPathHasBeenSet = false;
330
331 bool m_batchImportMetaDataOnCreate{false};
332 bool m_batchImportMetaDataOnCreateHasBeenSet = false;
333
334 int m_importedFileChunkSize{0};
335 bool m_importedFileChunkSizeHasBeenSet = false;
336
337 S3DataRepositoryConfiguration m_s3;
338 bool m_s3HasBeenSet = false;
339
340 Aws::Vector<Tag> m_tags;
341 bool m_tagsHasBeenSet = false;
342
343 Aws::Utils::DateTime m_creationTime{};
344 bool m_creationTimeHasBeenSet = false;
345
346 Aws::String m_fileCacheId;
347 bool m_fileCacheIdHasBeenSet = false;
348
349 Aws::String m_fileCachePath;
350 bool m_fileCachePathHasBeenSet = false;
351
352 Aws::Vector<Aws::String> m_dataRepositorySubdirectories;
353 bool m_dataRepositorySubdirectoriesHasBeenSet = false;
354
355 NFSDataRepositoryConfiguration m_nFS;
356 bool m_nFSHasBeenSet = false;
357 };
358
359} // namespace Model
360} // namespace FSx
361} // namespace Aws
DataRepositoryAssociation & WithCreationTime(CreationTimeT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
DataRepositoryAssociation & AddTags(TagsT &&value)
DataRepositoryAssociation & WithDataRepositorySubdirectories(DataRepositorySubdirectoriesT &&value)
DataRepositoryAssociation & WithFileSystemId(FileSystemIdT &&value)
DataRepositoryAssociation & WithResourceARN(ResourceARNT &&value)
DataRepositoryAssociation & WithLifecycle(DataRepositoryLifecycle value)
void SetDataRepositoryPath(DataRepositoryPathT &&value)
DataRepositoryAssociation & WithBatchImportMetaDataOnCreate(bool value)
const DataRepositoryFailureDetails & GetFailureDetails() const
const S3DataRepositoryConfiguration & GetS3() const
DataRepositoryAssociation & WithTags(TagsT &&value)
const NFSDataRepositoryConfiguration & GetNFS() const
const Aws::Vector< Aws::String > & GetDataRepositorySubdirectories() const
DataRepositoryAssociation & WithDataRepositoryPath(DataRepositoryPathT &&value)
DataRepositoryAssociation & WithS3(S3T &&value)
AWS_FSX_API DataRepositoryAssociation()=default
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
DataRepositoryAssociation & WithAssociationId(AssociationIdT &&value)
DataRepositoryAssociation & WithImportedFileChunkSize(int value)
DataRepositoryAssociation & WithFailureDetails(FailureDetailsT &&value)
AWS_FSX_API DataRepositoryAssociation(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryAssociation & AddDataRepositorySubdirectories(DataRepositorySubdirectoriesT &&value)
DataRepositoryAssociation & WithFileSystemPath(FileSystemPathT &&value)
DataRepositoryAssociation & WithFileCacheId(FileCacheIdT &&value)
DataRepositoryAssociation & WithNFS(NFST &&value)
DataRepositoryAssociation & WithFileCachePath(FileCachePathT &&value)
AWS_FSX_API DataRepositoryAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDataRepositorySubdirectories(DataRepositorySubdirectoriesT &&value)
void SetLifecycle(DataRepositoryLifecycle value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue