public class RoomCollectionRequest extends BaseCollectionRequest<RoomCollectionResponse,IRoomCollectionPage> implements IRoomCollectionRequest
| Constructor and Description |
|---|
RoomCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Room
|
| Modifier and Type | Method and Description |
|---|---|
IRoomCollectionPage |
buildFromResponse(RoomCollectionResponse response) |
IRoomCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IRoomCollectionRequest |
filter(java.lang.String value)
Sets the filter clause for the request
|
IRoomCollectionPage |
get() |
void |
get(ICallback<? super IRoomCollectionPage> callback) |
IRoomCollectionRequest |
orderBy(java.lang.String value)
Sets the order by clause for the request
|
Room |
post(Room newRoom) |
void |
post(Room newRoom,
ICallback<? super Room> callback) |
IRoomCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IRoomCollectionRequest |
skip(int value)
Sets the skip value for the request
|
IRoomCollectionRequest |
skipToken(java.lang.String skipToken)
Add Skip token for pagination
|
IRoomCollectionRequest |
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 RoomCollectionRequest(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 IRoomCollectionPage> callback)
get in interface IRoomCollectionRequestpublic IRoomCollectionPage get() throws ClientException
get in interface IRoomCollectionRequestClientExceptionpublic void post(Room newRoom, ICallback<? super Room> callback)
post in interface IRoomCollectionRequestpublic Room post(Room newRoom) throws ClientException
post in interface IRoomCollectionRequestClientExceptionpublic IRoomCollectionRequest expand(java.lang.String value)
expand in interface IRoomCollectionRequestvalue - the expand clausepublic IRoomCollectionRequest filter(java.lang.String value)
filter in interface IRoomCollectionRequestvalue - the filter clausepublic IRoomCollectionRequest orderBy(java.lang.String value)
orderBy in interface IRoomCollectionRequestvalue - the order by clausepublic IRoomCollectionRequest select(java.lang.String value)
select in interface IRoomCollectionRequestvalue - the select clausepublic IRoomCollectionRequest top(int value)
top in interface IRoomCollectionRequestvalue - the max number of items to returnpublic IRoomCollectionRequest skip(int value)
skip in interface IRoomCollectionRequestvalue - of the number of items to skippublic IRoomCollectionRequest skipToken(java.lang.String skipToken)
skipToken in interface IRoomCollectionRequestskipToken - - Token for paginationpublic IRoomCollectionPage buildFromResponse(RoomCollectionResponse response)