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