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()
SwiftObject
getETag
in interface SwiftObject
public Date getLastModified()
SwiftObject
getLastModified
in interface SwiftObject
public long getSizeInBytes()
SwiftObject
getSizeInBytes
in interface SwiftObject
public String getName()
SwiftObject
getName
in interface SwiftObject
public String getDirectoryName()
SwiftObject
getDirectoryName
in interface SwiftObject
public String getMimeType()
SwiftObject
getMimeType
in interface SwiftObject
public boolean isDirectory()
SwiftObject
isDirectory
in interface SwiftObject
public String getContainerName()
getContainerName
in interface SwiftObject
public void setContainerName(String containerName)
public Map<String,String> getMetadata()
SwiftObject
getMetadata
in interface SwiftObject
public DLPayload download()
SwiftObject
download
in interface SwiftObject
public DLPayload download(DownloadOptions options)
SwiftObject
download
in interface SwiftObject
options
- the download optionsCopyright © 2017. All rights reserved.