/* * 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. */ using System; using System.IO; namespace Amazon.WorkDocs.Utils { /// /// Response properties for UploadDocumentStream operation. /// public class UploadDocumentStreamResponse { /// /// The ID of the parent folder. /// public String ParentFolderId { get; } /// /// The name of the document. /// public String DocumentName { get; } /// /// The content type of the document. /// public String ContentType { get; } /// /// The timestamp when the content of the document was originally created. /// public DateTime ContentCreatedTimestamp { get; } /// /// The timestamp when the content of the document was modified. /// public DateTime ContentModifiedTimestamp { get; } /// /// The size of the document, in bytes. /// public long DocumentSizeInBytes { get; } public Stream Stream { get; } /// /// The ID of the document. /// public String DocumentId { get; internal set; } /// /// The version ID of the document. /// public String VersionId { get; internal set; } internal UploadDocumentStreamResponse(UploadDocumentStreamRequest request) { ParentFolderId = request.ParentFolderId; DocumentName = request.DocumentName; ContentType = request.ContentType; ContentCreatedTimestamp = request.ContentCreatedTimestamp; ContentModifiedTimestamp = request.ContentModifiedTimestamp; DocumentSizeInBytes = request.DocumentSizeInBytes; Stream = request.Stream; DocumentId = request.DocumentId; } } }