public class ListRequest extends com.microsoft.graph.http.BaseRequest<List>
Constructor and Description |
---|
ListRequest(java.lang.String requestUrl,
com.microsoft.graph.core.IBaseClient<?> client,
java.util.List<? extends com.microsoft.graph.options.Option> requestOptions)
The request for the List
|
Modifier and Type | Method and Description |
---|---|
List |
delete()
Delete this item from the service
|
java.util.concurrent.CompletableFuture<List> |
deleteAsync()
Delete this item from the service
|
ListRequest |
expand(java.lang.String value)
Sets the expand clause for the request
|
List |
get()
Gets the List from the service
|
java.util.concurrent.CompletableFuture<List> |
getAsync()
Gets the List from the service
|
List |
patch(List sourceList)
Patches this List with a source
|
java.util.concurrent.CompletableFuture<List> |
patchAsync(List sourceList)
Patches this List with a source
|
List |
post(List newList)
Creates a List with a new object
|
java.util.concurrent.CompletableFuture<List> |
postAsync(List newList)
Creates a List with a new object
|
List |
put(List newList)
Creates a List with a new object
|
java.util.concurrent.CompletableFuture<List> |
putAsync(List newList)
Creates a List with a new object
|
ListRequest |
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 ListRequest(@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<List> getAsync()
@Nullable public List 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<List> deleteAsync()
@Nullable public List 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<List> patchAsync(@Nonnull List sourceList)
sourceList
- the source object with updates@Nullable public List patch(@Nonnull List sourceList) throws com.microsoft.graph.core.ClientException
sourceList
- 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<List> postAsync(@Nonnull List newList)
newList
- the new object to create@Nullable public List post(@Nonnull List newList) throws com.microsoft.graph.core.ClientException
newList
- 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<List> putAsync(@Nonnull List newList)
newList
- the object to create/update@Nullable public List put(@Nonnull List newList) throws com.microsoft.graph.core.ClientException
newList
- the object to create/updatecom.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason@Nonnull public ListRequest select(@Nonnull java.lang.String value)
value
- the select clause@Nonnull public ListRequest expand(@Nonnull java.lang.String value)
value
- the expand clause