public class OutlookItemRequest extends com.microsoft.graph.http.BaseRequest<OutlookItem>
Constructor and Description |
---|
OutlookItemRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request for the OutlookItem
|
OutlookItemRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions,
java.lang.Class<? extends OutlookItem> responseClass)
The request for the OutlookItem
|
Modifier and Type | Method and Description |
---|---|
OutlookItem |
delete()
Delete this item from the service
|
java.util.concurrent.CompletableFuture<OutlookItem> |
deleteAsync()
Delete this item from the service
|
OutlookItemRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
OutlookItem |
get()
Gets the OutlookItem from the service
|
java.util.concurrent.CompletableFuture<OutlookItem> |
getAsync()
Gets the OutlookItem from the service
|
OutlookItem |
patch(OutlookItem sourceOutlookItem)
Patches this OutlookItem with a source
|
java.util.concurrent.CompletableFuture<OutlookItem> |
patchAsync(OutlookItem sourceOutlookItem)
Patches this OutlookItem with a source
|
OutlookItem |
post(OutlookItem newOutlookItem)
Creates a OutlookItem with a new object
|
java.util.concurrent.CompletableFuture<OutlookItem> |
postAsync(OutlookItem newOutlookItem)
Creates a OutlookItem with a new object
|
OutlookItem |
put(OutlookItem newOutlookItem)
Creates a OutlookItem with a new object
|
java.util.concurrent.CompletableFuture<OutlookItem> |
putAsync(OutlookItem newOutlookItem)
Creates a OutlookItem with a new object
|
OutlookItemRequest |
select(java.lang.String value)
Sets the select clause for the request
|
addCountOption, addExpandOption, addFilterOption, addFunctionOption, addHeader, addOrderByOption, addQueryOption, addSelectOption, addSkipOption, addSkipTokenOption, addTopOption, getClient, getDelay, getFunctionOptions, getHeaders, getHttpMethod, getHttpRequest, getMaxRedirects, getMaxRetries, getOptions, getQueryOptions, getRequestUrl, getResponseType, getShouldRedirect, getShouldRetry, getUseCaches, send, sendAsync, setDelay, setHttpMethod, setMaxRedirects, setMaxRetries, setShouldRedirect, setShouldRetry, setUseCaches, withHttpMethod
public OutlookItemRequest(@Nonnull java.lang.String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable java.util.List<? extends com.microsoft.graph.options.Option> requestOptions, @Nonnull java.lang.Class<? extends OutlookItem> responseClass)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this requestresponseClass
- the class of the responsepublic OutlookItemRequest(@Nonnull java.lang.String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this request@Nonnull public java.util.concurrent.CompletableFuture<OutlookItem> getAsync()
@Nullable public OutlookItem get() throws com.microsoft.graph.core.ClientException
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<OutlookItem> deleteAsync()
@Nullable public OutlookItem delete() throws com.microsoft.graph.core.ClientException
com.microsoft.graph.core.ClientException
- if there was an exception during the delete operation@Nonnull public java.util.concurrent.CompletableFuture<OutlookItem> patchAsync(@Nonnull OutlookItem sourceOutlookItem)
sourceOutlookItem
- the source object with updates@Nullable public OutlookItem patch(@Nonnull OutlookItem sourceOutlookItem) throws com.microsoft.graph.core.ClientException
sourceOutlookItem
- the source object with updatescom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<OutlookItem> postAsync(@Nonnull OutlookItem newOutlookItem)
newOutlookItem
- the new object to create@Nullable public OutlookItem post(@Nonnull OutlookItem newOutlookItem) throws com.microsoft.graph.core.ClientException
newOutlookItem
- the new object to createcom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public java.util.concurrent.CompletableFuture<OutlookItem> putAsync(@Nonnull OutlookItem newOutlookItem)
newOutlookItem
- the object to create/update@Nullable public OutlookItem put(@Nonnull OutlookItem newOutlookItem) throws com.microsoft.graph.core.ClientException
newOutlookItem
- the object to create/updatecom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public OutlookItemRequest select(@Nonnull java.lang.String value)
value
- the select clause@Nonnull public OutlookItemRequest expand(@Nonnull java.lang.String value)
value
- the expand clause