public class PrinterCollectionRequest extends BaseCollectionRequest<PrinterCollectionResponse,IPrinterCollectionPage> implements IPrinterCollectionRequest
| Constructor and Description |
|---|
PrinterCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Printer
|
| Modifier and Type | Method and Description |
|---|---|
IPrinterCollectionPage |
buildFromResponse(PrinterCollectionResponse response) |
IPrinterCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IPrinterCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IPrinterCollectionPage |
get() |
void |
get(ICallback<? super IPrinterCollectionPage> callback) |
IPrinterCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Printer |
post(Printer newPrinter) |
void |
post(Printer newPrinter,
ICallback<? super Printer> callback) |
IPrinterCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IPrinterCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IPrinterCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IPrinterCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getHttpRequest, getHttpRequest, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethodpublic PrinterCollectionRequest(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 get(ICallback<? super IPrinterCollectionPage> callback)
get in interface IPrinterCollectionRequestpublic IPrinterCollectionPage get() throws ClientException
get in interface IPrinterCollectionRequestClientExceptionpublic void post(Printer newPrinter, ICallback<? super Printer> callback)
post in interface IPrinterCollectionRequestpublic Printer post(Printer newPrinter) throws ClientException
post in interface IPrinterCollectionRequestClientExceptionpublic IPrinterCollectionRequest expand(java.lang.String value)
expand in interface IPrinterCollectionRequestvalue - the expand clausepublic IPrinterCollectionRequest filter(java.lang.String value)
filter in interface IPrinterCollectionRequestvalue - the filter clausepublic IPrinterCollectionRequest orderBy(java.lang.String value)
orderBy in interface IPrinterCollectionRequestvalue - the order by clausepublic IPrinterCollectionRequest select(java.lang.String value)
select in interface IPrinterCollectionRequestvalue - the select clausepublic IPrinterCollectionRequest top(int value)
top in interface IPrinterCollectionRequestvalue - the max number of items to returnpublic IPrinterCollectionRequest skip(int value)
skip in interface IPrinterCollectionRequestvalue - of the number of items to skippublic IPrinterCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IPrinterCollectionRequestskipToken - - Token for paginationpublic IPrinterCollectionPage buildFromResponse(PrinterCollectionResponse response)