BaseWithReferenceRequest<T> Class
- java.
lang. Object - com.
microsoft. graph. http. BaseRequest<T> - com.
microsoft. graph. http. BaseWithReferenceRequest<T>
- com.
- com.
Type Parameters
- T
the response class
public abstract class BaseWithReferenceRequest<T>
extends BaseRequest<T>
An HTTP request.
Constructor Summary
| Constructor | Description |
|---|---|
| BaseWithReferenceRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T> entityClass) |
The request for the entity |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| void |
delete()
Deletes the entity |
| java.util.concurrent.CompletableFuture<T> |
deleteAsync()
Deletes the entity and invokes the callback |
| T |
get()
Gets the entity |
| java.util.concurrent.CompletableFuture<T> |
getAsync()
Gets the entity an invokes the callback with it |
| T |
patch(T sourceObject)
Updates the entity |
| java.util.concurrent.CompletableFuture<T> |
patchAsync(T sourceObject)
Updates the entity and invokes the callback |
| T |
post(T newEntity, IJsonBackedObject payload)
Creates a new entity and invokes the callback with the result |
| java.util.concurrent.CompletableFuture<T> |
postAsync(T newEntity, IJsonBackedObject payload)
Creates a new entity and invokes the callback with the result |
Methods inherited from BaseRequest
Methods inherited from java.lang.Object
Constructor Details
BaseWithReferenceRequest
public BaseWithReferenceRequest(String requestUrl, IBaseClient client, List requestOptions, Class
The request for the entity
Parameters:
Method Details
delete
deleteAsync
public CompletableFuture
Deletes the entity and invokes the callback
Returns:
get
getAsync
public CompletableFuture
Gets the entity an invokes the callback with it
Returns:
patch
public T patch(T sourceObject)
Updates the entity
Parameters:
Returns:
Throws:
patchAsync
public CompletableFuture
Updates the entity and invokes the callback
Parameters:
Returns:
post
public T post(T newEntity, IJsonBackedObject payload)
Creates a new entity and invokes the callback with the result
Parameters:
Returns:
Throws:
postAsync
public CompletableFuture
Creates a new entity and invokes the callback with the result
Parameters:
Returns: