Class BucketLifecycleConfigurationV2Rule


  • public final class BucketLifecycleConfigurationV2Rule
    extends java.lang.Object
    • Method Detail

      • abortIncompleteMultipartUpload

        public java.util.Optional<BucketLifecycleConfigurationV2RuleAbortIncompleteMultipartUpload> abortIncompleteMultipartUpload()
        Returns:
        Configuration block that specifies the days since the initiation of an incomplete multipart upload that Amazon S3 will wait before permanently removing all parts of the upload. See below.
      • expiration

        public java.util.Optional<BucketLifecycleConfigurationV2RuleExpiration> expiration()
        Returns:
        Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. See below.
      • id

        public java.lang.String id()
        Returns:
        Unique identifier for the rule. The value cannot be longer than 255 characters.
      • noncurrentVersionTransitions

        public java.util.List<BucketLifecycleConfigurationV2RuleNoncurrentVersionTransition> noncurrentVersionTransitions()
        Returns:
        Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. See below.
      • prefix

        @Deprecated
        public java.util.Optional<java.lang.String> prefix()
        Deprecated.
        Specify a prefix using 'filter' instead
        Returns:
        Prefix identifying one or more objects to which the rule applies. Use `filter` instead, as this has been deprecated by Amazon S3.
      • status

        public java.lang.String status()
        Returns:
        Whether the rule is currently being applied. Valid values: `Enabled` or `Disabled`.
      • transitions

        public java.util.List<BucketLifecycleConfigurationV2RuleTransition> transitions()
        Returns:
        Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class. See below.