Interface GetBucketLifecycleConfigurationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetBucketLifecycleConfigurationResponse.Builder,
,GetBucketLifecycleConfigurationResponse> S3ControlResponse.Builder
,SdkBuilder<GetBucketLifecycleConfigurationResponse.Builder,
,GetBucketLifecycleConfigurationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetBucketLifecycleConfigurationResponse
public static interface GetBucketLifecycleConfigurationResponse.Builder
extends S3ControlResponse.Builder, SdkPojo, CopyableBuilder<GetBucketLifecycleConfigurationResponse.Builder,GetBucketLifecycleConfigurationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionrules
(Collection<LifecycleRule> rules) Container for the lifecycle rule of the Outposts bucket.rules
(Consumer<LifecycleRule.Builder>... rules) Container for the lifecycle rule of the Outposts bucket.rules
(LifecycleRule... rules) Container for the lifecycle rule of the Outposts bucket.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.s3control.model.S3ControlResponse.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 the lifecycle rule of the Outposts bucket.
- Parameters:
rules
- Container for the lifecycle rule of the Outposts bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Container for the lifecycle rule of the Outposts bucket.
- Parameters:
rules
- Container for the lifecycle rule of the Outposts bucket.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
Container for the lifecycle rule of the Outposts bucket.
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:
-