Interface GetBucketLifecycleConfigurationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetBucketLifecycleConfigurationResponse.Builder,
,GetBucketLifecycleConfigurationResponse> S3Response.Builder
,SdkBuilder<GetBucketLifecycleConfigurationResponse.Builder,
,GetBucketLifecycleConfigurationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBucketLifecycleConfigurationResponse
-
Method Summary
Modifier and TypeMethodDescriptionrules
(Collection<LifecycleRule> rules) Container for a lifecycle rule.rules
(Consumer<LifecycleRule.Builder>... rules) Container for a lifecycle rule.rules
(LifecycleRule... rules) Container for a lifecycle rule.transitionDefaultMinimumObjectSize
(String transitionDefaultMinimumObjectSize) Indicates which default minimum object size behavior is applied to the lifecycle configuration.transitionDefaultMinimumObjectSize
(TransitionDefaultMinimumObjectSize transitionDefaultMinimumObjectSize) Indicates which default minimum object size behavior is applied to the lifecycle configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
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 theLifecycleRule.Builder
avoiding the need to create one manually viaLifecycleRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<LifecycleRule>)
.- Parameters:
rules
- a consumer that will call methods onLifecycleRule.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
orObjectSizeLessThan
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
orObjectSizeLessThan
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
orObjectSizeLessThan
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
orObjectSizeLessThan
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:
-
-