AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDataRepositoryAssociationRequest.h
1
6#pragma once
7#include <aws/fsx/FSx_EXPORTS.h>
8#include <aws/fsx/FSxRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fsx/model/S3DataRepositoryConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/fsx/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace FSx
19{
20namespace Model
21{
22
26 {
27 public:
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDataRepositoryAssociation"; }
35
36 AWS_FSX_API Aws::String SerializePayload() const override;
37
39
40
42
43 inline const Aws::String& GetFileSystemId() const { return m_fileSystemId; }
44 inline bool FileSystemIdHasBeenSet() const { return m_fileSystemIdHasBeenSet; }
45 template<typename FileSystemIdT = Aws::String>
46 void SetFileSystemId(FileSystemIdT&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::forward<FileSystemIdT>(value); }
47 template<typename FileSystemIdT = Aws::String>
48 CreateDataRepositoryAssociationRequest& WithFileSystemId(FileSystemIdT&& value) { SetFileSystemId(std::forward<FileSystemIdT>(value)); return *this;}
50
52
68 inline const Aws::String& GetFileSystemPath() const { return m_fileSystemPath; }
69 inline bool FileSystemPathHasBeenSet() const { return m_fileSystemPathHasBeenSet; }
70 template<typename FileSystemPathT = Aws::String>
71 void SetFileSystemPath(FileSystemPathT&& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = std::forward<FileSystemPathT>(value); }
72 template<typename FileSystemPathT = Aws::String>
73 CreateDataRepositoryAssociationRequest& WithFileSystemPath(FileSystemPathT&& value) { SetFileSystemPath(std::forward<FileSystemPathT>(value)); return *this;}
75
77
84 inline const Aws::String& GetDataRepositoryPath() const { return m_dataRepositoryPath; }
85 inline bool DataRepositoryPathHasBeenSet() const { return m_dataRepositoryPathHasBeenSet; }
86 template<typename DataRepositoryPathT = Aws::String>
87 void SetDataRepositoryPath(DataRepositoryPathT&& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = std::forward<DataRepositoryPathT>(value); }
88 template<typename DataRepositoryPathT = Aws::String>
89 CreateDataRepositoryAssociationRequest& WithDataRepositoryPath(DataRepositoryPathT&& value) { SetDataRepositoryPath(std::forward<DataRepositoryPathT>(value)); return *this;}
91
93
98 inline bool GetBatchImportMetaDataOnCreate() const { return m_batchImportMetaDataOnCreate; }
99 inline bool BatchImportMetaDataOnCreateHasBeenSet() const { return m_batchImportMetaDataOnCreateHasBeenSet; }
100 inline void SetBatchImportMetaDataOnCreate(bool value) { m_batchImportMetaDataOnCreateHasBeenSet = true; m_batchImportMetaDataOnCreate = value; }
103
105
113 inline int GetImportedFileChunkSize() const { return m_importedFileChunkSize; }
114 inline bool ImportedFileChunkSizeHasBeenSet() const { return m_importedFileChunkSizeHasBeenSet; }
115 inline void SetImportedFileChunkSize(int value) { m_importedFileChunkSizeHasBeenSet = true; m_importedFileChunkSize = value; }
118
120
127 inline const S3DataRepositoryConfiguration& GetS3() const { return m_s3; }
128 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
129 template<typename S3T = S3DataRepositoryConfiguration>
130 void SetS3(S3T&& value) { m_s3HasBeenSet = true; m_s3 = std::forward<S3T>(value); }
131 template<typename S3T = S3DataRepositoryConfiguration>
132 CreateDataRepositoryAssociationRequest& WithS3(S3T&& value) { SetS3(std::forward<S3T>(value)); return *this;}
134
136
137 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
138 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
139 template<typename ClientRequestTokenT = Aws::String>
140 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
141 template<typename ClientRequestTokenT = Aws::String>
142 CreateDataRepositoryAssociationRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
144
146
147 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template<typename TagsT = Aws::Vector<Tag>>
150 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
151 template<typename TagsT = Aws::Vector<Tag>>
152 CreateDataRepositoryAssociationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
153 template<typename TagsT = Tag>
154 CreateDataRepositoryAssociationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
156 private:
157
158 Aws::String m_fileSystemId;
159 bool m_fileSystemIdHasBeenSet = false;
160
161 Aws::String m_fileSystemPath;
162 bool m_fileSystemPathHasBeenSet = false;
163
164 Aws::String m_dataRepositoryPath;
165 bool m_dataRepositoryPathHasBeenSet = false;
166
167 bool m_batchImportMetaDataOnCreate{false};
168 bool m_batchImportMetaDataOnCreateHasBeenSet = false;
169
170 int m_importedFileChunkSize{0};
171 bool m_importedFileChunkSizeHasBeenSet = false;
172
173 S3DataRepositoryConfiguration m_s3;
174 bool m_s3HasBeenSet = false;
175
176 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
177 bool m_clientRequestTokenHasBeenSet = true;
178
179 Aws::Vector<Tag> m_tags;
180 bool m_tagsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace FSx
185} // namespace Aws
CreateDataRepositoryAssociationRequest & WithBatchImportMetaDataOnCreate(bool value)
CreateDataRepositoryAssociationRequest & AddTags(TagsT &&value)
CreateDataRepositoryAssociationRequest & WithTags(TagsT &&value)
CreateDataRepositoryAssociationRequest & WithDataRepositoryPath(DataRepositoryPathT &&value)
CreateDataRepositoryAssociationRequest & WithFileSystemPath(FileSystemPathT &&value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateDataRepositoryAssociationRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDataRepositoryAssociationRequest & WithImportedFileChunkSize(int value)
CreateDataRepositoryAssociationRequest & WithFileSystemId(FileSystemIdT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector