Interface DefaultRetention.Builder

    • Method Detail

      • mode

        DefaultRetention.Builder mode​(String mode)

        The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.

        Parameters:
        mode - The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ObjectLockRetentionMode, ObjectLockRetentionMode
      • mode

        DefaultRetention.Builder mode​(ObjectLockRetentionMode mode)

        The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.

        Parameters:
        mode - The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. Must be used with either Days or Years.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        ObjectLockRetentionMode, ObjectLockRetentionMode
      • days

        DefaultRetention.Builder days​(Integer days)

        The number of days that you want to specify for the default retention period. Must be used with Mode.

        Parameters:
        days - The number of days that you want to specify for the default retention period. Must be used with Mode.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • years

        DefaultRetention.Builder years​(Integer years)

        The number of years that you want to specify for the default retention period. Must be used with Mode.

        Parameters:
        years - The number of years that you want to specify for the default retention period. Must be used with Mode.
        Returns:
        Returns a reference to this object so that method calls can be chained together.