public static interface PutObjectLockConfigurationRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutObjectLockConfigurationRequest.Builder,PutObjectLockConfigurationRequest>
Modifier and Type | Method and Description |
---|---|
PutObjectLockConfigurationRequest.Builder |
bucket(String bucket)
The bucket whose Object Lock configuration you want to create or replace.
|
PutObjectLockConfigurationRequest.Builder |
contentMD5(String contentMD5)
The MD5 signature for the configuration included in your request.
|
default PutObjectLockConfigurationRequest.Builder |
objectLockConfiguration(Consumer<ObjectLockConfiguration.Builder> objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
|
PutObjectLockConfigurationRequest.Builder |
objectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
|
PutObjectLockConfigurationRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutObjectLockConfigurationRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PutObjectLockConfigurationRequest.Builder |
requestPayer(RequestPayer requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectLockConfigurationRequest.Builder |
requestPayer(String requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectLockConfigurationRequest.Builder |
token(String token)
|
build
overrideConfiguration
copy
applyMutation, build
PutObjectLockConfigurationRequest.Builder bucket(String bucket)
The bucket whose Object Lock configuration you want to create or replace.
bucket
- The bucket whose Object Lock configuration you want to create or replace.PutObjectLockConfigurationRequest.Builder objectLockConfiguration(ObjectLockConfiguration objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
objectLockConfiguration
- The Object Lock configuration that you want to apply to the specified bucket.default PutObjectLockConfigurationRequest.Builder objectLockConfiguration(Consumer<ObjectLockConfiguration.Builder> objectLockConfiguration)
The Object Lock configuration that you want to apply to the specified bucket.
This is a convenience that creates an instance of theObjectLockConfiguration.Builder
avoiding the
need to create one manually via ObjectLockConfiguration.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to objectLockConfiguration(ObjectLockConfiguration)
.objectLockConfiguration
- a consumer that will call methods on ObjectLockConfiguration.Builder
objectLockConfiguration(ObjectLockConfiguration)
PutObjectLockConfigurationRequest.Builder requestPayer(String requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectLockConfigurationRequest.Builder requestPayer(RequestPayer requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectLockConfigurationRequest.Builder token(String token)
token
- PutObjectLockConfigurationRequest.Builder contentMD5(String contentMD5)
The MD5 signature for the configuration included in your request.
contentMD5
- The MD5 signature for the configuration included in your request.PutObjectLockConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.PutObjectLockConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.