public class DriveItemPreviewRequest extends BaseRequest implements IDriveItemPreviewRequest
Modifier and Type | Field and Description |
---|---|
protected DriveItemPreviewBody |
body |
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
Constructor and Description |
---|
DriveItemPreviewRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for this DriveItemPreview
|
Modifier and Type | Method and Description |
---|---|
IDriveItemPreviewRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
ItemPreviewInfo |
post() |
void |
post(ICallback<ItemPreviewInfo> callback) |
IDriveItemPreviewRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IDriveItemPreviewRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getFunctionOptions, getHeaders, getHttpMethod, getOptions, getQueryOptions, getRequestUrl, getResponseType, getUseCaches, send, send, setHttpMethod, setUseCaches
protected final DriveItemPreviewBody body
public DriveItemPreviewRequest(java.lang.String requestUrl, IBaseClient client, java.util.List<? extends Option> requestOptions)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestpublic void post(ICallback<ItemPreviewInfo> callback)
post
in interface IDriveItemPreviewRequest
public ItemPreviewInfo post() throws ClientException
post
in interface IDriveItemPreviewRequest
ClientException
public IDriveItemPreviewRequest select(java.lang.String value)
select
in interface IDriveItemPreviewRequest
value
- the select clausepublic IDriveItemPreviewRequest top(int value)
top
in interface IDriveItemPreviewRequest
value
- the max number of items to returnpublic IDriveItemPreviewRequest expand(java.lang.String value)
expand
in interface IDriveItemPreviewRequest
value
- the expand clause