AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateLocationObjectStorageRequest.h
1
6#pragma once
7#include <aws/datasync/DataSync_EXPORTS.h>
8#include <aws/datasync/DataSyncRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datasync/model/ObjectStorageServerProtocol.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/Array.h>
13#include <aws/datasync/model/CmkSecretConfig.h>
14#include <aws/datasync/model/CustomSecretConfig.h>
15#include <aws/datasync/model/TagListEntry.h>
16#include <utility>
17
18namespace Aws
19{
20namespace DataSync
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_DATASYNC_API CreateLocationObjectStorageRequest() = default;
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "CreateLocationObjectStorage"; }
40
41 AWS_DATASYNC_API Aws::String SerializePayload() const override;
42
44
45
47
51 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
52 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
53 template<typename ServerHostnameT = Aws::String>
54 void SetServerHostname(ServerHostnameT&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::forward<ServerHostnameT>(value); }
55 template<typename ServerHostnameT = Aws::String>
56 CreateLocationObjectStorageRequest& WithServerHostname(ServerHostnameT&& value) { SetServerHostname(std::forward<ServerHostnameT>(value)); return *this;}
58
60
64 inline int GetServerPort() const { return m_serverPort; }
65 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
66 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
67 inline CreateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
69
71
75 inline ObjectStorageServerProtocol GetServerProtocol() const { return m_serverProtocol; }
76 inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
77 inline void SetServerProtocol(ObjectStorageServerProtocol value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
80
82
87 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
88 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
89 template<typename SubdirectoryT = Aws::String>
90 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
91 template<typename SubdirectoryT = Aws::String>
92 CreateLocationObjectStorageRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
94
96
99 inline const Aws::String& GetBucketName() const { return m_bucketName; }
100 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
101 template<typename BucketNameT = Aws::String>
102 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
103 template<typename BucketNameT = Aws::String>
104 CreateLocationObjectStorageRequest& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
106
108
112 inline const Aws::String& GetAccessKey() const { return m_accessKey; }
113 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
114 template<typename AccessKeyT = Aws::String>
115 void SetAccessKey(AccessKeyT&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::forward<AccessKeyT>(value); }
116 template<typename AccessKeyT = Aws::String>
117 CreateLocationObjectStorageRequest& WithAccessKey(AccessKeyT&& value) { SetAccessKey(std::forward<AccessKeyT>(value)); return *this;}
119
121
129 inline const Aws::String& GetSecretKey() const { return m_secretKey; }
130 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
131 template<typename SecretKeyT = Aws::String>
132 void SetSecretKey(SecretKeyT&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::forward<SecretKeyT>(value); }
133 template<typename SecretKeyT = Aws::String>
134 CreateLocationObjectStorageRequest& WithSecretKey(SecretKeyT&& value) { SetSecretKey(std::forward<SecretKeyT>(value)); return *this;}
136
138
146 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
147 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
148 template<typename AgentArnsT = Aws::Vector<Aws::String>>
149 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
150 template<typename AgentArnsT = Aws::Vector<Aws::String>>
151 CreateLocationObjectStorageRequest& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
152 template<typename AgentArnsT = Aws::String>
153 CreateLocationObjectStorageRequest& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
155
157
162 inline const Aws::Vector<TagListEntry>& GetTags() const { return m_tags; }
163 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
164 template<typename TagsT = Aws::Vector<TagListEntry>>
165 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
166 template<typename TagsT = Aws::Vector<TagListEntry>>
167 CreateLocationObjectStorageRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
168 template<typename TagsT = TagListEntry>
169 CreateLocationObjectStorageRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
171
173
191 inline const Aws::Utils::ByteBuffer& GetServerCertificate() const { return m_serverCertificate; }
192 inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; }
193 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
194 void SetServerCertificate(ServerCertificateT&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::forward<ServerCertificateT>(value); }
195 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
196 CreateLocationObjectStorageRequest& WithServerCertificate(ServerCertificateT&& value) { SetServerCertificate(std::forward<ServerCertificateT>(value)); return *this;}
198
200
215 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
216 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
217 template<typename CmkSecretConfigT = CmkSecretConfig>
218 void SetCmkSecretConfig(CmkSecretConfigT&& value) { m_cmkSecretConfigHasBeenSet = true; m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value); }
219 template<typename CmkSecretConfigT = CmkSecretConfig>
220 CreateLocationObjectStorageRequest& WithCmkSecretConfig(CmkSecretConfigT&& value) { SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value)); return *this;}
222
224
234 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
235 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
236 template<typename CustomSecretConfigT = CustomSecretConfig>
237 void SetCustomSecretConfig(CustomSecretConfigT&& value) { m_customSecretConfigHasBeenSet = true; m_customSecretConfig = std::forward<CustomSecretConfigT>(value); }
238 template<typename CustomSecretConfigT = CustomSecretConfig>
239 CreateLocationObjectStorageRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) { SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value)); return *this;}
241 private:
242
243 Aws::String m_serverHostname;
244 bool m_serverHostnameHasBeenSet = false;
245
246 int m_serverPort{0};
247 bool m_serverPortHasBeenSet = false;
248
250 bool m_serverProtocolHasBeenSet = false;
251
252 Aws::String m_subdirectory;
253 bool m_subdirectoryHasBeenSet = false;
254
255 Aws::String m_bucketName;
256 bool m_bucketNameHasBeenSet = false;
257
258 Aws::String m_accessKey;
259 bool m_accessKeyHasBeenSet = false;
260
261 Aws::String m_secretKey;
262 bool m_secretKeyHasBeenSet = false;
263
264 Aws::Vector<Aws::String> m_agentArns;
265 bool m_agentArnsHasBeenSet = false;
266
268 bool m_tagsHasBeenSet = false;
269
270 Aws::Utils::ByteBuffer m_serverCertificate{};
271 bool m_serverCertificateHasBeenSet = false;
272
273 CmkSecretConfig m_cmkSecretConfig;
274 bool m_cmkSecretConfigHasBeenSet = false;
275
276 CustomSecretConfig m_customSecretConfig;
277 bool m_customSecretConfigHasBeenSet = false;
278 };
279
280} // namespace Model
281} // namespace DataSync
282} // namespace Aws
CreateLocationObjectStorageRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
CreateLocationObjectStorageRequest & WithAgentArns(AgentArnsT &&value)
CreateLocationObjectStorageRequest & WithServerCertificate(ServerCertificateT &&value)
CreateLocationObjectStorageRequest & WithBucketName(BucketNameT &&value)
CreateLocationObjectStorageRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
CreateLocationObjectStorageRequest & WithTags(TagsT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateLocationObjectStorageRequest & AddAgentArns(AgentArnsT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
CreateLocationObjectStorageRequest & AddTags(TagsT &&value)
CreateLocationObjectStorageRequest & WithServerProtocol(ObjectStorageServerProtocol value)
CreateLocationObjectStorageRequest & WithSecretKey(SecretKeyT &&value)
CreateLocationObjectStorageRequest & WithServerHostname(ServerHostnameT &&value)
CreateLocationObjectStorageRequest & WithSubdirectory(SubdirectoryT &&value)
CreateLocationObjectStorageRequest & WithAccessKey(AccessKeyT &&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