Class HeadObjectResponse.Builder
- java.lang.Object
- 
- com.oracle.bmc.objectstorage.responses.HeadObjectResponse.Builder
 
- 
- All Implemented Interfaces:
- BmcResponse.Builder<HeadObjectResponse>
 - Enclosing class:
- HeadObjectResponse
 
 public static class HeadObjectResponse.Builder extends Object implements BmcResponse.Builder<HeadObjectResponse> 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description HeadObjectResponse.Builder__httpStatusCode__(int __httpStatusCode__)HeadObjectResponse.BuilderarchivalState(ArchivalState archivalState)Archival state of an object.HeadObjectResponsebuild()Build the response object.HeadObjectResponse.BuildercacheControl(String cacheControl)Cache-Control header, as described in RFC 2616.HeadObjectResponse.BuildercontentDisposition(String contentDisposition)Content-Disposition header, as described in RFC 2616.HeadObjectResponse.BuildercontentEncoding(String contentEncoding)Content-Encoding header, as described in RFC 2616.HeadObjectResponse.BuildercontentLanguage(String contentLanguage)Content-Language header, as described in RFC 2616.HeadObjectResponse.BuildercontentLength(Long contentLength)The object size in bytes.HeadObjectResponse.BuildercontentMd5(String contentMd5)Content-MD5 header, as described in RFC 2616.HeadObjectResponse.BuildercontentType(String contentType)Content-Type header, as described in RFC 2616.HeadObjectResponse.Buildercopy(HeadObjectResponse o)Copy method to populate the builder with values from the given instance.HeadObjectResponse.BuildereTag(String eTag)The entity tag (ETag) for the object.HeadObjectResponse.Builderheaders(Map<String,List<String>> headers)HeadObjectResponse.BuilderisNotModified(boolean isNotModified)Flag to indicate whether or not the object was modified.HeadObjectResponse.BuilderlastModified(Date lastModified)The object modification time, as described in RFC 2616.HeadObjectResponse.BuilderopcClientRequestId(String opcClientRequestId)Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.HeadObjectResponse.BuilderopcContentCrc32c(String opcContentCrc32c)The base64-encoded, 32-bit CRC32C (Castagnoli) checksum of the object.HeadObjectResponse.BuilderopcContentSha256(String opcContentSha256)Applicable only if SHA256 was specified in the opc-checksum-algorithm request header during upload.HeadObjectResponse.BuilderopcContentSha384(String opcContentSha384)Applicable only if SHA384 was specified in the opc-checksum-algorithm request header during upload.HeadObjectResponse.BuilderopcMeta(Map<String,String> opcMeta)The user-defined metadata for the object.HeadObjectResponse.BuilderopcMultipartMd5(String opcMultipartMd5)Only applicable to objects uploaded using multipart upload.HeadObjectResponse.BuilderopcMultipartSha256(String opcMultipartSha256)Only applicable to objects uploaded using multipart upload.HeadObjectResponse.BuilderopcMultipartSha384(String opcMultipartSha384)Only applicable to objects uploaded using multipart upload.HeadObjectResponse.BuilderopcRequestId(String opcRequestId)Unique Oracle-assigned identifier for the request.HeadObjectResponse.BuilderstorageTier(StorageTier storageTier)The storage tier that the object is stored in.HeadObjectResponse.BuildertimeOfArchival(Date timeOfArchival)Time that the object is returned to the archived state.HeadObjectResponse.BuilderversionId(String versionId)VersionId of the object requested
 
- 
- 
- 
Method Detail- 
__httpStatusCode__public HeadObjectResponse.Builder __httpStatusCode__(int __httpStatusCode__) - Specified by:
- __httpStatusCode__in interface- BmcResponse.Builder<HeadObjectResponse>
 
 - 
headerspublic HeadObjectResponse.Builder headers(Map<String,List<String>> headers) - Specified by:
- headersin interface- BmcResponse.Builder<HeadObjectResponse>
 
 - 
opcClientRequestIdpublic HeadObjectResponse.Builder opcClientRequestId(String opcClientRequestId) Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.- Parameters:
- opcClientRequestId- the value to set
- Returns:
- this builder
 
 - 
opcRequestIdpublic HeadObjectResponse.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. - Parameters:
- opcRequestId- the value to set
- Returns:
- this builder
 
 - 
eTagpublic HeadObjectResponse.Builder eTag(String eTag) The entity tag (ETag) for the object.- Parameters:
- eTag- the value to set
- Returns:
- this builder
 
 - 
opcMetapublic HeadObjectResponse.Builder opcMeta(Map<String,String> opcMeta) The user-defined metadata for the object.- Parameters:
- opcMeta- the value to set
- Returns:
- this builder
 
 - 
contentLengthpublic HeadObjectResponse.Builder contentLength(Long contentLength) The object size in bytes.- Parameters:
- contentLength- the value to set
- Returns:
- this builder
 
 - 
contentMd5public HeadObjectResponse.Builder contentMd5(String contentMd5) Content-MD5 header, as described in RFC 2616.Unavailable for objects uploaded using multipart upload. - Parameters:
- contentMd5- the value to set
- Returns:
- this builder
 
 - 
opcMultipartMd5public HeadObjectResponse.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. - Parameters:
- opcMultipartMd5- the value to set
- Returns:
- this builder
 
 - 
opcContentCrc32cpublic HeadObjectResponse.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. - Parameters:
- opcContentCrc32c- the value to set
- Returns:
- this builder
 
 - 
opcContentSha256public HeadObjectResponse.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. - Parameters:
- opcContentSha256- the value to set
- Returns:
- this builder
 
 - 
opcMultipartSha256public HeadObjectResponse.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. - Parameters:
- opcMultipartSha256- the value to set
- Returns:
- this builder
 
 - 
opcContentSha384public HeadObjectResponse.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. - Parameters:
- opcContentSha384- the value to set
- Returns:
- this builder
 
 - 
opcMultipartSha384public HeadObjectResponse.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. - Parameters:
- opcMultipartSha384- the value to set
- Returns:
- this builder
 
 - 
contentTypepublic HeadObjectResponse.Builder contentType(String contentType) Content-Type header, as described in RFC 2616.- Parameters:
- contentType- the value to set
- Returns:
- this builder
 
 - 
contentLanguagepublic HeadObjectResponse.Builder contentLanguage(String contentLanguage) Content-Language header, as described in RFC 2616.- Parameters:
- contentLanguage- the value to set
- Returns:
- this builder
 
 - 
contentEncodingpublic HeadObjectResponse.Builder contentEncoding(String contentEncoding) Content-Encoding header, as described in RFC 2616.- Parameters:
- contentEncoding- the value to set
- Returns:
- this builder
 
 - 
cacheControlpublic HeadObjectResponse.Builder cacheControl(String cacheControl) Cache-Control header, as described in RFC 2616.- Parameters:
- cacheControl- the value to set
- Returns:
- this builder
 
 - 
contentDispositionpublic HeadObjectResponse.Builder contentDisposition(String contentDisposition) Content-Disposition header, as described in RFC 2616.- Parameters:
- contentDisposition- the value to set
- Returns:
- this builder
 
 - 
lastModifiedpublic HeadObjectResponse.Builder lastModified(Date lastModified) The object modification time, as described in RFC 2616.- Parameters:
- lastModified- the value to set
- Returns:
- this builder
 
 - 
storageTierpublic HeadObjectResponse.Builder storageTier(StorageTier storageTier) The storage tier that the object is stored in.- Parameters:
- storageTier- the value to set
- Returns:
- this builder
 
 - 
archivalStatepublic HeadObjectResponse.Builder archivalState(ArchivalState archivalState) Archival state of an object.This field is set only for objects in Archive tier. - Parameters:
- archivalState- the value to set
- Returns:
- this builder
 
 - 
timeOfArchivalpublic HeadObjectResponse.Builder timeOfArchival(Date timeOfArchival) Time that the object is returned to the archived state.This field is only present for restored objects. - Parameters:
- timeOfArchival- the value to set
- Returns:
- this builder
 
 - 
versionIdpublic HeadObjectResponse.Builder versionId(String versionId) VersionId of the object requested- Parameters:
- versionId- the value to set
- Returns:
- this builder
 
 - 
isNotModifiedpublic HeadObjectResponse.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’). - Specified by:
- isNotModifiedin interface- BmcResponse.Builder<HeadObjectResponse>
- Parameters:
- true- if the object was not modified
 
 - 
copypublic HeadObjectResponse.Builder copy(HeadObjectResponse o) Copy method to populate the builder with values from the given instance.- Specified by:
- copyin interface- BmcResponse.Builder<HeadObjectResponse>
- Parameters:
- o- other request from which to copy values
- Returns:
- this builder instance
 
 - 
buildpublic HeadObjectResponse build() Build the response object.- Specified by:
- buildin interface- BmcResponse.Builder<HeadObjectResponse>
- Returns:
- the response object
 
 
- 
 
-