AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
StartFileTransferRequest.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_EXPORTS.h>
8#include <aws/awstransfer/TransferRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Transfer
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_TRANSFER_API StartFileTransferRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "StartFileTransfer"; }
32
33 AWS_TRANSFER_API Aws::String SerializePayload() const override;
34
36
37
39
42 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
43 inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; }
44 template<typename ConnectorIdT = Aws::String>
45 void SetConnectorId(ConnectorIdT&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::forward<ConnectorIdT>(value); }
46 template<typename ConnectorIdT = Aws::String>
47 StartFileTransferRequest& WithConnectorId(ConnectorIdT&& value) { SetConnectorId(std::forward<ConnectorIdT>(value)); return *this;}
49
51
58 inline const Aws::Vector<Aws::String>& GetSendFilePaths() const { return m_sendFilePaths; }
59 inline bool SendFilePathsHasBeenSet() const { return m_sendFilePathsHasBeenSet; }
60 template<typename SendFilePathsT = Aws::Vector<Aws::String>>
61 void SetSendFilePaths(SendFilePathsT&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths = std::forward<SendFilePathsT>(value); }
62 template<typename SendFilePathsT = Aws::Vector<Aws::String>>
63 StartFileTransferRequest& WithSendFilePaths(SendFilePathsT&& value) { SetSendFilePaths(std::forward<SendFilePathsT>(value)); return *this;}
64 template<typename SendFilePathsT = Aws::String>
65 StartFileTransferRequest& AddSendFilePaths(SendFilePathsT&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.emplace_back(std::forward<SendFilePathsT>(value)); return *this; }
67
69
73 inline const Aws::Vector<Aws::String>& GetRetrieveFilePaths() const { return m_retrieveFilePaths; }
74 inline bool RetrieveFilePathsHasBeenSet() const { return m_retrieveFilePathsHasBeenSet; }
75 template<typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
76 void SetRetrieveFilePaths(RetrieveFilePathsT&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths = std::forward<RetrieveFilePathsT>(value); }
77 template<typename RetrieveFilePathsT = Aws::Vector<Aws::String>>
78 StartFileTransferRequest& WithRetrieveFilePaths(RetrieveFilePathsT&& value) { SetRetrieveFilePaths(std::forward<RetrieveFilePathsT>(value)); return *this;}
79 template<typename RetrieveFilePathsT = Aws::String>
80 StartFileTransferRequest& AddRetrieveFilePaths(RetrieveFilePathsT&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.emplace_back(std::forward<RetrieveFilePathsT>(value)); return *this; }
82
84
89 inline const Aws::String& GetLocalDirectoryPath() const { return m_localDirectoryPath; }
90 inline bool LocalDirectoryPathHasBeenSet() const { return m_localDirectoryPathHasBeenSet; }
91 template<typename LocalDirectoryPathT = Aws::String>
92 void SetLocalDirectoryPath(LocalDirectoryPathT&& value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath = std::forward<LocalDirectoryPathT>(value); }
93 template<typename LocalDirectoryPathT = Aws::String>
94 StartFileTransferRequest& WithLocalDirectoryPath(LocalDirectoryPathT&& value) { SetLocalDirectoryPath(std::forward<LocalDirectoryPathT>(value)); return *this;}
96
98
104 inline const Aws::String& GetRemoteDirectoryPath() const { return m_remoteDirectoryPath; }
105 inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; }
106 template<typename RemoteDirectoryPathT = Aws::String>
107 void SetRemoteDirectoryPath(RemoteDirectoryPathT&& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = std::forward<RemoteDirectoryPathT>(value); }
108 template<typename RemoteDirectoryPathT = Aws::String>
109 StartFileTransferRequest& WithRemoteDirectoryPath(RemoteDirectoryPathT&& value) { SetRemoteDirectoryPath(std::forward<RemoteDirectoryPathT>(value)); return *this;}
111 private:
112
113 Aws::String m_connectorId;
114 bool m_connectorIdHasBeenSet = false;
115
116 Aws::Vector<Aws::String> m_sendFilePaths;
117 bool m_sendFilePathsHasBeenSet = false;
118
119 Aws::Vector<Aws::String> m_retrieveFilePaths;
120 bool m_retrieveFilePathsHasBeenSet = false;
121
122 Aws::String m_localDirectoryPath;
123 bool m_localDirectoryPathHasBeenSet = false;
124
125 Aws::String m_remoteDirectoryPath;
126 bool m_remoteDirectoryPathHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace Transfer
131} // 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