public static class UploadPartRequest.Builder extends Object implements BmcRequest.Builder<UploadPartRequest,InputStream>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
UploadPartRequest.Builder |
body$(InputStream body)
Alternative setter for the body parameter.
|
UploadPartRequest.Builder |
bucketName(String bucketName)
The name of the bucket.
|
UploadPartRequest |
build()
Build the instance of UploadPartRequest as configured by this builder
|
UploadPartRequest |
buildWithoutInvocationCallback()
Build the instance of UploadPartRequest as configured by this builder
|
UploadPartRequest.Builder |
contentLength(Long contentLength)
The content length of the body.
|
UploadPartRequest.Builder |
contentMD5(String contentMD5)
The optional header that defines the base64-encoded MD5 hash of the body.
|
UploadPartRequest.Builder |
copy(UploadPartRequest o)
Copy method to populate the builder with values from the given instance.
|
UploadPartRequest.Builder |
expect(String expect)
A value of
100-continue requests preliminary verification of the request method,
path, and headers before the request body is sent. |
UploadPartRequest.Builder |
ifMatch(String ifMatch)
The entity tag (ETag) to match with the ETag of an existing resource.
|
UploadPartRequest.Builder |
ifNoneMatch(String ifNoneMatch)
The entity tag (ETag) to avoid matching.
|
UploadPartRequest.Builder |
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
|
UploadPartRequest.Builder |
namespaceName(String namespaceName)
The Object Storage namespace used for the request.
|
UploadPartRequest.Builder |
objectName(String objectName)
The name of the object.
|
UploadPartRequest.Builder |
opcClientRequestId(String opcClientRequestId)
The client request ID for tracing.
|
UploadPartRequest.Builder |
opcSseCustomerAlgorithm(String opcSseCustomerAlgorithm)
The optional header that specifies “AES256” as the encryption algorithm.
|
UploadPartRequest.Builder |
opcSseCustomerKey(String opcSseCustomerKey)
The optional header that specifies the base64-encoded 256-bit encryption key to use to
encrypt or decrypt the data.
|
UploadPartRequest.Builder |
opcSseCustomerKeySha256(String opcSseCustomerKeySha256)
The optional header that specifies the base64-encoded SHA256 hash of the encryption key.
|
UploadPartRequest.Builder |
opcSseKmsKeyId(String opcSseKmsKeyId)
The OCID of a
master encryption key used to call the Key Management service to generate a data
encryption key or to encrypt or decrypt a data encryption key.
|
UploadPartRequest.Builder |
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
|
UploadPartRequest.Builder |
uploadId(String uploadId)
The upload ID for a multipart upload.
|
UploadPartRequest.Builder |
uploadPartBody(InputStream uploadPartBody)
The part being uploaded to the Object Storage service.
|
UploadPartRequest.Builder |
uploadPartNum(Integer uploadPartNum)
The part number that identifies the object part currently being uploaded.
|
public UploadPartRequest.Builder namespaceName(String namespaceName)
The Object Storage namespace used for the request.
namespaceName
- the value to setpublic UploadPartRequest.Builder bucketName(String bucketName)
The name of the bucket. Avoid entering confidential information. Example: my-new-bucket1
bucketName
- the value to setpublic UploadPartRequest.Builder objectName(String objectName)
The name of the object. Avoid entering confidential information. Example: test/object1.log
objectName
- the value to setpublic UploadPartRequest.Builder uploadId(String uploadId)
The upload ID for a multipart upload.
uploadId
- the value to setpublic UploadPartRequest.Builder uploadPartNum(Integer uploadPartNum)
The part number that identifies the object part currently being uploaded.
uploadPartNum
- the value to setpublic UploadPartRequest.Builder contentLength(Long contentLength)
The content length of the body.
contentLength
- the value to setpublic UploadPartRequest.Builder uploadPartBody(InputStream uploadPartBody)
The part being uploaded to the Object Storage service.
uploadPartBody
- the value to setpublic UploadPartRequest.Builder opcClientRequestId(String opcClientRequestId)
The client request ID for tracing.
opcClientRequestId
- the value to setpublic UploadPartRequest.Builder ifMatch(String ifMatch)
The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload the resource.
ifMatch
- the value to setpublic UploadPartRequest.Builder ifNoneMatch(String ifNoneMatch)
The entity tag (ETag) to avoid matching. The only valid value is ‘*’, which indicates that the request should fail if the resource already exists.
ifNoneMatch
- the value to setpublic UploadPartRequest.Builder expect(String expect)
A value of 100-continue
requests preliminary verification of the request method,
path, and headers before the request body is sent. If no error results from such
verification, the server will send a 100 (Continue) interim response to indicate
readiness for the request body. The only allowed value for this parameter is
“100-Continue” (case-insensitive).
expect
- the value to setpublic UploadPartRequest.Builder contentMD5(String contentMD5)
The optional header that defines the base64-encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error is returned with the message:
"The computed MD5 of the request body (ACTUAL_MD5) does not match the Content-MD5 header (HEADER_MD5)"
contentMD5
- the value to setpublic UploadPartRequest.Builder opcSseCustomerAlgorithm(String opcSseCustomerAlgorithm)
The optional header that specifies “AES256” as the encryption algorithm. For more information, see Using Your Own Keys for Server-Side Encryption.
opcSseCustomerAlgorithm
- the value to setpublic UploadPartRequest.Builder opcSseCustomerKey(String opcSseCustomerKey)
The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data. For more information, see Using Your Own Keys for Server-Side Encryption.
opcSseCustomerKey
- the value to setpublic UploadPartRequest.Builder opcSseCustomerKeySha256(String opcSseCustomerKeySha256)
The optional header that specifies the base64-encoded SHA256 hash of the encryption key. This value is used to check the integrity of the encryption key. For more information, see Using Your Own Keys for Server-Side Encryption.
opcSseCustomerKeySha256
- the value to setpublic UploadPartRequest.Builder opcSseKmsKeyId(String opcSseKmsKeyId)
The OCID of a master encryption key used to call the Key Management service to generate a data encryption key or to encrypt or decrypt a data encryption key.
opcSseKmsKeyId
- the value to setpublic UploadPartRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.
invocationCallback
- the invocation callback to be set for the requestpublic UploadPartRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
retryConfiguration
- the retry configuration to be used for the requestpublic UploadPartRequest.Builder copy(UploadPartRequest o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcRequest.Builder<UploadPartRequest,InputStream>
o
- other request from which to copy valuespublic UploadPartRequest build()
Build the instance of UploadPartRequest as configured by this builder
Note that this method takes calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method buildWithoutInvocationCallback()
does not.
This is the preferred method to build an instance.
build
in interface BmcRequest.Builder<UploadPartRequest,InputStream>
public UploadPartRequest.Builder body$(InputStream body)
Alternative setter for the body parameter.
body$
in interface BmcRequest.Builder<UploadPartRequest,InputStream>
body
- the body parameterpublic UploadPartRequest buildWithoutInvocationCallback()
Build the instance of UploadPartRequest as configured by this builder
Note that this method does not take calls to invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account,
while the method build()
does
Copyright © 2016–2024. All rights reserved.