AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; }
45 inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); }
46 inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); }
47 inline StartFileTransferRequest& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;}
48 inline StartFileTransferRequest& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;}
49 inline StartFileTransferRequest& WithConnectorId(const char* value) { SetConnectorId(value); return *this;}
51
53
60 inline const Aws::Vector<Aws::String>& GetSendFilePaths() const{ return m_sendFilePaths; }
61 inline bool SendFilePathsHasBeenSet() const { return m_sendFilePathsHasBeenSet; }
62 inline void SetSendFilePaths(const Aws::Vector<Aws::String>& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths = value; }
63 inline void SetSendFilePaths(Aws::Vector<Aws::String>&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths = std::move(value); }
65 inline StartFileTransferRequest& WithSendFilePaths(Aws::Vector<Aws::String>&& value) { SetSendFilePaths(std::move(value)); return *this;}
66 inline StartFileTransferRequest& AddSendFilePaths(const Aws::String& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(value); return *this; }
67 inline StartFileTransferRequest& AddSendFilePaths(Aws::String&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(std::move(value)); return *this; }
68 inline StartFileTransferRequest& AddSendFilePaths(const char* value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(value); return *this; }
70
72
76 inline const Aws::Vector<Aws::String>& GetRetrieveFilePaths() const{ return m_retrieveFilePaths; }
77 inline bool RetrieveFilePathsHasBeenSet() const { return m_retrieveFilePathsHasBeenSet; }
78 inline void SetRetrieveFilePaths(const Aws::Vector<Aws::String>& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths = value; }
79 inline void SetRetrieveFilePaths(Aws::Vector<Aws::String>&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths = std::move(value); }
82 inline StartFileTransferRequest& AddRetrieveFilePaths(const Aws::String& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(value); return *this; }
83 inline StartFileTransferRequest& AddRetrieveFilePaths(Aws::String&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(std::move(value)); return *this; }
84 inline StartFileTransferRequest& AddRetrieveFilePaths(const char* value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(value); return *this; }
86
88
93 inline const Aws::String& GetLocalDirectoryPath() const{ return m_localDirectoryPath; }
94 inline bool LocalDirectoryPathHasBeenSet() const { return m_localDirectoryPathHasBeenSet; }
95 inline void SetLocalDirectoryPath(const Aws::String& value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath = value; }
96 inline void SetLocalDirectoryPath(Aws::String&& value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath = std::move(value); }
97 inline void SetLocalDirectoryPath(const char* value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath.assign(value); }
99 inline StartFileTransferRequest& WithLocalDirectoryPath(Aws::String&& value) { SetLocalDirectoryPath(std::move(value)); return *this;}
100 inline StartFileTransferRequest& WithLocalDirectoryPath(const char* value) { SetLocalDirectoryPath(value); return *this;}
102
104
110 inline const Aws::String& GetRemoteDirectoryPath() const{ return m_remoteDirectoryPath; }
111 inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; }
112 inline void SetRemoteDirectoryPath(const Aws::String& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = value; }
113 inline void SetRemoteDirectoryPath(Aws::String&& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = std::move(value); }
114 inline void SetRemoteDirectoryPath(const char* value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath.assign(value); }
116 inline StartFileTransferRequest& WithRemoteDirectoryPath(Aws::String&& value) { SetRemoteDirectoryPath(std::move(value)); return *this;}
117 inline StartFileTransferRequest& WithRemoteDirectoryPath(const char* value) { SetRemoteDirectoryPath(value); return *this;}
119 private:
120
121 Aws::String m_connectorId;
122 bool m_connectorIdHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_sendFilePaths;
125 bool m_sendFilePathsHasBeenSet = false;
126
127 Aws::Vector<Aws::String> m_retrieveFilePaths;
128 bool m_retrieveFilePathsHasBeenSet = false;
129
130 Aws::String m_localDirectoryPath;
131 bool m_localDirectoryPathHasBeenSet = false;
132
133 Aws::String m_remoteDirectoryPath;
134 bool m_remoteDirectoryPathHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace Transfer
139} // namespace Aws
void SetSendFilePaths(const Aws::Vector< Aws::String > &value)
StartFileTransferRequest & WithRetrieveFilePaths(Aws::Vector< Aws::String > &&value)
StartFileTransferRequest & WithRemoteDirectoryPath(Aws::String &&value)
StartFileTransferRequest & AddSendFilePaths(Aws::String &&value)
StartFileTransferRequest & AddSendFilePaths(const Aws::String &value)
StartFileTransferRequest & WithRetrieveFilePaths(const Aws::Vector< Aws::String > &value)
void SetRetrieveFilePaths(const Aws::Vector< Aws::String > &value)
StartFileTransferRequest & WithSendFilePaths(Aws::Vector< Aws::String > &&value)
StartFileTransferRequest & WithRemoteDirectoryPath(const Aws::String &value)
StartFileTransferRequest & WithSendFilePaths(const Aws::Vector< Aws::String > &value)
void SetRetrieveFilePaths(Aws::Vector< Aws::String > &&value)
StartFileTransferRequest & WithConnectorId(const char *value)
StartFileTransferRequest & AddSendFilePaths(const char *value)
StartFileTransferRequest & AddRetrieveFilePaths(Aws::String &&value)
StartFileTransferRequest & WithLocalDirectoryPath(const char *value)
StartFileTransferRequest & AddRetrieveFilePaths(const char *value)
const Aws::Vector< Aws::String > & GetRetrieveFilePaths() const
StartFileTransferRequest & AddRetrieveFilePaths(const Aws::String &value)
AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSendFilePaths(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
StartFileTransferRequest & WithLocalDirectoryPath(const Aws::String &value)
AWS_TRANSFER_API Aws::String SerializePayload() const override
StartFileTransferRequest & WithLocalDirectoryPath(Aws::String &&value)
StartFileTransferRequest & WithRemoteDirectoryPath(const char *value)
StartFileTransferRequest & WithConnectorId(Aws::String &&value)
StartFileTransferRequest & WithConnectorId(const Aws::String &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