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 name 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 |
expectedBucketOwner(String expectedBucketOwner)
The account id of the expected bucket owner.
|
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) |
PutObjectLegalHoldRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
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.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildPutObjectLegalHoldRequest.Builder bucket(String bucket)
The bucket name containing the object that you want to place a Legal Hold on.
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.
bucket - The bucket name containing the object that you want to place a Legal Hold on.
When using this API with an access point, you must direct requests to the access point hostname. The access point hostname takes the form AccessPointName-AccountId.s3-accesspoint.Region.amazonaws.com. When using this operation with an access point through the AWS SDKs, you provide the access point ARN in place of the bucket name. For more information about access point ARNs, see Using Access Points in the Amazon Simple Storage Service Developer Guide.
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.
For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.
contentMD5 - The MD5 hash for the request body.
For requests made using the AWS Command Line Interface (CLI) or AWS SDKs, this field is calculated automatically.
PutObjectLegalHoldRequest.Builder expectedBucketOwner(String expectedBucketOwner)
The account id of the expected bucket owner. If the bucket is owned by a different account, the request will
fail with an HTTP 403 (Access Denied) error.
expectedBucketOwner - The account id of the expected bucket owner. If the bucket is owned by a different account, the
request will fail with an HTTP 403 (Access Denied) error.PutObjectLegalHoldRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderPutObjectLegalHoldRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.