/* * Copyright 2010-2013 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.Collections.Generic; using System.Xml.Serialization; using System.Text; using Amazon.Runtime; namespace Amazon.S3.Model { /// /// Returns information about the CompleteMultipartUpload response and response metadata. /// public class CompleteMultipartUploadResponse : AmazonWebServiceResponse { private string location; private string bucketName; private string key; private string eTag; private string versionId; private Expiration expiration; private ServerSideEncryptionMethod serverSideEncryption; private string serverSideEncryptionKeyManagementServiceKeyId; private RequestCharged requestCharged; /// /// Gets and sets the URI that identifies the newly created object. /// public string Location { get { return this.location; } set { this.location = value; } } // Check to see if Location property is set internal bool IsSetLocation() { return this.location != null; } /// /// Gets and sets the name of the bucketName that contains the newly created object. /// public string BucketName { get { return this.bucketName; } set { this.bucketName = value; } } // Check to see if Bucket property is set internal bool IsSetBucketName() { return this.bucketName != null; } /// /// Gets and sets the object key of the newly created object. /// public string Key { get { return this.key; } set { this.key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this.key != null; } /// /// Gets and sets Entity tag that identifies the newly created object's data. Objects with different /// object data will have different entity tags. The entity tag is an opaque string. /// public string ETag { get { return this.eTag; } set { this.eTag = value; } } // Check to see if ETag property is set internal bool IsSetETag() { return this.eTag != null; } /// /// Gets and sets the Expiration property. /// Specifies the expiration date for the object and the /// rule governing the expiration. /// Is null if expiration is not applicable. /// public Expiration Expiration { get { return this.expiration; } set { this.expiration = value; } } /// /// Gets and sets the ServerSideEncryptionMethod property. /// Specifies the encryption used on the server to /// store the content. /// Default is None. /// public ServerSideEncryptionMethod ServerSideEncryptionMethod { get { return this.serverSideEncryption; } set { this.serverSideEncryption = value; } } /// /// Gets and sets the VersionId property. /// This is the version-id of the S3 object /// public string VersionId { get { return this.versionId; } set { this.versionId = value; } } // Check to see if VersionId property is set internal bool IsSetVersionId() { return this.versionId != null; } /// /// The id of the AWS Key Management Service key that Amazon S3 uses to encrypt and decrypt the object. /// public string ServerSideEncryptionKeyManagementServiceKeyId { get { return this.serverSideEncryptionKeyManagementServiceKeyId; } set { this.serverSideEncryptionKeyManagementServiceKeyId = value; } } /// /// Checks if ServerSideEncryptionKeyManagementServiceKeyId property is set. /// /// true if ServerSideEncryptionKeyManagementServiceKeyId property is set. internal bool IsSetServerSideEncryptionKeyManagementServiceKeyId() { return !System.String.IsNullOrEmpty(this.serverSideEncryptionKeyManagementServiceKeyId); } /// /// If present, indicates that the requester was successfully charged for the request. /// public RequestCharged RequestCharged { get { return this.requestCharged; } set { this.requestCharged = value; } } /// /// Checks to see if RequestCharged is set. /// /// true, if RequestCharged property is set. internal bool IsSetRequestCharged() { return requestCharged != null; } } }