Class LifecycleRule


  • public class LifecycleRule
    extends java.lang.Object
    • Constructor Detail

      • LifecycleRule

        public LifecycleRule()
      • LifecycleRule

        public LifecycleRule​(java.lang.String id,
                             java.lang.String prefix,
                             LifecycleRule.Status status)
      • LifecycleRule

        @Deprecated
        public LifecycleRule​(java.lang.String id,
                             java.lang.String prefix,
                             LifecycleRule.Status status,
                             java.lang.Integer expirationDays)
        Deprecated.
        please use builder methods instead
        See Also:
        withExpirationDays(Integer)
      • LifecycleRule

        @Deprecated
        public LifecycleRule​(java.lang.String id,
                             java.lang.String prefix,
                             LifecycleRule.Status status,
                             java.util.Date expirationDate)
        Deprecated.
        please use builder methods instead
        See Also:
        withExpirationDate(Date)
    • Method Detail

      • withPrefix

        public LifecycleRule withPrefix​(java.lang.String prefix)
      • withExpirationDays

        public LifecycleRule withExpirationDays​(java.lang.Integer expirationDays)
      • withExpirationDate

        public LifecycleRule withExpirationDate​(java.util.Date expirationDate)
      • withNoncurrentVersionExpirationDays

        public LifecycleRule withNoncurrentVersionExpirationDays​(java.lang.Integer days)
      • withAbortIncompleteMultipartUploadDays

        public LifecycleRule withAbortIncompleteMultipartUploadDays​(java.lang.Integer days)
      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • getPrefix

        public java.lang.String getPrefix()
      • setPrefix

        public void setPrefix​(java.lang.String prefix)
      • getExpirationDays

        public java.lang.Integer getExpirationDays()
      • setExpirationDays

        public void setExpirationDays​(java.lang.Integer expirationDays)
      • getExpirationDate

        public java.util.Date getExpirationDate()
      • setExpirationDate

        public void setExpirationDate​(java.util.Date expirationDate)
      • getNoncurrentVersionExpirationDays

        public java.lang.Integer getNoncurrentVersionExpirationDays()
      • setNoncurrentVersionExpirationDays

        public void setNoncurrentVersionExpirationDays​(java.lang.Integer noncurrentDays)
      • getAbortIncompleteMultipartUploadDays

        public java.lang.Integer getAbortIncompleteMultipartUploadDays()
      • setAbortIncompleteMultipartUploadDays

        public void setAbortIncompleteMultipartUploadDays​(java.lang.Integer daysAfterInitiation)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object