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
|
ISubscriptionCollectionPage |
get() |
void |
get(ICallback<ISubscriptionCollectionPage> callback) |
Subscription |
post(Subscription newSubscription) |
void |
post(Subscription newSubscription,
ICallback<Subscription> callback) |
ISubscriptionCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
ISubscriptionCollectionRequest |
top(int value)
Sets the top value for the request
|
addFunctionOption, addHeader, addQueryOption, getBaseRequest, getCollectionPageClass, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, post, send, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches
public 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<ISubscriptionCollectionPage> callback)
get
in interface ISubscriptionCollectionRequest
public ISubscriptionCollectionPage get() throws ClientException
get
in interface ISubscriptionCollectionRequest
ClientException
public void post(Subscription newSubscription, ICallback<Subscription> callback)
post
in interface ISubscriptionCollectionRequest
public Subscription post(Subscription newSubscription) throws ClientException
post
in interface ISubscriptionCollectionRequest
ClientException
public ISubscriptionCollectionRequest expand(java.lang.String value)
expand
in interface ISubscriptionCollectionRequest
value
- the expand clausepublic ISubscriptionCollectionRequest select(java.lang.String value)
select
in interface ISubscriptionCollectionRequest
value
- the select clausepublic ISubscriptionCollectionRequest top(int value)
top
in interface ISubscriptionCollectionRequest
value
- the max number of items to returnpublic ISubscriptionCollectionPage buildFromResponse(SubscriptionCollectionResponse response)