public static class GetObjectResponse.Builder extends Object implements BmcResponse.Builder<GetObjectResponse>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
GetObjectResponse.Builder |
__httpStatusCode__(int __httpStatusCode__) |
GetObjectResponse.Builder |
archivalState(ArchivalState archivalState)
Archival state of an object.
|
GetObjectResponse |
build()
Build the response object.
|
GetObjectResponse.Builder |
cacheControl(String cacheControl)
Cache-Control header, as described in RFC
2616.
|
GetObjectResponse.Builder |
contentDisposition(String contentDisposition)
Content-Disposition header, as described in RFC
2616.
|
GetObjectResponse.Builder |
contentEncoding(String contentEncoding)
Content-Encoding header, as described in RFC
2616.
|
GetObjectResponse.Builder |
contentLanguage(String contentLanguage)
Content-Language header, as described in RFC
2616.
|
GetObjectResponse.Builder |
contentLength(Long contentLength)
The object size in bytes.
|
GetObjectResponse.Builder |
contentMd5(String contentMd5)
Content-MD5 header, as described in RFC
2616.
|
GetObjectResponse.Builder |
contentRange(Range contentRange)
Content-Range header for range requests, per RFC
7233.
|
GetObjectResponse.Builder |
contentType(String contentType)
Content-Type header, as described in RFC
2616.
|
GetObjectResponse.Builder |
copy(GetObjectResponse o)
Copy method to populate the builder with values from the given instance.
|
GetObjectResponse.Builder |
eTag(String eTag)
The entity tag (ETag) for the object.
|
GetObjectResponse.Builder |
expires(Date expires)
The date and time after which the object is no longer cached by a browser, proxy, or
other caching entity.
|
GetObjectResponse.Builder |
headers(Map<String,List<String>> headers) |
GetObjectResponse.Builder |
inputStream(InputStream inputStream)
The returned java.io.InputStream instance, or null if
GetObjectResponse.isNotModified() is true. |
GetObjectResponse.Builder |
isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified.
|
GetObjectResponse.Builder |
lastModified(Date lastModified)
The object modification time, as described in RFC
2616.
|
GetObjectResponse.Builder |
opcClientRequestId(String opcClientRequestId)
Echoes back the value passed in the opc-client-request-id header, for use by clients when
debugging.
|
GetObjectResponse.Builder |
opcContentCrc32c(String opcContentCrc32c)
The base64-encoded, 32-bit CRC32C (Castagnoli) checksum of the object.
|
GetObjectResponse.Builder |
opcContentSha256(String opcContentSha256)
Applicable only if SHA256 was specified in the opc-checksum-algorithm request header
during upload.
|
GetObjectResponse.Builder |
opcContentSha384(String opcContentSha384)
Applicable only if SHA384 was specified in the opc-checksum-algorithm request header
during upload.
|
GetObjectResponse.Builder |
opcMeta(Map<String,String> opcMeta)
The user-defined metadata for the object.
|
GetObjectResponse.Builder |
opcMultipartMd5(String opcMultipartMd5)
Only applicable to objects uploaded using multipart upload.
|
GetObjectResponse.Builder |
opcMultipartSha256(String opcMultipartSha256)
Only applicable to objects uploaded using multipart upload.
|
GetObjectResponse.Builder |
opcMultipartSha384(String opcMultipartSha384)
Only applicable to objects uploaded using multipart upload.
|
GetObjectResponse.Builder |
opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request.
|
GetObjectResponse.Builder |
storageTier(StorageTier storageTier)
The storage tier that the object is stored in.
|
GetObjectResponse.Builder |
timeOfArchival(Date timeOfArchival)
Time that the object is returned to the archived state.
|
GetObjectResponse.Builder |
versionId(String versionId)
VersionId of the object
|
public GetObjectResponse.Builder __httpStatusCode__(int __httpStatusCode__)
__httpStatusCode__
in interface BmcResponse.Builder<GetObjectResponse>
public GetObjectResponse.Builder headers(Map<String,List<String>> headers)
headers
in interface BmcResponse.Builder<GetObjectResponse>
public GetObjectResponse.Builder opcClientRequestId(String opcClientRequestId)
Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.
opcClientRequestId
- the value to setpublic GetObjectResponse.Builder opcRequestId(String opcRequestId)
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide this request ID.
opcRequestId
- the value to setpublic GetObjectResponse.Builder eTag(String eTag)
The entity tag (ETag) for the object.
eTag
- the value to setpublic GetObjectResponse.Builder opcMeta(Map<String,String> opcMeta)
The user-defined metadata for the object.
opcMeta
- the value to setpublic GetObjectResponse.Builder contentLength(Long contentLength)
The object size in bytes.
contentLength
- the value to setpublic GetObjectResponse.Builder contentRange(Range contentRange)
Content-Range header for range requests, per RFC 7233.
contentRange
- the value to setpublic GetObjectResponse.Builder contentMd5(String contentMd5)
Content-MD5 header, as described in RFC 2616. Unavailable for objects uploaded using multipart upload.
contentMd5
- the value to setpublic GetObjectResponse.Builder opcMultipartMd5(String opcMultipartMd5)
Only applicable to objects uploaded using multipart upload. Base-64 representation of the multipart object hash. The multipart object hash is calculated by taking the MD5 hashes of the parts, concatenating the binary representation of those hashes in order of their part numbers, and then calculating the MD5 hash of the concatenated values.
opcMultipartMd5
- the value to setpublic GetObjectResponse.Builder opcContentCrc32c(String opcContentCrc32c)
The base64-encoded, 32-bit CRC32C (Castagnoli) checksum of the object. Even for objects uploaded using multipart upload, this header returns the CRC32C (Castagnoli) checksum of the complete reconstructed object.
opcContentCrc32c
- the value to setpublic GetObjectResponse.Builder opcContentSha256(String opcContentSha256)
Applicable only if SHA256 was specified in the opc-checksum-algorithm request header during upload. The base64-encoded SHA256 hash of the object as computed during upload. Unavailable for objects uploaded using multipart upload.
opcContentSha256
- the value to setpublic GetObjectResponse.Builder opcMultipartSha256(String opcMultipartSha256)
Only applicable to objects uploaded using multipart upload. Applicable only if SHA256 was specified in the opc-checksum-algorithm request header during upload. Base-64 representation of the multipart object SHA256 hash. The multipart object hash is calculated by taking the SHA256 hashes of the parts, concatenating the binary representation of those hashes in order of their part numbers, and then calculating the SHA256 hash of the concatenated values.
opcMultipartSha256
- the value to setpublic GetObjectResponse.Builder opcContentSha384(String opcContentSha384)
Applicable only if SHA384 was specified in the opc-checksum-algorithm request header during upload. The base64-encoded SHA384 hash of the object as computed during upload. Unavailable for objects uploaded using multipart upload.
opcContentSha384
- the value to setpublic GetObjectResponse.Builder opcMultipartSha384(String opcMultipartSha384)
Only applicable to objects uploaded using multipart upload. Applicable only if SHA384 was specified in the opc-checksum-algorithm request header during upload. Base-64 representation of the multipart object SHA384 hash. The multipart object hash is calculated by taking the SHA384 hashes of the parts, concatenating the binary representation of those hashes in order of their part numbers, and then calculating the SHA384 hash of the concatenated values.
opcMultipartSha384
- the value to setpublic GetObjectResponse.Builder contentType(String contentType)
Content-Type header, as described in RFC 2616.
contentType
- the value to setpublic GetObjectResponse.Builder contentLanguage(String contentLanguage)
Content-Language header, as described in RFC 2616.
contentLanguage
- the value to setpublic GetObjectResponse.Builder contentEncoding(String contentEncoding)
Content-Encoding header, as described in RFC 2616.
contentEncoding
- the value to setpublic GetObjectResponse.Builder cacheControl(String cacheControl)
Cache-Control header, as described in RFC 2616.
cacheControl
- the value to setpublic GetObjectResponse.Builder contentDisposition(String contentDisposition)
Content-Disposition header, as described in RFC 2616.
contentDisposition
- the value to setpublic GetObjectResponse.Builder lastModified(Date lastModified)
The object modification time, as described in RFC 2616.
lastModified
- the value to setpublic GetObjectResponse.Builder storageTier(StorageTier storageTier)
The storage tier that the object is stored in.
storageTier
- the value to setpublic GetObjectResponse.Builder archivalState(ArchivalState archivalState)
Archival state of an object. This field is set only for objects in Archive tier.
archivalState
- the value to setpublic GetObjectResponse.Builder timeOfArchival(Date timeOfArchival)
Time that the object is returned to the archived state. This field is only present for restored objects.
timeOfArchival
- the value to setpublic GetObjectResponse.Builder versionId(String versionId)
VersionId of the object
versionId
- the value to setpublic GetObjectResponse.Builder expires(Date expires)
The date and time after which the object is no longer cached by a browser, proxy, or other caching entity. See RFC 2616.
expires
- the value to setpublic GetObjectResponse.Builder inputStream(InputStream inputStream)
The returned java.io.InputStream instance, or null if GetObjectResponse.isNotModified()
is true.
inputStream
- the value to setpublic GetObjectResponse.Builder isNotModified(boolean isNotModified)
Flag to indicate whether or not the object was modified. If this is true, the getter for the object itself will return null. Callers should check this if they specified one of the request params that might result in a conditional response (like ‘if-match’/‘if-none-match’).
isNotModified
in interface BmcResponse.Builder<GetObjectResponse>
true
- if the object was not modifiedpublic GetObjectResponse.Builder copy(GetObjectResponse o)
Copy method to populate the builder with values from the given instance.
copy
in interface BmcResponse.Builder<GetObjectResponse>
o
- other request from which to copy valuespublic GetObjectResponse build()
Build the response object.
build
in interface BmcResponse.Builder<GetObjectResponse>
Copyright © 2016–2024. All rights reserved.