AWS SDK for C++

AWS SDK for C++ Version 1.11.687

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/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Transfer {
16namespace Model {
17
21 public:
22 AWS_TRANSFER_API StartFileTransferRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "StartFileTransfer"; }
29
30 AWS_TRANSFER_API Aws::String SerializePayload() const override;
31
33
35
38 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
39 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
40 template <typename ConnectorIdT = Aws::String>
41 void SetConnectorId(ConnectorIdT&& value) {
42 m_connectorIdHasBeenSet = true;
43 m_connectorId = std::forward<ConnectorIdT>(value);
44 }
45 template <typename ConnectorIdT = Aws::String>
47 SetConnectorId(std::forward<ConnectorIdT>(value));
48 return *this;
49 }
51
53
60 inline const Aws::Vector<Aws::String>& GetSendFilePaths() const { return m_sendFilePaths; }
61 inline bool SendFilePathsHasBeenSet() const { return m_sendFilePathsHasBeenSet; }
62 template <typename SendFilePathsT = Aws::Vector<Aws::String>>
63 void SetSendFilePaths(SendFilePathsT&& value) {
64 m_sendFilePathsHasBeenSet = true;
65 m_sendFilePaths = std::forward<SendFilePathsT>(value);
66 }
67 template <typename SendFilePathsT = Aws::Vector<Aws::String>>
69 SetSendFilePaths(std::forward<SendFilePathsT>(value));
70 return *this;
71 }
72 template <typename SendFilePathsT = Aws::String>
73 StartFileTransferRequest& AddSendFilePaths(SendFilePathsT&& value) {
74 m_sendFilePathsHasBeenSet = true;
75 m_sendFilePaths.emplace_back(std::forward<SendFilePathsT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Vector<Aws::String>& GetRetrieveFilePaths() const { return m_retrieveFilePaths; }
86 inline bool RetrieveFilePathsHasBeenSet() const { return m_retrieveFilePathsHasBeenSet; }
87 template <typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
88 void SetRetrieveFilePaths(RetrieveFilePathsT&& value) {
89 m_retrieveFilePathsHasBeenSet = true;
90 m_retrieveFilePaths = std::forward<RetrieveFilePathsT>(value);
91 }
92 template <typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
93 StartFileTransferRequest& WithRetrieveFilePaths(RetrieveFilePathsT&& value) {
94 SetRetrieveFilePaths(std::forward<RetrieveFilePathsT>(value));
95 return *this;
96 }
97 template <typename RetrieveFilePathsT = Aws::String>
98 StartFileTransferRequest& AddRetrieveFilePaths(RetrieveFilePathsT&& value) {
99 m_retrieveFilePathsHasBeenSet = true;
100 m_retrieveFilePaths.emplace_back(std::forward<RetrieveFilePathsT>(value));
101 return *this;
102 }
104
106
111 inline const Aws::String& GetLocalDirectoryPath() const { return m_localDirectoryPath; }
112 inline bool LocalDirectoryPathHasBeenSet() const { return m_localDirectoryPathHasBeenSet; }
113 template <typename LocalDirectoryPathT = Aws::String>
114 void SetLocalDirectoryPath(LocalDirectoryPathT&& value) {
115 m_localDirectoryPathHasBeenSet = true;
116 m_localDirectoryPath = std::forward<LocalDirectoryPathT>(value);
117 }
118 template <typename LocalDirectoryPathT = Aws::String>
119 StartFileTransferRequest& WithLocalDirectoryPath(LocalDirectoryPathT&& value) {
120 SetLocalDirectoryPath(std::forward<LocalDirectoryPathT>(value));
121 return *this;
122 }
124
126
132 inline const Aws::String& GetRemoteDirectoryPath() const { return m_remoteDirectoryPath; }
133 inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; }
134 template <typename RemoteDirectoryPathT = Aws::String>
135 void SetRemoteDirectoryPath(RemoteDirectoryPathT&& value) {
136 m_remoteDirectoryPathHasBeenSet = true;
137 m_remoteDirectoryPath = std::forward<RemoteDirectoryPathT>(value);
138 }
139 template <typename RemoteDirectoryPathT = Aws::String>
140 StartFileTransferRequest& WithRemoteDirectoryPath(RemoteDirectoryPathT&& value) {
141 SetRemoteDirectoryPath(std::forward<RemoteDirectoryPathT>(value));
142 return *this;
143 }
145 private:
146 Aws::String m_connectorId;
147 bool m_connectorIdHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_sendFilePaths;
150 bool m_sendFilePathsHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_retrieveFilePaths;
153 bool m_retrieveFilePathsHasBeenSet = false;
154
155 Aws::String m_localDirectoryPath;
156 bool m_localDirectoryPathHasBeenSet = false;
157
158 Aws::String m_remoteDirectoryPath;
159 bool m_remoteDirectoryPathHasBeenSet = false;
160};
161
162} // namespace Model
163} // namespace Transfer
164} // 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)
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
void SetRemoteDirectoryPath(RemoteDirectoryPathT &&value)
void SetLocalDirectoryPath(LocalDirectoryPathT &&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