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