Class CreateMultipartUploadRequest.Builder
- java.lang.Object
-
- com.oracle.bmc.objectstorage.requests.CreateMultipartUploadRequest.Builder
-
- All Implemented Interfaces:
BmcRequest.Builder<CreateMultipartUploadRequest,CreateMultipartUploadDetails>
- Enclosing class:
- CreateMultipartUploadRequest
public static class CreateMultipartUploadRequest.Builder extends Object implements BmcRequest.Builder<CreateMultipartUploadRequest,CreateMultipartUploadDetails>
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateMultipartUploadRequest.Builder
body$(CreateMultipartUploadDetails body)
Alternative setter for the body parameter.CreateMultipartUploadRequest.Builder
bucketName(String bucketName)
The name of the bucket.CreateMultipartUploadRequest
build()
Build the instance of CreateMultipartUploadRequest as configured by this builderCreateMultipartUploadRequest
buildWithoutInvocationCallback()
Build the instance of CreateMultipartUploadRequest as configured by this builderCreateMultipartUploadRequest.Builder
copy(CreateMultipartUploadRequest o)
Copy method to populate the builder with values from the given instance.CreateMultipartUploadRequest.Builder
createMultipartUploadDetails(CreateMultipartUploadDetails createMultipartUploadDetails)
Request object for creating a multipart upload.CreateMultipartUploadRequest.Builder
ifMatch(String ifMatch)
The entity tag (ETag) to match with the ETag of an existing resource.CreateMultipartUploadRequest.Builder
ifNoneMatch(String ifNoneMatch)
The entity tag (ETag) to avoid matching.CreateMultipartUploadRequest.Builder
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.CreateMultipartUploadRequest.Builder
namespaceName(String namespaceName)
The Object Storage namespace used for the request.CreateMultipartUploadRequest.Builder
opcChecksumAlgorithm(ChecksumAlgorithm opcChecksumAlgorithm)
The optional checksum algorithm to use to compute and store the checksum of the body of the HTTP request (or the parts in case of multipart uploads), in addition to the default MD5 checksum.CreateMultipartUploadRequest.Builder
opcClientRequestId(String opcClientRequestId)
The client request ID for tracing.CreateMultipartUploadRequest.Builder
opcSseCustomerAlgorithm(String opcSseCustomerAlgorithm)
The optional header that specifies “AES256” as the encryption algorithm.CreateMultipartUploadRequest.Builder
opcSseCustomerKey(String opcSseCustomerKey)
The optional header that specifies the base64-encoded 256-bit encryption key to use to encrypt or decrypt the data.CreateMultipartUploadRequest.Builder
opcSseCustomerKeySha256(String opcSseCustomerKeySha256)
The optional header that specifies the base64-encoded SHA256 hash of the encryption key.CreateMultipartUploadRequest.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.CreateMultipartUploadRequest.Builder
retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.
-
-
-
Method Detail
-
namespaceName
public CreateMultipartUploadRequest.Builder namespaceName(String namespaceName)
The Object Storage namespace used for the request.- Parameters:
namespaceName
- the value to set- Returns:
- this builder instance
-
bucketName
public CreateMultipartUploadRequest.Builder bucketName(String bucketName)
The name of the bucket.Avoid entering confidential information. Example: my-new-bucket1
- Parameters:
bucketName
- the value to set- Returns:
- this builder instance
-
createMultipartUploadDetails
public CreateMultipartUploadRequest.Builder createMultipartUploadDetails(CreateMultipartUploadDetails createMultipartUploadDetails)
Request object for creating a multipart upload.- Parameters:
createMultipartUploadDetails
- the value to set- Returns:
- this builder instance
-
ifMatch
public CreateMultipartUploadRequest.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.
- Parameters:
ifMatch
- the value to set- Returns:
- this builder instance
-
ifNoneMatch
public CreateMultipartUploadRequest.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.
- Parameters:
ifNoneMatch
- the value to set- Returns:
- this builder instance
-
opcClientRequestId
public CreateMultipartUploadRequest.Builder opcClientRequestId(String opcClientRequestId)
The client request ID for tracing.- Parameters:
opcClientRequestId
- the value to set- Returns:
- this builder instance
-
opcSseCustomerAlgorithm
public CreateMultipartUploadRequest.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.
- Parameters:
opcSseCustomerAlgorithm
- the value to set- Returns:
- this builder instance
-
opcSseCustomerKey
public CreateMultipartUploadRequest.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.
- Parameters:
opcSseCustomerKey
- the value to set- Returns:
- this builder instance
-
opcSseCustomerKeySha256
public CreateMultipartUploadRequest.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.
- Parameters:
opcSseCustomerKeySha256
- the value to set- Returns:
- this builder instance
-
opcSseKmsKeyId
public CreateMultipartUploadRequest.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.- Parameters:
opcSseKmsKeyId
- the value to set- Returns:
- this builder instance
-
opcChecksumAlgorithm
public CreateMultipartUploadRequest.Builder opcChecksumAlgorithm(ChecksumAlgorithm opcChecksumAlgorithm)
The optional checksum algorithm to use to compute and store the checksum of the body of the HTTP request (or the parts in case of multipart uploads), in addition to the default MD5 checksum.- Parameters:
opcChecksumAlgorithm
- the value to set- Returns:
- this builder instance
-
invocationCallback
public CreateMultipartUploadRequest.Builder invocationCallback(com.oracle.bmc.http.client.RequestInterceptor invocationCallback)
Set the invocation callback for the request to be built.- Parameters:
invocationCallback
- the invocation callback to be set for the request- Returns:
- this builder instance
-
retryConfiguration
public CreateMultipartUploadRequest.Builder retryConfiguration(RetryConfiguration retryConfiguration)
Set the retry configuration for the request to be built.- Parameters:
retryConfiguration
- the retry configuration to be used for the request- Returns:
- this builder instance
-
copy
public CreateMultipartUploadRequest.Builder copy(CreateMultipartUploadRequest o)
Copy method to populate the builder with values from the given instance.- Specified by:
copy
in interfaceBmcRequest.Builder<CreateMultipartUploadRequest,CreateMultipartUploadDetails>
- Parameters:
o
- other request from which to copy values- Returns:
- this builder instance
-
build
public CreateMultipartUploadRequest build()
Build the instance of CreateMultipartUploadRequest as configured by this builderNote that this method takes calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuildWithoutInvocationCallback()
does not.This is the preferred method to build an instance.
- Specified by:
build
in interfaceBmcRequest.Builder<CreateMultipartUploadRequest,CreateMultipartUploadDetails>
- Returns:
- instance of CreateMultipartUploadRequest
-
body$
public CreateMultipartUploadRequest.Builder body$(CreateMultipartUploadDetails body)
Alternative setter for the body parameter.- Specified by:
body$
in interfaceBmcRequest.Builder<CreateMultipartUploadRequest,CreateMultipartUploadDetails>
- Parameters:
body
- the body parameter- Returns:
- this builder instance
-
buildWithoutInvocationCallback
public CreateMultipartUploadRequest buildWithoutInvocationCallback()
Build the instance of CreateMultipartUploadRequest as configured by this builderNote that this method does not take calls to
invocationCallback(com.oracle.bmc.http.client.RequestInterceptor)
into account, while the methodbuild()
does- Returns:
- instance of CreateMultipartUploadRequest
-
-