CustomRequest<T> Class
- java.
lang. Object - com.
microsoft. graph. http. BaseRequest<T> - com.
microsoft. graph. http. CustomRequest<T>
- com.
- com.
Type Parameters
- T
the entity or complex type
public class CustomRequest<T>
extends BaseRequest<T>
Respresents a custom request to be executed against the service
Constructor Summary
| Constructor | Description |
|---|---|
| CustomRequest(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions, Class<T> responseClass) |
Instanciates a custom requests to be executed against the service |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Custom |
create(String requestUrl, IBaseClient<?> client, List<? extends Option> requestOptions)
Creates a custom requests to be executed against the service |
| void |
delete()
Delete this item from the service |
| java.util.concurrent.CompletableFuture<T> |
deleteAsync()
Delete this item from the service |
|
Custom |
expand(String value)
Sets the expand clause for the request |
| T |
get()
Gets the resource and returns the deserialized resource |
| java.util.concurrent.CompletableFuture<T> |
getAsync()
Gets the resource and calls the callback with the deserialized resource |
| T |
patch(T sourceObject)
Patches this item with a source |
| java.util.concurrent.CompletableFuture<T> |
patchAsync()
Patches this item with a source |
| T |
post(T newObject)
Creates a new object |
| java.util.concurrent.CompletableFuture<T> |
postAsync(T newObject)
Creates a new object |
| T |
put(T putObject)
Creates a new object |
| java.util.concurrent.CompletableFuture<T> |
putAsync(T putObject)
Creates a new object |
|
Custom |
select(String value)
Sets the select clause for the request |
Methods inherited from BaseRequest
Methods inherited from java.lang.Object
Constructor Details
CustomRequest
public CustomRequest(String requestUrl, IBaseClient client, List requestOptions, Class
Instanciates a custom requests to be executed against the service
Parameters:
Method Details
create
public static CustomRequest
Creates a custom requests to be executed against the service
Parameters:
Returns:
delete
public void delete()
Delete this item from the service
Throws:
deleteAsync
public CompletableFuture
Delete this item from the service
Returns:
expand
public CustomRequest
Sets the expand clause for the request
Parameters:
Returns:
get
public T get()
Gets the resource and returns the deserialized resource
Returns:
Throws:
getAsync
public CompletableFuture
Gets the resource and calls the callback with the deserialized resource
Returns:
patch
public T patch(T sourceObject)
Patches this item with a source
Parameters:
Returns:
Throws:
patchAsync
public CompletableFuture
Patches this item with a source
Returns:
post
public T post(T newObject)
Creates a new object
Parameters:
Returns:
Throws:
postAsync
public CompletableFuture
Creates a new object
Parameters:
Returns:
put
public T put(T putObject)
Creates a new object
Parameters:
Returns:
Throws:
putAsync
public CompletableFuture
Creates a new object
Parameters:
Returns:
select
public CustomRequest
Sets the select clause for the request
Parameters:
Returns: