Interface DefaultRetention.Builder

  • Method Details

    • 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:
    • 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:
    • 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

      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.