AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
54
55
57
60 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
61 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
62 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
63 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
64 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
65 inline DataRepositoryAssociation& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
66 inline DataRepositoryAssociation& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
67 inline DataRepositoryAssociation& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
69
71
72 inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
73 inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
74 inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
75 inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
76 inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
77 inline DataRepositoryAssociation& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
78 inline DataRepositoryAssociation& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
79 inline DataRepositoryAssociation& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
81
83
84 inline const Aws::String& GetFileSystemId() const{ return m_fileSystemId; }
85 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
86 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
87 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
88 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
89 inline DataRepositoryAssociation& WithFileSystemId(const Aws::String& value) { SetFileSystemId(value); return *this;}
90 inline DataRepositoryAssociation& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
91 inline DataRepositoryAssociation& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
93
95
111 inline const DataRepositoryLifecycle& GetLifecycle() const{ return m_lifecycle; }
112 inline bool LifecycleHasBeenSet() const { return m_lifecycleHasBeenSet; }
113 inline void SetLifecycle(const DataRepositoryLifecycle& value) { m_lifecycleHasBeenSet = true; m_lifecycle = value; }
114 inline void SetLifecycle(DataRepositoryLifecycle&& value) { m_lifecycleHasBeenSet = true; m_lifecycle = std::move(value); }
116 inline DataRepositoryAssociation& WithLifecycle(DataRepositoryLifecycle&& value) { SetLifecycle(std::move(value)); return *this;}
118
120
121 inline const DataRepositoryFailureDetails& GetFailureDetails() const{ return m_failureDetails; }
122 inline bool FailureDetailsHasBeenSet() const { return m_failureDetailsHasBeenSet; }
123 inline void SetFailureDetails(const DataRepositoryFailureDetails& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = value; }
124 inline void SetFailureDetails(DataRepositoryFailureDetails&& value) { m_failureDetailsHasBeenSet = true; m_failureDetails = std::move(value); }
128
130
146 inline const Aws::String& GetFileSystemPath() const{ return m_fileSystemPath; }
147 inline bool FileSystemPathHasBeenSet() const { return m_fileSystemPathHasBeenSet; }
148 inline void SetFileSystemPath(const Aws::String& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = value; }
149 inline void SetFileSystemPath(Aws::String&& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = std::move(value); }
150 inline void SetFileSystemPath(const char* value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath.assign(value); }
151 inline DataRepositoryAssociation& WithFileSystemPath(const Aws::String& value) { SetFileSystemPath(value); return *this;}
152 inline DataRepositoryAssociation& WithFileSystemPath(Aws::String&& value) { SetFileSystemPath(std::move(value)); return *this;}
153 inline DataRepositoryAssociation& WithFileSystemPath(const char* value) { SetFileSystemPath(value); return *this;}
155
157
177 inline const Aws::String& GetDataRepositoryPath() const{ return m_dataRepositoryPath; }
178 inline bool DataRepositoryPathHasBeenSet() const { return m_dataRepositoryPathHasBeenSet; }
179 inline void SetDataRepositoryPath(const Aws::String& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = value; }
180 inline void SetDataRepositoryPath(Aws::String&& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = std::move(value); }
181 inline void SetDataRepositoryPath(const char* value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath.assign(value); }
183 inline DataRepositoryAssociation& WithDataRepositoryPath(Aws::String&& value) { SetDataRepositoryPath(std::move(value)); return *this;}
184 inline DataRepositoryAssociation& WithDataRepositoryPath(const char* value) { SetDataRepositoryPath(value); return *this;}
186
188
195 inline bool GetBatchImportMetaDataOnCreate() const{ return m_batchImportMetaDataOnCreate; }
196 inline bool BatchImportMetaDataOnCreateHasBeenSet() const { return m_batchImportMetaDataOnCreateHasBeenSet; }
197 inline void SetBatchImportMetaDataOnCreate(bool value) { m_batchImportMetaDataOnCreateHasBeenSet = true; m_batchImportMetaDataOnCreate = value; }
200
202
210 inline int GetImportedFileChunkSize() const{ return m_importedFileChunkSize; }
211 inline bool ImportedFileChunkSizeHasBeenSet() const { return m_importedFileChunkSizeHasBeenSet; }
212 inline void SetImportedFileChunkSize(int value) { m_importedFileChunkSizeHasBeenSet = true; m_importedFileChunkSize = value; }
215
217
221 inline const S3DataRepositoryConfiguration& GetS3() const{ return m_s3; }
222 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
223 inline void SetS3(const S3DataRepositoryConfiguration& value) { m_s3HasBeenSet = true; m_s3 = value; }
224 inline void SetS3(S3DataRepositoryConfiguration&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
225 inline DataRepositoryAssociation& WithS3(const S3DataRepositoryConfiguration& value) { SetS3(value); return *this;}
226 inline DataRepositoryAssociation& WithS3(S3DataRepositoryConfiguration&& value) { SetS3(std::move(value)); return *this;}
228
230
231 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
235 inline DataRepositoryAssociation& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
236 inline DataRepositoryAssociation& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
237 inline DataRepositoryAssociation& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 inline DataRepositoryAssociation& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
240
242
243 inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; }
244 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
245 inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
246 inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); }
248 inline DataRepositoryAssociation& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;}
250
252
255 inline const Aws::String& GetFileCacheId() const{ return m_fileCacheId; }
256 inline bool FileCacheIdHasBeenSet() const { return m_fileCacheIdHasBeenSet; }
257 inline void SetFileCacheId(const Aws::String& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = value; }
258 inline void SetFileCacheId(Aws::String&& value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId = std::move(value); }
259 inline void SetFileCacheId(const char* value) { m_fileCacheIdHasBeenSet = true; m_fileCacheId.assign(value); }
260 inline DataRepositoryAssociation& WithFileCacheId(const Aws::String& value) { SetFileCacheId(value); return *this;}
261 inline DataRepositoryAssociation& WithFileCacheId(Aws::String&& value) { SetFileCacheId(std::move(value)); return *this;}
262 inline DataRepositoryAssociation& WithFileCacheId(const char* value) { SetFileCacheId(value); return *this;}
264
266
282 inline const Aws::String& GetFileCachePath() const{ return m_fileCachePath; }
283 inline bool FileCachePathHasBeenSet() const { return m_fileCachePathHasBeenSet; }
284 inline void SetFileCachePath(const Aws::String& value) { m_fileCachePathHasBeenSet = true; m_fileCachePath = value; }
285 inline void SetFileCachePath(Aws::String&& value) { m_fileCachePathHasBeenSet = true; m_fileCachePath = std::move(value); }
286 inline void SetFileCachePath(const char* value) { m_fileCachePathHasBeenSet = true; m_fileCachePath.assign(value); }
287 inline DataRepositoryAssociation& WithFileCachePath(const Aws::String& value) { SetFileCachePath(value); return *this;}
288 inline DataRepositoryAssociation& WithFileCachePath(Aws::String&& value) { SetFileCachePath(std::move(value)); return *this;}
289 inline DataRepositoryAssociation& WithFileCachePath(const char* value) { SetFileCachePath(value); return *this;}
291
293
302 inline const Aws::Vector<Aws::String>& GetDataRepositorySubdirectories() const{ return m_dataRepositorySubdirectories; }
303 inline bool DataRepositorySubdirectoriesHasBeenSet() const { return m_dataRepositorySubdirectoriesHasBeenSet; }
304 inline void SetDataRepositorySubdirectories(const Aws::Vector<Aws::String>& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories = value; }
305 inline void SetDataRepositorySubdirectories(Aws::Vector<Aws::String>&& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories = std::move(value); }
308 inline DataRepositoryAssociation& AddDataRepositorySubdirectories(const Aws::String& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories.push_back(value); return *this; }
309 inline DataRepositoryAssociation& AddDataRepositorySubdirectories(Aws::String&& value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories.push_back(std::move(value)); return *this; }
310 inline DataRepositoryAssociation& AddDataRepositorySubdirectories(const char* value) { m_dataRepositorySubdirectoriesHasBeenSet = true; m_dataRepositorySubdirectories.push_back(value); return *this; }
312
314
318 inline const NFSDataRepositoryConfiguration& GetNFS() const{ return m_nFS; }
319 inline bool NFSHasBeenSet() const { return m_nFSHasBeenSet; }
320 inline void SetNFS(const NFSDataRepositoryConfiguration& value) { m_nFSHasBeenSet = true; m_nFS = value; }
321 inline void SetNFS(NFSDataRepositoryConfiguration&& value) { m_nFSHasBeenSet = true; m_nFS = std::move(value); }
322 inline DataRepositoryAssociation& WithNFS(const NFSDataRepositoryConfiguration& value) { SetNFS(value); return *this;}
323 inline DataRepositoryAssociation& WithNFS(NFSDataRepositoryConfiguration&& value) { SetNFS(std::move(value)); return *this;}
325 private:
326
327 Aws::String m_associationId;
328 bool m_associationIdHasBeenSet = false;
329
330 Aws::String m_resourceARN;
331 bool m_resourceARNHasBeenSet = false;
332
333 Aws::String m_fileSystemId;
334 bool m_fileSystemIdHasBeenSet = false;
335
336 DataRepositoryLifecycle m_lifecycle;
337 bool m_lifecycleHasBeenSet = false;
338
339 DataRepositoryFailureDetails m_failureDetails;
340 bool m_failureDetailsHasBeenSet = false;
341
342 Aws::String m_fileSystemPath;
343 bool m_fileSystemPathHasBeenSet = false;
344
345 Aws::String m_dataRepositoryPath;
346 bool m_dataRepositoryPathHasBeenSet = false;
347
348 bool m_batchImportMetaDataOnCreate;
349 bool m_batchImportMetaDataOnCreateHasBeenSet = false;
350
351 int m_importedFileChunkSize;
352 bool m_importedFileChunkSizeHasBeenSet = false;
353
355 bool m_s3HasBeenSet = false;
356
357 Aws::Vector<Tag> m_tags;
358 bool m_tagsHasBeenSet = false;
359
360 Aws::Utils::DateTime m_creationTime;
361 bool m_creationTimeHasBeenSet = false;
362
363 Aws::String m_fileCacheId;
364 bool m_fileCacheIdHasBeenSet = false;
365
366 Aws::String m_fileCachePath;
367 bool m_fileCachePathHasBeenSet = false;
368
369 Aws::Vector<Aws::String> m_dataRepositorySubdirectories;
370 bool m_dataRepositorySubdirectoriesHasBeenSet = false;
371
373 bool m_nFSHasBeenSet = false;
374 };
375
376} // namespace Model
377} // namespace FSx
378} // namespace Aws
DataRepositoryAssociation & WithLifecycle(DataRepositoryLifecycle &&value)
DataRepositoryAssociation & WithDataRepositoryPath(Aws::String &&value)
void SetNFS(const NFSDataRepositoryConfiguration &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::Utils::DateTime & GetCreationTime() const
DataRepositoryAssociation & WithAssociationId(const char *value)
DataRepositoryAssociation & WithFileSystemPath(const Aws::String &value)
void SetDataRepositorySubdirectories(const Aws::Vector< Aws::String > &value)
DataRepositoryAssociation & WithFileCacheId(const Aws::String &value)
DataRepositoryAssociation & WithLifecycle(const DataRepositoryLifecycle &value)
DataRepositoryAssociation & AddTags(Tag &&value)
DataRepositoryAssociation & WithS3(const S3DataRepositoryConfiguration &value)
DataRepositoryAssociation & WithFileSystemId(Aws::String &&value)
void SetFailureDetails(DataRepositoryFailureDetails &&value)
DataRepositoryAssociation & WithFileCacheId(const char *value)
DataRepositoryAssociation & WithCreationTime(Aws::Utils::DateTime &&value)
DataRepositoryAssociation & WithFileCacheId(Aws::String &&value)
DataRepositoryAssociation & WithBatchImportMetaDataOnCreate(bool value)
DataRepositoryAssociation & WithNFS(const NFSDataRepositoryConfiguration &value)
const DataRepositoryFailureDetails & GetFailureDetails() const
DataRepositoryAssociation & AddDataRepositorySubdirectories(const Aws::String &value)
const S3DataRepositoryConfiguration & GetS3() const
DataRepositoryAssociation & WithResourceARN(const char *value)
void SetCreationTime(Aws::Utils::DateTime &&value)
DataRepositoryAssociation & WithCreationTime(const Aws::Utils::DateTime &value)
const NFSDataRepositoryConfiguration & GetNFS() const
DataRepositoryAssociation & WithFileSystemId(const Aws::String &value)
DataRepositoryAssociation & AddDataRepositorySubdirectories(Aws::String &&value)
DataRepositoryAssociation & WithFailureDetails(const DataRepositoryFailureDetails &value)
void SetNFS(NFSDataRepositoryConfiguration &&value)
DataRepositoryAssociation & WithNFS(NFSDataRepositoryConfiguration &&value)
const Aws::Vector< Aws::String > & GetDataRepositorySubdirectories() const
const DataRepositoryLifecycle & GetLifecycle() const
void SetLifecycle(DataRepositoryLifecycle &&value)
void SetS3(S3DataRepositoryConfiguration &&value)
DataRepositoryAssociation & WithFileSystemPath(const char *value)
DataRepositoryAssociation & WithAssociationId(Aws::String &&value)
AWS_FSX_API Aws::Utils::Json::JsonValue Jsonize() const
DataRepositoryAssociation & WithDataRepositorySubdirectories(Aws::Vector< Aws::String > &&value)
DataRepositoryAssociation & WithFileSystemId(const char *value)
DataRepositoryAssociation & WithImportedFileChunkSize(int value)
void SetFailureDetails(const DataRepositoryFailureDetails &value)
DataRepositoryAssociation & WithDataRepositoryPath(const char *value)
DataRepositoryAssociation & WithFileCachePath(const char *value)
DataRepositoryAssociation & WithFileCachePath(const Aws::String &value)
DataRepositoryAssociation & WithDataRepositoryPath(const Aws::String &value)
AWS_FSX_API DataRepositoryAssociation(Aws::Utils::Json::JsonView jsonValue)
DataRepositoryAssociation & WithAssociationId(const Aws::String &value)
DataRepositoryAssociation & AddDataRepositorySubdirectories(const char *value)
void SetDataRepositorySubdirectories(Aws::Vector< Aws::String > &&value)
void SetS3(const S3DataRepositoryConfiguration &value)
DataRepositoryAssociation & WithS3(S3DataRepositoryConfiguration &&value)
void SetCreationTime(const Aws::Utils::DateTime &value)
DataRepositoryAssociation & WithTags(const Aws::Vector< Tag > &value)
DataRepositoryAssociation & WithResourceARN(const Aws::String &value)
DataRepositoryAssociation & WithDataRepositorySubdirectories(const Aws::Vector< Aws::String > &value)
DataRepositoryAssociation & WithFailureDetails(DataRepositoryFailureDetails &&value)
DataRepositoryAssociation & WithTags(Aws::Vector< Tag > &&value)
DataRepositoryAssociation & WithFileCachePath(Aws::String &&value)
DataRepositoryAssociation & AddTags(const Tag &value)
void SetLifecycle(const DataRepositoryLifecycle &value)
DataRepositoryAssociation & WithFileSystemPath(Aws::String &&value)
DataRepositoryAssociation & WithResourceARN(Aws::String &&value)
AWS_FSX_API DataRepositoryAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue