Class BucketLifecycleConfiguration.NoncurrentVersionTransition

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    BucketLifecycleConfiguration

    public static class BucketLifecycleConfiguration.NoncurrentVersionTransition
    extends Object
    implements Serializable
    The non-current-version transition attribute of the rule, describing how non-current versions of objects will move between different storage classes in Amazon S3.
    See Also:
    Serialized Form
    • Constructor Detail

      • NoncurrentVersionTransition

        public NoncurrentVersionTransition()
    • Method Detail

      • setDays

        public void setDays​(int expirationInDays)
        Sets the time, in days, between when a new version of the object is uploaded to the bucket and when older versions are archived.
      • getDays

        public int getDays()
        Returns the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived.
      • withDays

        public BucketLifecycleConfiguration.NoncurrentVersionTransition withDays​(int expirationInDays)
        Sets the time in days from when a new version of the object is uploaded to the bucket and when older versions are archived, and returns a reference to this object for method chaining.
      • setStorageClass

        public void setStorageClass​(StorageClass storageClass)
        Sets the storage class of this object.
      • setStorageClass

        public void setStorageClass​(String storageClass)
        Sets the storage class of this object.
      • getStorageClassAsString

        public String getStorageClassAsString()
        Returns the storage class of this object.