/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the transfer-2018-11-05.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Transfer.Model { /// /// Container for the parameters to the StartFileTransfer operation. /// Begins a file transfer between local Amazon Web Services storage and a remote AS2 /// or SFTP server. /// /// /// public partial class StartFileTransferRequest : AmazonTransferRequest { private string _connectorId; private string _localDirectoryPath; private string _remoteDirectoryPath; private List _retrieveFilePaths = new List(); private List _sendFilePaths = new List(); /// /// Gets and sets the property ConnectorId. /// /// The unique identifier for the connector. /// /// [AWSProperty(Required=true, Min=19, Max=19)] public string ConnectorId { get { return this._connectorId; } set { this._connectorId = value; } } // Check to see if ConnectorId property is set internal bool IsSetConnectorId() { return this._connectorId != null; } /// /// Gets and sets the property LocalDirectoryPath. /// /// For an inbound transfer, the LocaDirectoryPath specifies the destination /// for one or more files that are transferred from the partner's SFTP server. /// /// [AWSProperty(Min=1, Max=1024)] public string LocalDirectoryPath { get { return this._localDirectoryPath; } set { this._localDirectoryPath = value; } } // Check to see if LocalDirectoryPath property is set internal bool IsSetLocalDirectoryPath() { return this._localDirectoryPath != null; } /// /// Gets and sets the property 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. /// /// [AWSProperty(Min=1, Max=1024)] public string RemoteDirectoryPath { get { return this._remoteDirectoryPath; } set { this._remoteDirectoryPath = value; } } // Check to see if RemoteDirectoryPath property is set internal bool IsSetRemoteDirectoryPath() { return this._remoteDirectoryPath != null; } /// /// Gets and sets the property RetrieveFilePaths. /// /// One or more source paths for the partner's SFTP server. Each string represents a source /// file path for one inbound file transfer. /// /// [AWSProperty(Min=1, Max=10)] public List RetrieveFilePaths { get { return this._retrieveFilePaths; } set { this._retrieveFilePaths = value; } } // Check to see if RetrieveFilePaths property is set internal bool IsSetRetrieveFilePaths() { return this._retrieveFilePaths != null && this._retrieveFilePaths.Count > 0; } /// /// Gets and sets the property 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 /// . /// /// [AWSProperty(Min=1, Max=10)] public List SendFilePaths { get { return this._sendFilePaths; } set { this._sendFilePaths = value; } } // Check to see if SendFilePaths property is set internal bool IsSetSendFilePaths() { return this._sendFilePaths != null && this._sendFilePaths.Count > 0; } } }