public class SwiftObjectImpl extends Object implements SwiftObject
| Modifier and Type | Class and Description |
|---|---|
static class |
SwiftObjectImpl.Builder |
static class |
SwiftObjectImpl.SwiftObjects |
| Constructor and Description |
|---|
SwiftObjectImpl() |
| Modifier and Type | Method and Description |
|---|---|
static SwiftObjectImpl.Builder |
builder() |
DLPayload |
download()
Retrieves the Payload for the data backing the current object
|
DLPayload |
download(DownloadOptions options)
Retrieves the Payload for the data backing the current object
|
String |
getContainerName() |
String |
getDirectoryName()
The name of the directory
|
String |
getETag()
The MD5 checksum value of the object content.
|
Date |
getLastModified()
The date and time when the object was last modified.
|
Map<String,String> |
getMetadata()
Gets the object metadata (this is a lazy fetch)
|
String |
getMimeType()
The content type of the object
|
String |
getName()
The name of the object
|
long |
getSizeInBytes()
The total number of bytes that are stored in Object Storage for the account
|
boolean |
isDirectory()
Determines if this object is a pseudo directory
|
void |
setContainerName(String containerName) |
String |
toString() |
public static SwiftObjectImpl.Builder builder()
public String getETag()
SwiftObjectgetETag in interface SwiftObjectpublic Date getLastModified()
SwiftObjectgetLastModified in interface SwiftObjectpublic long getSizeInBytes()
SwiftObjectgetSizeInBytes in interface SwiftObjectpublic String getName()
SwiftObjectgetName in interface SwiftObjectpublic String getDirectoryName()
SwiftObjectgetDirectoryName in interface SwiftObjectpublic String getMimeType()
SwiftObjectgetMimeType in interface SwiftObjectpublic boolean isDirectory()
SwiftObjectisDirectory in interface SwiftObjectpublic String getContainerName()
getContainerName in interface SwiftObjectpublic void setContainerName(String containerName)
public Map<String,String> getMetadata()
SwiftObjectgetMetadata in interface SwiftObjectpublic DLPayload download()
SwiftObjectdownload in interface SwiftObjectpublic DLPayload download(DownloadOptions options)
SwiftObjectdownload in interface SwiftObjectoptions - the download optionsCopyright © 2017. All rights reserved.