Class BucketLifecycleRuleExpiration


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

      • date

        public java.util.Optional<java.lang.String> date()
        Returns:
        Date after which you want the corresponding action to take effect.
      • days

        public java.util.Optional<java.lang.Integer> days()
        Returns:
        Number of days after object creation when the specific rule action takes effect.
      • expiredObjectDeleteMarker

        public java.util.Optional<java.lang.Boolean> expiredObjectDeleteMarker()
        Returns:
        On a versioned bucket (versioning-enabled or versioning-suspended bucket), you can add this element in the lifecycle configuration to direct Amazon S3 to delete expired object delete markers. This cannot be specified with Days or Date in a Lifecycle Expiration Policy.