/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Transfer { namespace Model { /** */ class StartFileTransferRequest : public TransferRequest { public: AWS_TRANSFER_API StartFileTransferRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartFileTransfer"; } AWS_TRANSFER_API Aws::String SerializePayload() const override; AWS_TRANSFER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier for the connector.

*/ inline const Aws::String& GetConnectorId() const{ return m_connectorId; } /** *

The unique identifier for the connector.

*/ inline bool ConnectorIdHasBeenSet() const { return m_connectorIdHasBeenSet; } /** *

The unique identifier for the connector.

*/ inline void SetConnectorId(const Aws::String& value) { m_connectorIdHasBeenSet = true; m_connectorId = value; } /** *

The unique identifier for the connector.

*/ inline void SetConnectorId(Aws::String&& value) { m_connectorIdHasBeenSet = true; m_connectorId = std::move(value); } /** *

The unique identifier for the connector.

*/ inline void SetConnectorId(const char* value) { m_connectorIdHasBeenSet = true; m_connectorId.assign(value); } /** *

The unique identifier for the connector.

*/ inline StartFileTransferRequest& WithConnectorId(const Aws::String& value) { SetConnectorId(value); return *this;} /** *

The unique identifier for the connector.

*/ inline StartFileTransferRequest& WithConnectorId(Aws::String&& value) { SetConnectorId(std::move(value)); return *this;} /** *

The unique identifier for the connector.

*/ inline StartFileTransferRequest& WithConnectorId(const char* value) { SetConnectorId(value); return *this;} /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline const Aws::Vector& GetSendFilePaths() const{ return m_sendFilePaths; } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline bool SendFilePathsHasBeenSet() const { return m_sendFilePathsHasBeenSet; } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline void SetSendFilePaths(const Aws::Vector& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths = value; } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline void SetSendFilePaths(Aws::Vector&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths = std::move(value); } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline StartFileTransferRequest& WithSendFilePaths(const Aws::Vector& value) { SetSendFilePaths(value); return *this;} /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline StartFileTransferRequest& WithSendFilePaths(Aws::Vector&& value) { SetSendFilePaths(std::move(value)); return *this;} /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline StartFileTransferRequest& AddSendFilePaths(const Aws::String& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(value); return *this; } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline StartFileTransferRequest& AddSendFilePaths(Aws::String&& value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(std::move(value)); return *this; } /** *

One or more source paths for the Transfer Family server. Each string * represents a source file path for one outbound file transfer. For example, * DOC-EXAMPLE-BUCKET/myfile.txt .

*/ inline StartFileTransferRequest& AddSendFilePaths(const char* value) { m_sendFilePathsHasBeenSet = true; m_sendFilePaths.push_back(value); return *this; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline const Aws::Vector& GetRetrieveFilePaths() const{ return m_retrieveFilePaths; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline bool RetrieveFilePathsHasBeenSet() const { return m_retrieveFilePathsHasBeenSet; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline void SetRetrieveFilePaths(const Aws::Vector& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths = value; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline void SetRetrieveFilePaths(Aws::Vector&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths = std::move(value); } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline StartFileTransferRequest& WithRetrieveFilePaths(const Aws::Vector& value) { SetRetrieveFilePaths(value); return *this;} /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline StartFileTransferRequest& WithRetrieveFilePaths(Aws::Vector&& value) { SetRetrieveFilePaths(std::move(value)); return *this;} /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline StartFileTransferRequest& AddRetrieveFilePaths(const Aws::String& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(value); return *this; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline StartFileTransferRequest& AddRetrieveFilePaths(Aws::String&& value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(std::move(value)); return *this; } /** *

One or more source paths for the partner's SFTP server. Each string * represents a source file path for one inbound file transfer.

*/ inline StartFileTransferRequest& AddRetrieveFilePaths(const char* value) { m_retrieveFilePathsHasBeenSet = true; m_retrieveFilePaths.push_back(value); return *this; } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline const Aws::String& GetLocalDirectoryPath() const{ return m_localDirectoryPath; } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline bool LocalDirectoryPathHasBeenSet() const { return m_localDirectoryPathHasBeenSet; } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline void SetLocalDirectoryPath(const Aws::String& value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath = value; } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline void SetLocalDirectoryPath(Aws::String&& value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath = std::move(value); } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline void SetLocalDirectoryPath(const char* value) { m_localDirectoryPathHasBeenSet = true; m_localDirectoryPath.assign(value); } /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline StartFileTransferRequest& WithLocalDirectoryPath(const Aws::String& value) { SetLocalDirectoryPath(value); return *this;} /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline StartFileTransferRequest& WithLocalDirectoryPath(Aws::String&& value) { SetLocalDirectoryPath(std::move(value)); return *this;} /** *

For an inbound transfer, the LocaDirectoryPath specifies the * destination for one or more files that are transferred from the partner's SFTP * server.

*/ inline StartFileTransferRequest& WithLocalDirectoryPath(const char* value) { SetLocalDirectoryPath(value); return *this;} /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline const Aws::String& GetRemoteDirectoryPath() const{ return m_remoteDirectoryPath; } /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline bool RemoteDirectoryPathHasBeenSet() const { return m_remoteDirectoryPathHasBeenSet; } /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline void SetRemoteDirectoryPath(const Aws::String& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = value; } /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline void SetRemoteDirectoryPath(Aws::String&& value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath = std::move(value); } /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline void SetRemoteDirectoryPath(const char* value) { m_remoteDirectoryPathHasBeenSet = true; m_remoteDirectoryPath.assign(value); } /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline StartFileTransferRequest& WithRemoteDirectoryPath(const Aws::String& value) { SetRemoteDirectoryPath(value); return *this;} /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline StartFileTransferRequest& WithRemoteDirectoryPath(Aws::String&& value) { SetRemoteDirectoryPath(std::move(value)); return *this;} /** *

For an outbound transfer, the RemoteDirectoryPath specifies the * destination for one or more files that are transferred to the partner's SFTP * server. If you don't specify a RemoteDirectoryPath, the destination * for transferred files is the SFTP user's home directory.

*/ inline StartFileTransferRequest& WithRemoteDirectoryPath(const char* value) { SetRemoteDirectoryPath(value); return *this;} private: Aws::String m_connectorId; bool m_connectorIdHasBeenSet = false; Aws::Vector m_sendFilePaths; bool m_sendFilePathsHasBeenSet = false; Aws::Vector m_retrieveFilePaths; bool m_retrieveFilePathsHasBeenSet = false; Aws::String m_localDirectoryPath; bool m_localDirectoryPathHasBeenSet = false; Aws::String m_remoteDirectoryPath; bool m_remoteDirectoryPathHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws