Interface GetObjectRetentionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetObjectRetentionResponse.Builder,,GetObjectRetentionResponse> S3Response.Builder,SdkBuilder<GetObjectRetentionResponse.Builder,,GetObjectRetentionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetObjectRetentionResponse
public static interface GetObjectRetentionResponse.Builder
extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectRetentionResponse.Builder,GetObjectRetentionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionretention(Consumer<ObjectLockRetention.Builder> retention) The container element for an object's retention settings.retention(ObjectLockRetention retention) The container element for an object's retention settings.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.s3.model.S3Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
retention
The container element for an object's retention settings.
- Parameters:
retention- The container element for an object's retention settings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
retention
default GetObjectRetentionResponse.Builder retention(Consumer<ObjectLockRetention.Builder> retention) The container element for an object's retention settings.
This is a convenience method that creates an instance of theObjectLockRetention.Builderavoiding the need to create one manually viaObjectLockRetention.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toretention(ObjectLockRetention).- Parameters:
retention- a consumer that will call methods onObjectLockRetention.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-