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