public class BoxFileVersion extends BoxEntity
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
ALL_FIELDS |
static java.lang.String |
FIELD_CREATED_AT |
static java.lang.String |
FIELD_DELETED_AT |
static java.lang.String |
FIELD_MODIFIED_AT |
static java.lang.String |
FIELD_MODIFIED_BY |
static java.lang.String |
FIELD_NAME |
static java.lang.String |
FIELD_SHA1 |
static java.lang.String |
FIELD_SIZE |
static java.lang.String |
TYPE |
FIELD_ID, FIELD_ITEM_ID, FIELD_ITEM_TYPE, FIELD_TYPEmProperties| Constructor and Description |
|---|
BoxFileVersion()
Constructs an empty BoxFileVersion object.
|
BoxFileVersion(java.util.Map<java.lang.String,java.lang.Object> map)
Constructs a BoxFileVersion with the provided map values.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreatedAt()
Gets the time the file version was created.
|
java.util.Date |
getDeletedAt()
Gets the time that the file version was/will be deleted.
|
java.util.Date |
getModifiedAt()
Gets the time the file version was last modified.
|
BoxUser |
getModifiedBy()
Gets info about the user who last modified the file version.
|
java.lang.String |
getName()
Gets the name of the file version.
|
java.lang.String |
getSha1()
Gets the SHA1 hash of the file version.
|
java.lang.Long |
getSize()
Gets the size of the file version in bytes.
|
protected void |
parseJSONMember(JsonObject.Member member)
Invoked with a JSON member whenever this object is updated or created from a JSON object.
|
createEntityFromJson, createEntityFromJson, getId, getTypecreateFromJson, createFromJson, getPropertiesAsHashMap, parseJsonObject, parseNullJsonMember, toJson, toJsonObjectpublic static final java.lang.String TYPE
public static final java.lang.String FIELD_NAME
public static final java.lang.String FIELD_SHA1
public static final java.lang.String FIELD_DELETED_AT
public static final java.lang.String FIELD_MODIFIED_BY
public static final java.lang.String FIELD_CREATED_AT
public static final java.lang.String FIELD_MODIFIED_AT
public static final java.lang.String FIELD_SIZE
public static final java.lang.String[] ALL_FIELDS
public BoxFileVersion()
public BoxFileVersion(java.util.Map<java.lang.String,java.lang.Object> map)
map - map of keys and values of the object.public java.lang.String getName()
public java.util.Date getCreatedAt()
public java.util.Date getModifiedAt()
public java.lang.String getSha1()
public java.util.Date getDeletedAt()
public java.lang.Long getSize()
public BoxUser getModifiedBy()
protected void parseJSONMember(JsonObject.Member member)
BoxJsonObjectSubclasses should override this method in order to parse any JSON members it knows about. This method is a no-op by default.
parseJSONMember in class BoxEntitymember - the JSON member to be parsed.