Interface GetBucketLifecycleConfigurationResponse.Builder

  • Method Details

    • rules

      Container for a lifecycle rule.

      Parameters:
      rules - Container for a lifecycle rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Container for a lifecycle rule.

      Parameters:
      rules - Container for a lifecycle rule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • rules

      Container for a lifecycle rule.

      This is a convenience method that creates an instance of the LifecycleRule.Builder avoiding the need to create one manually via LifecycleRule.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to rules(List<LifecycleRule>).

      Parameters:
      rules - a consumer that will call methods on LifecycleRule.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • transitionDefaultMinimumObjectSize

      GetBucketLifecycleConfigurationResponse.Builder transitionDefaultMinimumObjectSize(String transitionDefaultMinimumObjectSize)

      Indicates which default minimum object size behavior is applied to the lifecycle configuration.

      • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

      • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

      To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

      Parameters:
      transitionDefaultMinimumObjectSize - Indicates which default minimum object size behavior is applied to the lifecycle configuration.

      • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

      • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

      To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • transitionDefaultMinimumObjectSize

      GetBucketLifecycleConfigurationResponse.Builder transitionDefaultMinimumObjectSize(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize)

      Indicates which default minimum object size behavior is applied to the lifecycle configuration.

      • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

      • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

      To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

      Parameters:
      transitionDefaultMinimumObjectSize - Indicates which default minimum object size behavior is applied to the lifecycle configuration.

      • all_storage_classes_128K - Objects smaller than 128 KB will not transition to any storage class by default.

      • varies_by_storage_class - Objects smaller than 128 KB will transition to Glacier Flexible Retrieval or Glacier Deep Archive storage classes. By default, all other storage classes will prevent transitions smaller than 128 KB.

      To customize the minimum object size for any transition you can add a filter that specifies a custom ObjectSizeGreaterThan or ObjectSizeLessThan in the body of your transition rule. Custom filters always take precedence over the default transition behavior.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: