Interface GetObjectLockConfigurationResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetObjectLockConfigurationResponse.Builder,GetObjectLockConfigurationResponse>,S3Response.Builder,SdkBuilder<GetObjectLockConfigurationResponse.Builder,GetObjectLockConfigurationResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetObjectLockConfigurationResponse
@Mutable @NotThreadSafe public static interface GetObjectLockConfigurationResponse.Builder extends S3Response.Builder, SdkPojo, CopyableBuilder<GetObjectLockConfigurationResponse.Builder,GetObjectLockConfigurationResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default GetObjectLockConfigurationResponse.BuilderobjectLockConfiguration(Consumer<ObjectLockConfiguration.Builder> objectLockConfiguration)The specified bucket's Object Lock configuration.GetObjectLockConfigurationResponse.BuilderobjectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)The specified bucket's Object Lock 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, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
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:
objectLockConfiguration(ObjectLockConfiguration)
-
-