/* * 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.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.S3.Model { /// /// Container for elements related to an individual part. /// public partial class ObjectPart { private string _checksumCRC32; private string _checksumCRC32C; private string _checksumSHA1; private string _checksumSHA256; private int? _partNumber; private int? _size; /// /// Gets and sets the property ChecksumCRC32. /// /// This header can be used as a data integrity check to verify that the data received /// is the same data that was originally sent. This specifies the base64-encoded, 32-bit /// CRC32 checksum of the object. For more information, see /// Checking object integrity in the Amazon S3 User Guide. /// /// public string ChecksumCRC32 { get { return this._checksumCRC32; } set { this._checksumCRC32 = value; } } // Check to see if ChecksumCRC32 property is set internal bool IsSetChecksumCRC32() { return this._checksumCRC32 != null; } /// /// Gets and sets the property ChecksumCRC32C. /// /// The base64-encoded, 32-bit CRC32C checksum of the object. /// /// public string ChecksumCRC32C { get { return this._checksumCRC32C; } set { this._checksumCRC32C = value; } } // Check to see if ChecksumCRC32C property is set internal bool IsSetChecksumCRC32C() { return this._checksumCRC32C != null; } /// /// Gets and sets the property ChecksumSHA1. /// /// The base64-encoded, 160-bit SHA-1 digest of the object. /// /// public string ChecksumSHA1 { get { return this._checksumSHA1; } set { this._checksumSHA1 = value; } } // Check to see if ChecksumSHA1 property is set internal bool IsSetChecksumSHA1() { return this._checksumSHA1 != null; } /// /// Gets and sets the property ChecksumSHA256. /// /// The base64-encoded, 256-bit SHA-256 digest of the object. /// /// public string ChecksumSHA256 { get { return this._checksumSHA256; } set { this._checksumSHA256 = value; } } // Check to see if ChecksumSHA256 property is set internal bool IsSetChecksumSHA256() { return this._checksumSHA256 != null; } /// /// Gets and sets the property PartNumber. /// /// Part number identifying the part. This is a positive integer between 1 and 10,000. /// /// public int PartNumber { get { return this._partNumber.GetValueOrDefault(); } set { this._partNumber = value; } } // Check to see if PartNumber property is set internal bool IsSetPartNumber() { return this._partNumber.HasValue; } /// /// Gets and sets the property Size. /// /// The size of the uploaded part in bytes. /// /// public int Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } } }