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