AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 inline void SetFileSystemId(const Aws::String& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = value; }
46 inline void SetFileSystemId(Aws::String&& value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId = std::move(value); }
47 inline void SetFileSystemId(const char* value) { m_fileSystemIdHasBeenSet = true; m_fileSystemId.assign(value); }
49 inline CreateDataRepositoryAssociationRequest& WithFileSystemId(Aws::String&& value) { SetFileSystemId(std::move(value)); return *this;}
50 inline CreateDataRepositoryAssociationRequest& WithFileSystemId(const char* value) { SetFileSystemId(value); return *this;}
52
54
70 inline const Aws::String& GetFileSystemPath() const{ return m_fileSystemPath; }
71 inline bool FileSystemPathHasBeenSet() const { return m_fileSystemPathHasBeenSet; }
72 inline void SetFileSystemPath(const Aws::String& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = value; }
73 inline void SetFileSystemPath(Aws::String&& value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath = std::move(value); }
74 inline void SetFileSystemPath(const char* value) { m_fileSystemPathHasBeenSet = true; m_fileSystemPath.assign(value); }
77 inline CreateDataRepositoryAssociationRequest& WithFileSystemPath(const char* value) { SetFileSystemPath(value); return *this;}
79
81
88 inline const Aws::String& GetDataRepositoryPath() const{ return m_dataRepositoryPath; }
89 inline bool DataRepositoryPathHasBeenSet() const { return m_dataRepositoryPathHasBeenSet; }
90 inline void SetDataRepositoryPath(const Aws::String& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = value; }
91 inline void SetDataRepositoryPath(Aws::String&& value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath = std::move(value); }
92 inline void SetDataRepositoryPath(const char* value) { m_dataRepositoryPathHasBeenSet = true; m_dataRepositoryPath.assign(value); }
97
99
104 inline bool GetBatchImportMetaDataOnCreate() const{ return m_batchImportMetaDataOnCreate; }
105 inline bool BatchImportMetaDataOnCreateHasBeenSet() const { return m_batchImportMetaDataOnCreateHasBeenSet; }
106 inline void SetBatchImportMetaDataOnCreate(bool value) { m_batchImportMetaDataOnCreateHasBeenSet = true; m_batchImportMetaDataOnCreate = value; }
109
111
119 inline int GetImportedFileChunkSize() const{ return m_importedFileChunkSize; }
120 inline bool ImportedFileChunkSizeHasBeenSet() const { return m_importedFileChunkSizeHasBeenSet; }
121 inline void SetImportedFileChunkSize(int value) { m_importedFileChunkSizeHasBeenSet = true; m_importedFileChunkSize = value; }
124
126
133 inline const S3DataRepositoryConfiguration& GetS3() const{ return m_s3; }
134 inline bool S3HasBeenSet() const { return m_s3HasBeenSet; }
135 inline void SetS3(const S3DataRepositoryConfiguration& value) { m_s3HasBeenSet = true; m_s3 = value; }
136 inline void SetS3(S3DataRepositoryConfiguration&& value) { m_s3HasBeenSet = true; m_s3 = std::move(value); }
138 inline CreateDataRepositoryAssociationRequest& WithS3(S3DataRepositoryConfiguration&& value) { SetS3(std::move(value)); return *this;}
140
142
143 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
144 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
145 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
146 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
147 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
152
154
155 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
156 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
157 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
158 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
159 inline CreateDataRepositoryAssociationRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
160 inline CreateDataRepositoryAssociationRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
161 inline CreateDataRepositoryAssociationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
162 inline CreateDataRepositoryAssociationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
164 private:
165
166 Aws::String m_fileSystemId;
167 bool m_fileSystemIdHasBeenSet = false;
168
169 Aws::String m_fileSystemPath;
170 bool m_fileSystemPathHasBeenSet = false;
171
172 Aws::String m_dataRepositoryPath;
173 bool m_dataRepositoryPathHasBeenSet = false;
174
175 bool m_batchImportMetaDataOnCreate;
176 bool m_batchImportMetaDataOnCreateHasBeenSet = false;
177
178 int m_importedFileChunkSize;
179 bool m_importedFileChunkSizeHasBeenSet = false;
180
182 bool m_s3HasBeenSet = false;
183
184 Aws::String m_clientRequestToken;
185 bool m_clientRequestTokenHasBeenSet = false;
186
187 Aws::Vector<Tag> m_tags;
188 bool m_tagsHasBeenSet = false;
189 };
190
191} // namespace Model
192} // namespace FSx
193} // namespace Aws
CreateDataRepositoryAssociationRequest & AddTags(Tag &&value)
CreateDataRepositoryAssociationRequest & WithBatchImportMetaDataOnCreate(bool value)
CreateDataRepositoryAssociationRequest & WithFileSystemPath(Aws::String &&value)
CreateDataRepositoryAssociationRequest & WithClientRequestToken(Aws::String &&value)
CreateDataRepositoryAssociationRequest & WithDataRepositoryPath(Aws::String &&value)
CreateDataRepositoryAssociationRequest & WithFileSystemId(const char *value)
CreateDataRepositoryAssociationRequest & AddTags(const Tag &value)
CreateDataRepositoryAssociationRequest & WithClientRequestToken(const Aws::String &value)
CreateDataRepositoryAssociationRequest & WithDataRepositoryPath(const Aws::String &value)
CreateDataRepositoryAssociationRequest & WithFileSystemPath(const Aws::String &value)
CreateDataRepositoryAssociationRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDataRepositoryAssociationRequest & WithS3(const S3DataRepositoryConfiguration &value)
CreateDataRepositoryAssociationRequest & WithDataRepositoryPath(const char *value)
CreateDataRepositoryAssociationRequest & WithClientRequestToken(const char *value)
CreateDataRepositoryAssociationRequest & WithTags(const Aws::Vector< Tag > &value)
CreateDataRepositoryAssociationRequest & WithFileSystemPath(const char *value)
AWS_FSX_API Aws::String SerializePayload() const override
CreateDataRepositoryAssociationRequest & WithFileSystemId(Aws::String &&value)
CreateDataRepositoryAssociationRequest & WithFileSystemId(const Aws::String &value)
AWS_FSX_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDataRepositoryAssociationRequest & WithImportedFileChunkSize(int value)
CreateDataRepositoryAssociationRequest & WithS3(S3DataRepositoryConfiguration &&value)
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