public static interface PutObjectRetentionRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutObjectRetentionRequest.Builder,PutObjectRetentionRequest>
Modifier and Type | Method and Description |
---|---|
PutObjectRetentionRequest.Builder |
bucket(String bucket)
The bucket that contains the object you want to apply this Object Retention configuration to.
|
PutObjectRetentionRequest.Builder |
bypassGovernanceRetention(Boolean bypassGovernanceRetention)
|
PutObjectRetentionRequest.Builder |
contentMD5(String contentMD5)
The MD5 signature for the configuration included in your request.
|
PutObjectRetentionRequest.Builder |
key(String key)
The key name for the object that you want to apply this Object Retention configuration to.
|
PutObjectRetentionRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
PutObjectRetentionRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
PutObjectRetentionRequest.Builder |
requestPayer(RequestPayer requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectRetentionRequest.Builder |
requestPayer(String requestPayer)
Sets the value of the RequestPayer property for this object.
|
default PutObjectRetentionRequest.Builder |
retention(Consumer<ObjectLockRetention.Builder> retention)
The container element for the Object Retention configuration.
|
PutObjectRetentionRequest.Builder |
retention(ObjectLockRetention retention)
The container element for the Object Retention configuration.
|
PutObjectRetentionRequest.Builder |
versionId(String versionId)
The version ID for the object that you want to apply this Object Retention configuration to.
|
build
overrideConfiguration
copy
applyMutation, build
PutObjectRetentionRequest.Builder bucket(String bucket)
The bucket that contains the object you want to apply this Object Retention configuration to.
bucket
- The bucket that contains the object you want to apply this Object Retention configuration to.PutObjectRetentionRequest.Builder key(String key)
The key name for the object that you want to apply this Object Retention configuration to.
key
- The key name for the object that you want to apply this Object Retention configuration to.PutObjectRetentionRequest.Builder retention(ObjectLockRetention retention)
The container element for the Object Retention configuration.
retention
- The container element for the Object Retention configuration.default PutObjectRetentionRequest.Builder retention(Consumer<ObjectLockRetention.Builder> retention)
The container element for the Object Retention configuration.
This is a convenience that creates an instance of theObjectLockRetention.Builder
avoiding the need
to create one manually via ObjectLockRetention.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to retention(ObjectLockRetention)
.retention
- a consumer that will call methods on ObjectLockRetention.Builder
retention(ObjectLockRetention)
PutObjectRetentionRequest.Builder requestPayer(String requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectRetentionRequest.Builder requestPayer(RequestPayer requestPayer)
requestPayer
- The new value for the RequestPayer property for this object.RequestPayer
,
RequestPayer
PutObjectRetentionRequest.Builder versionId(String versionId)
The version ID for the object that you want to apply this Object Retention configuration to.
versionId
- The version ID for the object that you want to apply this Object Retention configuration to.PutObjectRetentionRequest.Builder bypassGovernanceRetention(Boolean bypassGovernanceRetention)
bypassGovernanceRetention
- PutObjectRetentionRequest.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.PutObjectRetentionRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration
in interface AwsRequest.Builder
PutObjectRetentionRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration
in interface AwsRequest.Builder
Copyright © 2018. All rights reserved.