类 LifecycleConfiguration.Expiration

java.lang.Object
cn.warpin.thirdPart.huawei.obs.obs.services.model.LifecycleConfiguration.TimeEvent
cn.warpin.thirdPart.huawei.obs.obs.services.model.LifecycleConfiguration.Expiration
封闭类:
LifecycleConfiguration

public class LifecycleConfiguration.Expiration extends LifecycleConfiguration.TimeEvent
Expiration time of an object
  • 构造器详细资料

    • Expiration

      public Expiration()
    • Expiration

      public Expiration(Date date)
      Constructor
      参数:
      date - A specified date in which the object will expire
    • Expiration

      public Expiration(Integer days)
      Constructor
      参数:
      days - Object expiration time, specifying how many days after creation will the object expire
  • 方法详细资料

    • getDays

      public Integer getDays()
      Obtain the expiration time of the object.
      返回:
      Object expiration time, specifying how many days after creation will the object expire
    • setDays

      public void setDays(Integer days)
      Set the object expiration time.
      参数:
      days - Object expiration time, specifying how many days after creation will the object expire
    • getDate

      public Date getDate()
      Obtain the object expiration date.
      返回:
      A specified date in which the object will expire
    • setDate

      public void setDate(Date date)
      Obtain the object expiration date.
      参数:
      date - A specified date in which the object will expire
    • toString

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