sdk/Domain/OssObjectSummary.cs (23 lines of code) (raw):

/* * Copyright (C) Alibaba Cloud Computing * All rights reserved. * */ using System; using System.Globalization; namespace Aliyun.OSS { /// <summary> /// <see cref="OssObject" />'s summary information, no object data. /// </summary> public class OssObjectSummary { /// <summary> /// Gets or sets the bucket name /// </summary> public string BucketName { get; internal set; } /// <summary> /// Gets or sets the object key. /// </summary> public string Key { get; internal set; } /// <summary> /// Gets or sets the ETag which is the MD5 summry in hex string of the object. /// </summary> public string ETag { get; internal set; } /// <summary> /// Gets or sets the size of the object in bytes. /// </summary> public long Size { get; internal set; } /// <summary> /// Gets the last modified time. /// </summary> public DateTime LastModified { get; internal set; } /// <summary> /// Gets the object's storage class. /// </summary> public string StorageClass { get; internal set; } /// <summary> /// Get's the object's <see cref="Owner" />. /// </summary> public Owner Owner { get; internal set; } /// <summary> /// Creates a new instance of <see cref="OssObjectSummary" />. /// </summary> internal OssObjectSummary() { } /// <summary> /// Gets the serialization result in string. /// </summary> /// <returns>serialization result in string</returns> public override string ToString() { return string.Format(CultureInfo.InvariantCulture, "[OSSObjectSummary Bucket={0}, Key={1}]", BucketName, Key); } } }