AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
StartFileTransferRequest.h
1
6#pragma once
7#include <aws/awstransfer/TransferRequest.h>
8#include <aws/awstransfer/Transfer_EXPORTS.h>
9#include <aws/awstransfer/model/CustomHttpHeader.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Transfer {
17namespace Model {
18
22 public:
23 AWS_TRANSFER_API StartFileTransferRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "StartFileTransfer"; }
30
31 AWS_TRANSFER_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
40 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
41 template <typename ConnectorIdT = Aws::String>
42 void SetConnectorId(ConnectorIdT&& value) {
43 m_connectorIdHasBeenSet = true;
44 m_connectorId = std::forward<ConnectorIdT>(value);
45 }
46 template <typename ConnectorIdT = Aws::String>
48 SetConnectorId(std::forward<ConnectorIdT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::Vector<Aws::String>& GetSendFilePaths() const { return m_sendFilePaths; }
62 inline bool SendFilePathsHasBeenSet() const { return m_sendFilePathsHasBeenSet; }
63 template <typename SendFilePathsT = Aws::Vector<Aws::String>>
64 void SetSendFilePaths(SendFilePathsT&& value) {
65 m_sendFilePathsHasBeenSet = true;
66 m_sendFilePaths = std::forward<SendFilePathsT>(value);
67 }
68 template <typename SendFilePathsT = Aws::Vector<Aws::String>>
70 SetSendFilePaths(std::forward<SendFilePathsT>(value));
71 return *this;
72 }
73 template <typename SendFilePathsT = Aws::String>
74 StartFileTransferRequest& AddSendFilePaths(SendFilePathsT&& value) {
75 m_sendFilePathsHasBeenSet = true;
76 m_sendFilePaths.emplace_back(std::forward<SendFilePathsT>(value));
77 return *this;
78 }
80
82
86 inline const Aws::Vector<Aws::String>& GetRetrieveFilePaths() const { return m_retrieveFilePaths; }
87 inline bool RetrieveFilePathsHasBeenSet() const { return m_retrieveFilePathsHasBeenSet; }
88 template <typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
89 void SetRetrieveFilePaths(RetrieveFilePathsT&& value) {
90 m_retrieveFilePathsHasBeenSet = true;
91 m_retrieveFilePaths = std::forward<RetrieveFilePathsT>(value);
92 }
93 template <typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
94 StartFileTransferRequest& WithRetrieveFilePaths(RetrieveFilePathsT&& value) {
95 SetRetrieveFilePaths(std::forward<RetrieveFilePathsT>(value));
96 return *this;
97 }
98 template <typename RetrieveFilePathsT = Aws::String>
99 StartFileTransferRequest& AddRetrieveFilePaths(RetrieveFilePathsT&& value) {
100 m_retrieveFilePathsHasBeenSet = true;
101 m_retrieveFilePaths.emplace_back(std::forward<RetrieveFilePathsT>(value));
102 return *this;
103 }
105
107
112 inline const Aws::String& GetLocalDirectoryPath() const { return m_localDirectoryPath; }
113 inline bool LocalDirectoryPathHasBeenSet() const { return m_localDirectoryPathHasBeenSet; }
114 template <typename LocalDirectoryPathT = Aws::String>
115 void SetLocalDirectoryPath(LocalDirectoryPathT&& value) {
116 m_localDirectoryPathHasBeenSet = true;
117 m_localDirectoryPath = std::forward<LocalDirectoryPathT>(value);
118 }
119 template <typename LocalDirectoryPathT = Aws::String>
120 StartFileTransferRequest& WithLocalDirectoryPath(LocalDirectoryPathT&& value) {
121 SetLocalDirectoryPath(std::forward<LocalDirectoryPathT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::String& GetRemoteDirectoryPath() const { return m_remoteDirectoryPath; }
134 inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; }
135 template <typename RemoteDirectoryPathT = Aws::String>
136 void SetRemoteDirectoryPath(RemoteDirectoryPathT&& value) {
137 m_remoteDirectoryPathHasBeenSet = true;
138 m_remoteDirectoryPath = std::forward<RemoteDirectoryPathT>(value);
139 }
140 template <typename RemoteDirectoryPathT = Aws::String>
141 StartFileTransferRequest& WithRemoteDirectoryPath(RemoteDirectoryPathT&& value) {
142 SetRemoteDirectoryPath(std::forward<RemoteDirectoryPathT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::Vector<CustomHttpHeader>& GetCustomHttpHeaders() const { return m_customHttpHeaders; }
154 inline bool CustomHttpHeadersHasBeenSet() const { return m_customHttpHeadersHasBeenSet; }
155 template <typename CustomHttpHeadersT = Aws::Vector<CustomHttpHeader>>
156 void SetCustomHttpHeaders(CustomHttpHeadersT&& value) {
157 m_customHttpHeadersHasBeenSet = true;
158 m_customHttpHeaders = std::forward<CustomHttpHeadersT>(value);
159 }
160 template <typename CustomHttpHeadersT = Aws::Vector<CustomHttpHeader>>
161 StartFileTransferRequest& WithCustomHttpHeaders(CustomHttpHeadersT&& value) {
162 SetCustomHttpHeaders(std::forward<CustomHttpHeadersT>(value));
163 return *this;
164 }
165 template <typename CustomHttpHeadersT = CustomHttpHeader>
166 StartFileTransferRequest& AddCustomHttpHeaders(CustomHttpHeadersT&& value) {
167 m_customHttpHeadersHasBeenSet = true;
168 m_customHttpHeaders.emplace_back(std::forward<CustomHttpHeadersT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_connectorId;
174
175 Aws::Vector<Aws::String> m_sendFilePaths;
176
177 Aws::Vector<Aws::String> m_retrieveFilePaths;
178
179 Aws::String m_localDirectoryPath;
180
181 Aws::String m_remoteDirectoryPath;
182
183 Aws::Vector<CustomHttpHeader> m_customHttpHeaders;
184 bool m_connectorIdHasBeenSet = false;
185 bool m_sendFilePathsHasBeenSet = false;
186 bool m_retrieveFilePathsHasBeenSet = false;
187 bool m_localDirectoryPathHasBeenSet = false;
188 bool m_remoteDirectoryPathHasBeenSet = false;
189 bool m_customHttpHeadersHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace Transfer
194} // namespace Aws
StartFileTransferRequest & WithLocalDirectoryPath(LocalDirectoryPathT &&value)
StartFileTransferRequest & WithConnectorId(ConnectorIdT &&value)
AWS_TRANSFER_API StartFileTransferRequest()=default
StartFileTransferRequest & AddRetrieveFilePaths(RetrieveFilePathsT &&value)
StartFileTransferRequest & WithSendFilePaths(SendFilePathsT &&value)
const Aws::Vector< Aws::String > & GetRetrieveFilePaths() const
StartFileTransferRequest & AddSendFilePaths(SendFilePathsT &&value)
StartFileTransferRequest & AddCustomHttpHeaders(CustomHttpHeadersT &&value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
StartFileTransferRequest & WithRetrieveFilePaths(RetrieveFilePathsT &&value)
StartFileTransferRequest & WithRemoteDirectoryPath(RemoteDirectoryPathT &&value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
const Aws::Vector< CustomHttpHeader > & GetCustomHttpHeaders() const
void SetRemoteDirectoryPath(RemoteDirectoryPathT &&value)
void SetLocalDirectoryPath(LocalDirectoryPathT &&value)
StartFileTransferRequest & WithCustomHttpHeaders(CustomHttpHeadersT &&value)
const Aws::Vector< Aws::String > & GetSendFilePaths() const
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