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