public class UpdateFileByIdRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
UpdateFileByIdRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected List<UpdateFileByIdRequestBodyCollectionsField> |
collections
An array of collections to make this file a member of.
|
protected String |
description
The description for a file.
|
protected OffsetDateTime |
dispositionAt
The retention expiration timestamp for the given file.
|
protected UpdateFileByIdRequestBodyLockField |
lock
Defines a lock on an item.
|
protected String |
name
An optional different name for the file.
|
protected UpdateFileByIdRequestBodyParentField |
parent |
protected UpdateFileByIdRequestBodyPermissionsField |
permissions
Defines who can download a file.
|
protected UpdateFileByIdRequestBodySharedLinkField |
sharedLink |
protected List<String> |
tags
The tags for this item.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
|
UpdateFileByIdRequestBody() |
protected |
UpdateFileByIdRequestBody(UpdateFileByIdRequestBody.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<UpdateFileByIdRequestBodyCollectionsField> |
getCollections() |
String |
getDescription() |
OffsetDateTime |
getDispositionAt() |
UpdateFileByIdRequestBodyLockField |
getLock() |
String |
getName() |
UpdateFileByIdRequestBodyParentField |
getParent() |
UpdateFileByIdRequestBodyPermissionsField |
getPermissions() |
UpdateFileByIdRequestBodySharedLinkField |
getSharedLink() |
List<String> |
getTags() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected String name
File names must be unique within their parent folder. The name check is case-insensitive, so a file named `New File` cannot be created in a parent folder that already contains a folder named `new file`.
protected String description
protected UpdateFileByIdRequestBodyParentField parent
protected UpdateFileByIdRequestBodySharedLinkField sharedLink
protected UpdateFileByIdRequestBodyLockField lock
Set this to `null` to remove the lock.
protected OffsetDateTime dispositionAt
protected UpdateFileByIdRequestBodyPermissionsField permissions
protected List<UpdateFileByIdRequestBodyCollectionsField> collections
To get the ID for a collection, use the [List all collections][1] endpoint.
Passing an empty array `[]` or `null` will remove the file from all collections.
[1]: https://developer.box.com/reference/get-collections
protected List<String> tags
To add or remove a tag, retrieve the item's current tags, modify them, and then update this field.
There is a limit of 100 tags per item, and 10,000 unique tags per enterprise.
public UpdateFileByIdRequestBody()
protected UpdateFileByIdRequestBody(UpdateFileByIdRequestBody.Builder builder)
public String getDescription()
public UpdateFileByIdRequestBodyParentField getParent()
public UpdateFileByIdRequestBodySharedLinkField getSharedLink()
public UpdateFileByIdRequestBodyLockField getLock()
public OffsetDateTime getDispositionAt()
public UpdateFileByIdRequestBodyPermissionsField getPermissions()
public List<UpdateFileByIdRequestBodyCollectionsField> getCollections()