IntelligentTieringConfiguration.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Xml.Serialization;
  3. namespace COSXML.Model.Tag
  4. {
  5. /// <summary>
  6. /// 授予者信息
  7. /// </summary>
  8. [XmlRoot]
  9. public sealed class IntelligentTieringConfiguration
  10. {
  11. /// <summary>
  12. /// 说明智能分层存储配置是否开启,枚举值:Enabled
  13. /// </summary>
  14. [XmlElement]
  15. public string Status;
  16. [XmlElement]
  17. public IntelligentTieringTransition Transition;
  18. public sealed class IntelligentTieringTransition
  19. {
  20. /// <summary>
  21. /// 智能分层存储配置中标准层数据转换为低频层数据的天数限制
  22. /// </summary>
  23. [XmlElement]
  24. public int Days;
  25. /// <summary>
  26. /// 指定智能分层存储配置中标准层数据转换为低频层数据的访问次数限制,默认值为0次
  27. /// </summary>
  28. public int RequestFrequent;
  29. }
  30. public Boolean IsEnabled()
  31. {
  32. return "Enabled".Equals(Status);
  33. }
  34. }
  35. }