Interface ObjectLockRule.Builder

    • Method Detail

      • defaultRetention

        ObjectLockRule.Builder defaultRetention​(DefaultRetention defaultRetention)

        The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.

        Parameters:
        defaultRetention - The default Object Lock retention mode and period that you want to apply to new objects placed in the specified bucket. Bucket settings require both a mode and a period. The period can be either Days or Years but you must select one. You cannot specify Days and Years at the same time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.