public class TrashFile extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
TrashFile.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected OffsetDateTime |
contentCreatedAt
The date and time at which this file was originally created, which might be before it was
uploaded to Box.
|
protected OffsetDateTime |
contentModifiedAt
The date and time at which this file was last updated, which might be before it was uploaded to
Box.
|
protected OffsetDateTime |
createdAt
The date and time when the file was created on Box.
|
protected UserMini |
createdBy |
protected String |
description
The optional description of this file.
|
protected String |
etag
The HTTP `etag` of this file.
|
protected FileVersionMini |
fileVersion |
protected String |
id
The unique identifier that represent a file.
|
protected EnumWrapper<TrashFileItemStatusField> |
itemStatus
Defines if this item has been deleted or not.
|
protected OffsetDateTime |
modifiedAt
The date and time when the file was last updated on Box.
|
protected UserMini |
modifiedBy |
protected String |
name
The name of the file.
|
protected UserMini |
ownedBy |
protected FolderMini |
parent |
protected TrashFilePathCollectionField |
pathCollection |
protected OffsetDateTime |
purgedAt
The time at which this file is expected to be purged from the trash.
|
protected String |
sequenceId |
protected String |
sha1
The SHA1 hash of the file.
|
protected String |
sharedLink
The shared link for this file.
|
protected long |
size
The file size in bytes.
|
protected OffsetDateTime |
trashedAt
The time at which this file was put in the trash.
|
protected EnumWrapper<TrashFileTypeField> |
type
The value will always be `file`.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
TrashFile(String id,
String sequenceId,
String sha1,
String description,
long size,
TrashFilePathCollectionField pathCollection,
OffsetDateTime createdAt,
OffsetDateTime modifiedAt,
UserMini modifiedBy,
UserMini ownedBy,
EnumWrapper<TrashFileItemStatusField> itemStatus) |
|
TrashFile(String id,
String sequenceId,
String sha1,
String description,
long size,
TrashFilePathCollectionField pathCollection,
OffsetDateTime createdAt,
OffsetDateTime modifiedAt,
UserMini modifiedBy,
UserMini ownedBy,
TrashFileItemStatusField itemStatus) |
protected |
TrashFile(TrashFile.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
OffsetDateTime |
getContentCreatedAt() |
OffsetDateTime |
getContentModifiedAt() |
OffsetDateTime |
getCreatedAt() |
UserMini |
getCreatedBy() |
String |
getDescription() |
String |
getEtag() |
FileVersionMini |
getFileVersion() |
String |
getId() |
EnumWrapper<TrashFileItemStatusField> |
getItemStatus() |
OffsetDateTime |
getModifiedAt() |
UserMini |
getModifiedBy() |
String |
getName() |
UserMini |
getOwnedBy() |
FolderMini |
getParent() |
TrashFilePathCollectionField |
getPathCollection() |
OffsetDateTime |
getPurgedAt() |
String |
getSequenceId() |
String |
getSha1() |
String |
getSharedLink() |
long |
getSize() |
OffsetDateTime |
getTrashedAt() |
EnumWrapper<TrashFileTypeField> |
getType() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String id
The ID for any file can be determined by visiting a file in the web application and copying the ID from the URL. For example, for the URL `https://*.app.box.com/files/123` the `file_id` is `123`.
protected String etag
protected EnumWrapper<TrashFileTypeField> type
protected final String sequenceId
protected final String sha1
protected FileVersionMini fileVersion
protected final String description
protected final long size
protected final TrashFilePathCollectionField pathCollection
protected final OffsetDateTime createdAt
protected final OffsetDateTime modifiedAt
protected OffsetDateTime trashedAt
protected OffsetDateTime purgedAt
protected OffsetDateTime contentCreatedAt
protected OffsetDateTime contentModifiedAt
protected final UserMini modifiedBy
protected String sharedLink
protected FolderMini parent
protected final EnumWrapper<TrashFileItemStatusField> itemStatus
* `active` when the item has is not in the trash * `trashed` when the item has been moved to the trash but not deleted * `deleted` when the item has been permanently deleted.
public TrashFile(String id, String sequenceId, String sha1, String description, long size, TrashFilePathCollectionField pathCollection, OffsetDateTime createdAt, OffsetDateTime modifiedAt, UserMini modifiedBy, UserMini ownedBy, TrashFileItemStatusField itemStatus)
public TrashFile(String id, String sequenceId, String sha1, String description, long size, TrashFilePathCollectionField pathCollection, OffsetDateTime createdAt, OffsetDateTime modifiedAt, UserMini modifiedBy, UserMini ownedBy, EnumWrapper<TrashFileItemStatusField> itemStatus)
protected TrashFile(TrashFile.Builder builder)
public EnumWrapper<TrashFileTypeField> getType()
public String getSequenceId()
public FileVersionMini getFileVersion()
public String getDescription()
public long getSize()
public TrashFilePathCollectionField getPathCollection()
public OffsetDateTime getCreatedAt()
public OffsetDateTime getModifiedAt()
public OffsetDateTime getTrashedAt()
public OffsetDateTime getPurgedAt()
public OffsetDateTime getContentCreatedAt()
public OffsetDateTime getContentModifiedAt()
public UserMini getCreatedBy()
public UserMini getModifiedBy()
public UserMini getOwnedBy()
public String getSharedLink()
public FolderMini getParent()
public EnumWrapper<TrashFileItemStatusField> getItemStatus()