Amazon.Glacier.Transfer.Internal.DownloadFileCommand.DownloadFileCommand C# (CSharp) Method

DownloadFileCommand() private method

private DownloadFileCommand ( ArchiveTransferManager manager, string vaultName, string archiveId, string filePath, DownloadOptions options ) : System
manager ArchiveTransferManager
vaultName string
archiveId string
filePath string
options DownloadOptions
return System
        internal DownloadFileCommand(ArchiveTransferManager manager, string vaultName, string archiveId, string filePath, DownloadOptions options)
        {
            this.manager = manager;
            this.vaultName = vaultName;
            this.archiveId = archiveId;
            this.filePath = filePath;
            this.options = options;

            var glacierClient = this.manager.GlacierClient as AmazonGlacierClient;
            if (glacierClient == null)
                throw new InvalidOperationException("This can only be called using an AmazonGlacierClient");

            this.snsClient = ServiceClientHelpers.CreateServiceFromAnother<AmazonSimpleNotificationServiceClient, AmazonSimpleNotificationServiceConfig>(glacierClient);
            this.sqsClient = ServiceClientHelpers.CreateServiceFromAnother<AmazonSQSClient, AmazonSQSConfig>(glacierClient);

            if (this.options == null)
                this.options = new DownloadOptions();
        }