Package com.microsoft.graph.http
Class BaseReferenceRequest<T>
java.lang.Object
com.microsoft.graph.http.BaseRequest<T>
com.microsoft.graph.http.BaseReferenceRequest<T>
- Type Parameters:
T- the response class
- All Implemented Interfaces:
IHttpRequest
An HTTP request.
-
Field Summary
Fields inherited from class com.microsoft.graph.http.BaseRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING -
Constructor Summary
ConstructorsConstructorDescriptionBaseReferenceRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T> entityType)The request for reference -
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes the entityDeletes the entity and invokes the callbackMethods inherited from class com.microsoft.graph.http.BaseRequest
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, withHttpMethodMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.microsoft.graph.http.IHttpRequest
getHttpRequest
-
Constructor Details
-
BaseReferenceRequest
public BaseReferenceRequest(@Nonnull String requestUrl, @Nonnull IBaseClient<?> client, @Nullable List<? extends Option> requestOptions, @Nonnull Class<T> entityType)The request for reference- Parameters:
requestUrl- the request URLclient- the service clientrequestOptions- the options for this requestentityType- the class for the entity
-
-
Method Details
-
deleteAsync
Deletes the entity and invokes the callback- Returns:
- a future with the result
-
delete
Deletes the entity- Returns:
- the result from the API response, if any
- Throws:
ClientException
-