public class MailFolderRequest extends BaseRequest implements IMailFolderRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING| Constructor and Description |
|---|
MailFolderRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions)
The request for the MailFolder
|
MailFolderRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends MailFolder> responseClass)
The request for the MailFolder
|
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Delete this item from the service
|
void |
delete(ICallback<MailFolder> callback)
Delete this item from the service
|
IMailFolderRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
MailFolder |
get()
Gets the MailFolder from the service
|
void |
get(ICallback<MailFolder> callback)
Gets the MailFolder from the service
|
MailFolder |
patch(MailFolder sourceMailFolder)
Patches this MailFolder with a source
|
void |
patch(MailFolder sourceMailFolder,
ICallback<MailFolder> callback)
Patches this MailFolder with a source
|
MailFolder |
post(MailFolder newMailFolder)
Creates a MailFolder with a new object
|
void |
post(MailFolder newMailFolder,
ICallback<MailFolder> callback)
Creates a MailFolder with a new object
|
IMailFolderRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addFunctionOption, addHeader, addQueryOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, send, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddHeader, getDelay, getHeaders, getHttpMethod, getMaxRedirects, getMaxRetries, getOptions, getRequestUrl, getShouldRedirect, getShouldRetry, getUseCaches, setDelay, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCachespublic MailFolderRequest(java.lang.String requestUrl,
IBaseClient client,
java.util.List<? extends Option> requestOptions,
java.lang.Class<? extends MailFolder> responseClass)
requestUrl - the request URLclient - the service clientrequestOptions - the options for this requestresponseClass - the class of the responsepublic MailFolderRequest(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<MailFolder> callback)
get in interface IMailFolderRequestcallback - the callback to be called after success or failurepublic MailFolder get() throws ClientException
get in interface IMailFolderRequestClientException - this exception occurs if the request was unable to complete for any reasonpublic void delete(ICallback<MailFolder> callback)
delete in interface IMailFolderRequestcallback - the callback when the deletion action has completedpublic void delete()
throws ClientException
delete in interface IMailFolderRequestClientException - if there was an exception during the delete operationpublic void patch(MailFolder sourceMailFolder, ICallback<MailFolder> callback)
patch in interface IMailFolderRequestsourceMailFolder - the source object with updatescallback - the callback to be called after success or failurepublic MailFolder patch(MailFolder sourceMailFolder) throws ClientException
patch in interface IMailFolderRequestsourceMailFolder - the source object with updatesClientException - this exception occurs if the request was unable to complete for any reasonpublic void post(MailFolder newMailFolder, ICallback<MailFolder> callback)
post in interface IMailFolderRequestnewMailFolder - the new object to createcallback - the callback to be called after success or failurepublic MailFolder post(MailFolder newMailFolder) throws ClientException
post in interface IMailFolderRequestnewMailFolder - the new object to createClientException - this exception occurs if the request was unable to complete for any reasonpublic IMailFolderRequest select(java.lang.String value)
select in interface IMailFolderRequestvalue - the select clausepublic IMailFolderRequest expand(java.lang.String value)
expand in interface IMailFolderRequestvalue - the expand clause