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