类 LifecycleConfiguration.Transition

java.lang.Object
com.obs.services.model.LifecycleConfiguration.TimeEvent
com.obs.services.model.LifecycleConfiguration.Transition
封闭类:
LifecycleConfiguration

public class LifecycleConfiguration.Transition extends LifecycleConfiguration.TimeEvent
Object transition policy
  • 构造器详细资料

    • Transition

      public Transition()
    • Transition

      @Deprecated public Transition(Date date, String storageClass)
      已过时。
      Constructor
      参数:
      date - Date when the object is transited
      storageClass - Storage class of the object after it is transited. Possible values are "WARM" and "COLD".
    • Transition

      public Transition(Date date, StorageClassEnum storageClass)
      Constructor
      参数:
      date - Date when the object is transited
      storageClass - Storage class of the object after it is transited. Possible values are "WARM" and "COLD".
    • Transition

      @Deprecated public Transition(Integer days, String storageClass)
      已过时。
      Constructor
      参数:
      days - Object transition time, which indicates the number of days when the object is automatically transited after being created.
      storageClass - Storage class of the object after it is transited. Possible values are "WARM" and "COLD".
    • Transition

      public Transition(Integer days, StorageClassEnum storageClass)
      Constructor
      参数:
      days - Object transition time, which indicates the number of days when the object is automatically transited after being created.
      storageClass - Storage class of the object after it is transited. Possible values are "WARM" and "COLD".
  • 方法详细资料

    • getStorageClass

      @Deprecated public String getStorageClass()
      已过时。
      Obtain the storage class of the object after transition.
      返回:
      Storage class of the object after transition
      另请参阅:
    • setStorageClass

      @Deprecated public void setStorageClass(String storageClass)
      已过时。
      Set the storage class of the object after transition.
      参数:
      storageClass - Storage class of the object after transition
      另请参阅:
    • getObjectStorageClass

      public StorageClassEnum getObjectStorageClass()
      Obtain the storage class of the object after transition.
      返回:
      Storage class of the object after transition
    • setObjectStorageClass

      public void setObjectStorageClass(StorageClassEnum storageClass)
      Set the storage class of the object after transition.
      参数:
      storageClass - Storage class of the object after transition
    • getDays

      public Integer getDays()
      Obtain the object transition time.
      返回:
      Object transition time, which indicates the number of days when the object is automatically transited after being created.
    • setDays

      public void setDays(Integer days)
      Set the object transition time.
      参数:
      days - Object transition time, which indicates the number of days when the object is automatically transited after being created.
    • getDate

      public Date getDate()
      Obtain the object transition date.
      返回:
      Date when the object is transited
    • setDate

      public void setDate(Date date)
      Set the object transition date.
      参数:
      date - Date when the object is transited
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object