public class DbxUserFileRequestsRequests
extends java.lang.Object
Constructor and Description |
---|
DbxUserFileRequestsRequests(DbxRawClientV2 client) |
Modifier and Type | Method and Description |
---|---|
FileRequest |
create(java.lang.String title,
java.lang.String destination)
Creates a file request for this user.
|
CreateBuilder |
createBuilder(java.lang.String title,
java.lang.String destination)
Creates a file request for this user.
|
FileRequest |
get(java.lang.String id)
Returns the specified file request.
|
ListFileRequestsResult |
list()
Returns a list of file requests owned by this user.
|
FileRequest |
update(java.lang.String id)
Update a file request.
|
UpdateBuilder |
updateBuilder(java.lang.String id)
Update a file request.
|
public DbxUserFileRequestsRequests(DbxRawClientV2 client)
public FileRequest create(java.lang.String title, java.lang.String destination) throws CreateFileRequestErrorException, DbxException
The default values for the optional request parameters will be used.
See CreateBuilder
for more details.
title
- The title of the file request. Must not be empty. Must have
length of at least 1 and not be null
.destination
- The path of the folder in the Dropbox where uploaded
files will be sent. For apps with the app folder permission, this
will be relative to the app folder. Must match pattern "/(.|[\\r\\n])*
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.CreateFileRequestErrorException
DbxException
public CreateBuilder createBuilder(java.lang.String title, java.lang.String destination)
title
- The title of the file request. Must not be empty. Must have
length of at least 1 and not be null
.destination
- The path of the folder in the Dropbox where uploaded
files will be sent. For apps with the app folder permission, this
will be relative to the app folder. Must match pattern "/(.|[\\r\\n])*
" and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileRequest get(java.lang.String id) throws GetFileRequestErrorException, DbxException
id
- The ID of the file request to retrieve. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.GetFileRequestErrorException
DbxException
public ListFileRequestsResult list() throws ListFileRequestsErrorException, DbxException
list()
.ListFileRequestsErrorException
DbxException
public FileRequest update(java.lang.String id) throws UpdateFileRequestErrorException, DbxException
The default values for the optional request parameters will be used.
See UpdateBuilder
for more details.
id
- The ID of the file request to update. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.UpdateFileRequestErrorException
DbxException
public UpdateBuilder updateBuilder(java.lang.String id)
id
- The ID of the file request to update. Must have length of at
least 1, match pattern "[-_0-9a-zA-Z]+
", and not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.