12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Xml.Serialization;
- using System.Text;
- namespace COSXML.Model.Tag
- {
- /// <summary>
- /// 复制结果返回信息
- /// <see href="https://cloud.tencent.com/document/product/436/10881"/>
- /// </summary>
- [XmlRoot("CopyObjectResult")]
- public sealed class CopyObject
- {
- /// <summary>
- /// 返回文件的 MD5 算法校验值。ETag 的值可以用于检查 Object 的内容是否发生变化
- /// </summary>
- [XmlElement("ETag")]
- public string eTag;
- /// <summary>
- /// 返回文件最后修改时间,GMT 格式
- /// </summary>
- [XmlElement("LastModified")]
- public string lastModified;
- /// <summary>
- /// key 的 versionId
- /// </summary>
- [XmlElement("VersionId")]
- public string versionId;
- /// <summary>
- /// key 的 versionId
- /// </summary>
- [XmlElement("CRC64")]
- public string crc64;
- public string GetInfo()
- {
- StringBuilder stringBuilder = new StringBuilder("{CopyObject:\n");
- stringBuilder.Append("ETag:").Append(eTag).Append("\n");
- stringBuilder.Append("LastModified:").Append(lastModified).Append("\n");
- stringBuilder.Append("VersionId:").Append(versionId).Append("\n");
- stringBuilder.Append("}");
- return stringBuilder.ToString();
- }
- }
- }
|