public class AlertCollectionRequest extends BaseCollectionRequest<AlertCollectionResponse,IAlertCollectionPage> implements IAlertCollectionRequest
| Constructor and Description |
|---|
AlertCollectionRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request builder for this collection of Alert
|
| Modifier and Type | Method and Description |
|---|---|
IAlertCollectionPage |
buildFromResponse(AlertCollectionResponse response) |
IAlertCollectionRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
IAlertCollectionPage |
get() |
void |
get(ICallback<IAlertCollectionPage> callback) |
Alert |
post(Alert newAlert) |
void |
post(Alert newAlert,
ICallback<Alert> callback) |
IAlertCollectionRequest |
select(java.lang.String value)
Sets the select clause for the request
|
IAlertCollectionRequest |
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, setUseCachespublic AlertCollectionRequest(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<IAlertCollectionPage> callback)
get in interface IAlertCollectionRequestpublic IAlertCollectionPage get() throws ClientException
get in interface IAlertCollectionRequestClientExceptionpublic void post(Alert newAlert, ICallback<Alert> callback)
post in interface IAlertCollectionRequestpublic Alert post(Alert newAlert) throws ClientException
post in interface IAlertCollectionRequestClientExceptionpublic IAlertCollectionRequest expand(java.lang.String value)
expand in interface IAlertCollectionRequestvalue - the expand clausepublic IAlertCollectionRequest select(java.lang.String value)
select in interface IAlertCollectionRequestvalue - the select clausepublic IAlertCollectionRequest top(int value)
top in interface IAlertCollectionRequestvalue - the max number of items to returnpublic IAlertCollectionPage buildFromResponse(AlertCollectionResponse response)