AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateLocationObjectStorageRequest.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 <utility>
16
17namespace Aws
18{
19namespace DataSync
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_DATASYNC_API UpdateLocationObjectStorageRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateLocationObjectStorage"; }
36
37 AWS_DATASYNC_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetLocationArn() const { return m_locationArn; }
48 inline bool LocationArnHasBeenSet() const { return m_locationArnHasBeenSet; }
49 template<typename LocationArnT = Aws::String>
50 void SetLocationArn(LocationArnT&& value) { m_locationArnHasBeenSet = true; m_locationArn = std::forward<LocationArnT>(value); }
51 template<typename LocationArnT = Aws::String>
52 UpdateLocationObjectStorageRequest& WithLocationArn(LocationArnT&& value) { SetLocationArn(std::forward<LocationArnT>(value)); return *this;}
54
56
60 inline int GetServerPort() const { return m_serverPort; }
61 inline bool ServerPortHasBeenSet() const { return m_serverPortHasBeenSet; }
62 inline void SetServerPort(int value) { m_serverPortHasBeenSet = true; m_serverPort = value; }
63 inline UpdateLocationObjectStorageRequest& WithServerPort(int value) { SetServerPort(value); return *this;}
65
67
71 inline ObjectStorageServerProtocol GetServerProtocol() const { return m_serverProtocol; }
72 inline bool ServerProtocolHasBeenSet() const { return m_serverProtocolHasBeenSet; }
73 inline void SetServerProtocol(ObjectStorageServerProtocol value) { m_serverProtocolHasBeenSet = true; m_serverProtocol = value; }
76
78
83 inline const Aws::String& GetSubdirectory() const { return m_subdirectory; }
84 inline bool SubdirectoryHasBeenSet() const { return m_subdirectoryHasBeenSet; }
85 template<typename SubdirectoryT = Aws::String>
86 void SetSubdirectory(SubdirectoryT&& value) { m_subdirectoryHasBeenSet = true; m_subdirectory = std::forward<SubdirectoryT>(value); }
87 template<typename SubdirectoryT = Aws::String>
88 UpdateLocationObjectStorageRequest& WithSubdirectory(SubdirectoryT&& value) { SetSubdirectory(std::forward<SubdirectoryT>(value)); return *this;}
90
92
96 inline const Aws::String& GetServerHostname() const { return m_serverHostname; }
97 inline bool ServerHostnameHasBeenSet() const { return m_serverHostnameHasBeenSet; }
98 template<typename ServerHostnameT = Aws::String>
99 void SetServerHostname(ServerHostnameT&& value) { m_serverHostnameHasBeenSet = true; m_serverHostname = std::forward<ServerHostnameT>(value); }
100 template<typename ServerHostnameT = Aws::String>
101 UpdateLocationObjectStorageRequest& WithServerHostname(ServerHostnameT&& value) { SetServerHostname(std::forward<ServerHostnameT>(value)); return *this;}
103
105
109 inline const Aws::String& GetAccessKey() const { return m_accessKey; }
110 inline bool AccessKeyHasBeenSet() const { return m_accessKeyHasBeenSet; }
111 template<typename AccessKeyT = Aws::String>
112 void SetAccessKey(AccessKeyT&& value) { m_accessKeyHasBeenSet = true; m_accessKey = std::forward<AccessKeyT>(value); }
113 template<typename AccessKeyT = Aws::String>
114 UpdateLocationObjectStorageRequest& WithAccessKey(AccessKeyT&& value) { SetAccessKey(std::forward<AccessKeyT>(value)); return *this;}
116
118
126 inline const Aws::String& GetSecretKey() const { return m_secretKey; }
127 inline bool SecretKeyHasBeenSet() const { return m_secretKeyHasBeenSet; }
128 template<typename SecretKeyT = Aws::String>
129 void SetSecretKey(SecretKeyT&& value) { m_secretKeyHasBeenSet = true; m_secretKey = std::forward<SecretKeyT>(value); }
130 template<typename SecretKeyT = Aws::String>
131 UpdateLocationObjectStorageRequest& WithSecretKey(SecretKeyT&& value) { SetSecretKey(std::forward<SecretKeyT>(value)); return *this;}
133
135
142 inline const Aws::Vector<Aws::String>& GetAgentArns() const { return m_agentArns; }
143 inline bool AgentArnsHasBeenSet() const { return m_agentArnsHasBeenSet; }
144 template<typename AgentArnsT = Aws::Vector<Aws::String>>
145 void SetAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns = std::forward<AgentArnsT>(value); }
146 template<typename AgentArnsT = Aws::Vector<Aws::String>>
147 UpdateLocationObjectStorageRequest& WithAgentArns(AgentArnsT&& value) { SetAgentArns(std::forward<AgentArnsT>(value)); return *this;}
148 template<typename AgentArnsT = Aws::String>
149 UpdateLocationObjectStorageRequest& AddAgentArns(AgentArnsT&& value) { m_agentArnsHasBeenSet = true; m_agentArns.emplace_back(std::forward<AgentArnsT>(value)); return *this; }
151
153
172 inline const Aws::Utils::ByteBuffer& GetServerCertificate() const { return m_serverCertificate; }
173 inline bool ServerCertificateHasBeenSet() const { return m_serverCertificateHasBeenSet; }
174 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
175 void SetServerCertificate(ServerCertificateT&& value) { m_serverCertificateHasBeenSet = true; m_serverCertificate = std::forward<ServerCertificateT>(value); }
176 template<typename ServerCertificateT = Aws::Utils::ByteBuffer>
177 UpdateLocationObjectStorageRequest& WithServerCertificate(ServerCertificateT&& value) { SetServerCertificate(std::forward<ServerCertificateT>(value)); return *this;}
179
181
186 inline const CmkSecretConfig& GetCmkSecretConfig() const { return m_cmkSecretConfig; }
187 inline bool CmkSecretConfigHasBeenSet() const { return m_cmkSecretConfigHasBeenSet; }
188 template<typename CmkSecretConfigT = CmkSecretConfig>
189 void SetCmkSecretConfig(CmkSecretConfigT&& value) { m_cmkSecretConfigHasBeenSet = true; m_cmkSecretConfig = std::forward<CmkSecretConfigT>(value); }
190 template<typename CmkSecretConfigT = CmkSecretConfig>
191 UpdateLocationObjectStorageRequest& WithCmkSecretConfig(CmkSecretConfigT&& value) { SetCmkSecretConfig(std::forward<CmkSecretConfigT>(value)); return *this;}
193
195
200 inline const CustomSecretConfig& GetCustomSecretConfig() const { return m_customSecretConfig; }
201 inline bool CustomSecretConfigHasBeenSet() const { return m_customSecretConfigHasBeenSet; }
202 template<typename CustomSecretConfigT = CustomSecretConfig>
203 void SetCustomSecretConfig(CustomSecretConfigT&& value) { m_customSecretConfigHasBeenSet = true; m_customSecretConfig = std::forward<CustomSecretConfigT>(value); }
204 template<typename CustomSecretConfigT = CustomSecretConfig>
205 UpdateLocationObjectStorageRequest& WithCustomSecretConfig(CustomSecretConfigT&& value) { SetCustomSecretConfig(std::forward<CustomSecretConfigT>(value)); return *this;}
207 private:
208
209 Aws::String m_locationArn;
210 bool m_locationArnHasBeenSet = false;
211
212 int m_serverPort{0};
213 bool m_serverPortHasBeenSet = false;
214
216 bool m_serverProtocolHasBeenSet = false;
217
218 Aws::String m_subdirectory;
219 bool m_subdirectoryHasBeenSet = false;
220
221 Aws::String m_serverHostname;
222 bool m_serverHostnameHasBeenSet = false;
223
224 Aws::String m_accessKey;
225 bool m_accessKeyHasBeenSet = false;
226
227 Aws::String m_secretKey;
228 bool m_secretKeyHasBeenSet = false;
229
230 Aws::Vector<Aws::String> m_agentArns;
231 bool m_agentArnsHasBeenSet = false;
232
233 Aws::Utils::ByteBuffer m_serverCertificate{};
234 bool m_serverCertificateHasBeenSet = false;
235
236 CmkSecretConfig m_cmkSecretConfig;
237 bool m_cmkSecretConfigHasBeenSet = false;
238
239 CustomSecretConfig m_customSecretConfig;
240 bool m_customSecretConfigHasBeenSet = false;
241 };
242
243} // namespace Model
244} // namespace DataSync
245} // namespace Aws
UpdateLocationObjectStorageRequest & WithAccessKey(AccessKeyT &&value)
AWS_DATASYNC_API Aws::String SerializePayload() const override
UpdateLocationObjectStorageRequest & AddAgentArns(AgentArnsT &&value)
UpdateLocationObjectStorageRequest & WithSubdirectory(SubdirectoryT &&value)
UpdateLocationObjectStorageRequest & WithServerHostname(ServerHostnameT &&value)
UpdateLocationObjectStorageRequest & WithLocationArn(LocationArnT &&value)
UpdateLocationObjectStorageRequest & WithCmkSecretConfig(CmkSecretConfigT &&value)
UpdateLocationObjectStorageRequest & WithCustomSecretConfig(CustomSecretConfigT &&value)
AWS_DATASYNC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateLocationObjectStorageRequest & WithServerProtocol(ObjectStorageServerProtocol value)
UpdateLocationObjectStorageRequest & WithAgentArns(AgentArnsT &&value)
UpdateLocationObjectStorageRequest & WithSecretKey(SecretKeyT &&value)
UpdateLocationObjectStorageRequest & WithServerCertificate(ServerCertificateT &&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