Interface GetObjectLockConfigurationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetObjectLockConfigurationResponse.Builder,,GetObjectLockConfigurationResponse> S3Response.Builder,SdkBuilder<GetObjectLockConfigurationResponse.Builder,,GetObjectLockConfigurationResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetObjectLockConfigurationResponse
public static interface GetObjectLockConfigurationResponse.Builder
extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectLockConfigurationResponse.Builder,GetObjectLockConfigurationResponse>
-
Method Summary
Modifier and TypeMethodDescriptionobjectLockConfiguration(Consumer<ObjectLockConfiguration.Builder> objectLockConfiguration) The specified bucket's Object Lock configuration.objectLockConfiguration(ObjectLockConfiguration objectLockConfiguration) The specified bucket's Object Lock configuration.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
-
objectLockConfiguration
GetObjectLockConfigurationResponse.Builder objectLockConfiguration(ObjectLockConfiguration objectLockConfiguration) The specified bucket's Object Lock configuration.
- Parameters:
objectLockConfiguration- The specified bucket's Object Lock configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
objectLockConfiguration
default GetObjectLockConfigurationResponse.Builder objectLockConfiguration(Consumer<ObjectLockConfiguration.Builder> objectLockConfiguration) The specified bucket's Object Lock configuration.
This is a convenience method that creates an instance of theObjectLockConfiguration.Builderavoiding the need to create one manually viaObjectLockConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toobjectLockConfiguration(ObjectLockConfiguration).- Parameters:
objectLockConfiguration- a consumer that will call methods onObjectLockConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-