public static interface PutObjectLegalHoldRequest.Builder extends S3Request.Builder, SdkPojo, CopyableBuilder<PutObjectLegalHoldRequest.Builder,PutObjectLegalHoldRequest>
| Modifier and Type | Method and Description |
|---|---|
PutObjectLegalHoldRequest.Builder |
bucket(String bucket)
The bucket containing the object that you want to place a Legal Hold on.
|
PutObjectLegalHoldRequest.Builder |
contentMD5(String contentMD5)
The MD5 hash for the request body.
|
PutObjectLegalHoldRequest.Builder |
key(String key)
The key name for the object that you want to place a Legal Hold on.
|
default PutObjectLegalHoldRequest.Builder |
legalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)
Container element for the Legal Hold configuration you want to apply to the specified object.
|
PutObjectLegalHoldRequest.Builder |
legalHold(ObjectLockLegalHold legalHold)
Container element for the Legal Hold configuration you want to apply to the specified object.
|
PutObjectLegalHoldRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
PutObjectLegalHoldRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
PutObjectLegalHoldRequest.Builder |
requestPayer(RequestPayer requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectLegalHoldRequest.Builder |
requestPayer(String requestPayer)
Sets the value of the RequestPayer property for this object.
|
PutObjectLegalHoldRequest.Builder |
versionId(String versionId)
The version ID of the object that you want to place a Legal Hold on.
|
buildoverrideConfigurationcopyapplyMutation, buildPutObjectLegalHoldRequest.Builder bucket(String bucket)
The bucket containing the object that you want to place a Legal Hold on.
bucket - The bucket containing the object that you want to place a Legal Hold on.PutObjectLegalHoldRequest.Builder key(String key)
The key name for the object that you want to place a Legal Hold on.
key - The key name for the object that you want to place a Legal Hold on.PutObjectLegalHoldRequest.Builder legalHold(ObjectLockLegalHold legalHold)
Container element for the Legal Hold configuration you want to apply to the specified object.
legalHold - Container element for the Legal Hold configuration you want to apply to the specified object.default PutObjectLegalHoldRequest.Builder legalHold(Consumer<ObjectLockLegalHold.Builder> legalHold)
Container element for the Legal Hold configuration you want to apply to the specified object.
This is a convenience that creates an instance of theObjectLockLegalHold.Builder avoiding the need
to create one manually via ObjectLockLegalHold.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to legalHold(ObjectLockLegalHold).legalHold - a consumer that will call methods on ObjectLockLegalHold.BuilderlegalHold(ObjectLockLegalHold)PutObjectLegalHoldRequest.Builder requestPayer(String requestPayer)
requestPayer - The new value for the RequestPayer property for this object.RequestPayer,
RequestPayerPutObjectLegalHoldRequest.Builder requestPayer(RequestPayer requestPayer)
requestPayer - The new value for the RequestPayer property for this object.RequestPayer,
RequestPayerPutObjectLegalHoldRequest.Builder versionId(String versionId)
The version ID of the object that you want to place a Legal Hold on.
versionId - The version ID of the object that you want to place a Legal Hold on.PutObjectLegalHoldRequest.Builder contentMD5(String contentMD5)
The MD5 hash for the request body.
contentMD5 - The MD5 hash for the request body.PutObjectLegalHoldRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderoverrideConfiguration - The override configuration.PutObjectLegalHoldRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.BuilderoverrideConfiguration in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.