Class GetObjectResponse
- java.lang.Object
-
- com.oracle.bmc.responses.BmcResponse
-
- com.oracle.bmc.objectstorage.responses.GetObjectResponse
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20160918") public class GetObjectResponse extends BmcResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetObjectResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GetObjectResponse.Builderbuilder()Return a new builder for this response object.booleanequals(Object o)ArchivalStategetArchivalState()Archival state of an object.StringgetCacheControl()Cache-Control header, as described in RFC 2616.StringgetContentDisposition()Content-Disposition header, as described in RFC 2616.StringgetContentEncoding()Content-Encoding header, as described in RFC 2616.StringgetContentLanguage()Content-Language header, as described in RFC 2616.LonggetContentLength()The object size in bytes.StringgetContentMd5()Content-MD5 header, as described in RFC 2616.RangegetContentRange()Content-Range header for range requests, per RFC 7233.StringgetContentType()Content-Type header, as described in RFC 2616.StringgetETag()The entity tag (ETag) for the object.DategetExpires()The date and time after which the object is no longer cached by a browser, proxy, or other caching entity.InputStreamgetInputStream()The returned java.io.InputStream instance, or null ifisNotModified()is true.DategetLastModified()The object modification time, as described in RFC 2616.StringgetOpcClientRequestId()Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.StringgetOpcContentCrc32c()The base64-encoded, 32-bit CRC32C (Castagnoli) checksum of the object.StringgetOpcContentSha256()Applicable only if SHA256 was specified in the opc-checksum-algorithm request header during upload.StringgetOpcContentSha384()Applicable only if SHA384 was specified in the opc-checksum-algorithm request header during upload.Map<String,String>getOpcMeta()The user-defined metadata for the object.StringgetOpcMultipartMd5()Only applicable to objects uploaded using multipart upload.StringgetOpcMultipartSha256()Only applicable to objects uploaded using multipart upload.StringgetOpcMultipartSha384()Only applicable to objects uploaded using multipart upload.StringgetOpcRequestId()Unique Oracle-assigned identifier for the request.StorageTiergetStorageTier()The storage tier that the object is stored in.DategetTimeOfArchival()Time that the object is returned to the archived state.StringgetVersionId()VersionId of the objectinthashCode()booleanisNotModified()Flag to indicate whether or not the object was modified.StringtoString()-
Methods inherited from class com.oracle.bmc.responses.BmcResponse
canEqual, get__httpStatusCode__, getHeaders
-
-
-
-
Method Detail
-
getOpcClientRequestId
public String getOpcClientRequestId()
Echoes back the value passed in the opc-client-request-id header, for use by clients when debugging.- Returns:
- the value
-
getOpcRequestId
public String getOpcRequestId()
Unique Oracle-assigned identifier for the request.If you need to contact Oracle about a particular request, provide this request ID.
- Returns:
- the value
-
getETag
public String getETag()
The entity tag (ETag) for the object.- Returns:
- the value
-
getOpcMeta
public Map<String,String> getOpcMeta()
The user-defined metadata for the object.- Returns:
- the value
-
getContentLength
public Long getContentLength()
The object size in bytes.- Returns:
- the value
-
getContentRange
public Range getContentRange()
Content-Range header for range requests, per RFC 7233.- Returns:
- the value
-
getContentMd5
public String getContentMd5()
Content-MD5 header, as described in RFC 2616.Unavailable for objects uploaded using multipart upload.
- Returns:
- the value
-
getOpcMultipartMd5
public String getOpcMultipartMd5()
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.
- Returns:
- the value
-
getOpcContentCrc32c
public String getOpcContentCrc32c()
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.
- Returns:
- the value
-
getOpcContentSha256
public String getOpcContentSha256()
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.
- Returns:
- the value
-
getOpcMultipartSha256
public String getOpcMultipartSha256()
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.
- Returns:
- the value
-
getOpcContentSha384
public String getOpcContentSha384()
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.
- Returns:
- the value
-
getOpcMultipartSha384
public String getOpcMultipartSha384()
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.
- Returns:
- the value
-
getContentType
public String getContentType()
Content-Type header, as described in RFC 2616.- Returns:
- the value
-
getContentLanguage
public String getContentLanguage()
Content-Language header, as described in RFC 2616.- Returns:
- the value
-
getContentEncoding
public String getContentEncoding()
Content-Encoding header, as described in RFC 2616.- Returns:
- the value
-
getCacheControl
public String getCacheControl()
Cache-Control header, as described in RFC 2616.- Returns:
- the value
-
getContentDisposition
public String getContentDisposition()
Content-Disposition header, as described in RFC 2616.- Returns:
- the value
-
getLastModified
public Date getLastModified()
The object modification time, as described in RFC 2616.- Returns:
- the value
-
getStorageTier
public StorageTier getStorageTier()
The storage tier that the object is stored in.- Returns:
- the value
-
getArchivalState
public ArchivalState getArchivalState()
Archival state of an object.This field is set only for objects in Archive tier.
- Returns:
- the value
-
getTimeOfArchival
public Date getTimeOfArchival()
Time that the object is returned to the archived state.This field is only present for restored objects.
- Returns:
- the value
-
getVersionId
public String getVersionId()
VersionId of the object- Returns:
- the value
-
getExpires
public Date getExpires()
The date and time after which the object is no longer cached by a browser, proxy, or other caching entity.See RFC 2616.
- Returns:
- the value
-
getInputStream
public InputStream getInputStream()
The returned java.io.InputStream instance, or null ifisNotModified()is true.- Returns:
- the value
-
isNotModified
public 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’).
- Parameters:
true- if the object was not modified
-
builder
public static GetObjectResponse.Builder builder()
Return a new builder for this response object.- Returns:
- builder for the response object
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classBmcResponse
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBmcResponse
-
-