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