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