Package com.microsoft.graph.requests
Class AccessPackageSubjectRequest
java.lang.Object
com.microsoft.graph.http.BaseRequest<AccessPackageSubject>
com.microsoft.graph.requests.AccessPackageSubjectRequest
- All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest
public class AccessPackageSubjectRequest
extends com.microsoft.graph.http.BaseRequest<AccessPackageSubject>
The class for the Access Package Subject Request.
-
Field Summary
Fields inherited from class com.microsoft.graph.http.BaseRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
-
Constructor Summary
ConstructorsConstructorDescriptionAccessPackageSubjectRequest
(String requestUrl, com.microsoft.graph.core.IBaseClient<?> client, List<? extends com.microsoft.graph.options.Option> requestOptions) The request for the AccessPackageSubject -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete this item from the serviceDelete this item from the serviceSets the expand clause for the requestget()
Gets the AccessPackageSubject from the servicegetAsync()
Gets the AccessPackageSubject from the servicepatch
(AccessPackageSubject sourceAccessPackageSubject) Patches this AccessPackageSubject with a sourcepatchAsync
(AccessPackageSubject sourceAccessPackageSubject) Patches this AccessPackageSubject with a sourcepost
(AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new objectpostAsync
(AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new objectput
(AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new objectputAsync
(AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new objectSets the select clause for the requestMethods inherited from class com.microsoft.graph.http.BaseRequest
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.microsoft.graph.http.IHttpRequest
getHttpRequest
-
Constructor Details
-
AccessPackageSubjectRequest
public AccessPackageSubjectRequest(@Nonnull String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable List<? extends com.microsoft.graph.options.Option> requestOptions) The request for the AccessPackageSubject- Parameters:
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this request
-
-
Method Details
-
getAsync
Gets the AccessPackageSubject from the service- Returns:
- a future with the result
-
get
Gets the AccessPackageSubject from the service- Returns:
- the AccessPackageSubject from the request
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
deleteAsync
Delete this item from the service- Returns:
- a future with the deletion result
-
delete
Delete this item from the service- Returns:
- the resulting response if the service returns anything on deletion
- Throws:
com.microsoft.graph.core.ClientException
- if there was an exception during the delete operation
-
patchAsync
@Nonnull public CompletableFuture<AccessPackageSubject> patchAsync(@Nonnull AccessPackageSubject sourceAccessPackageSubject) Patches this AccessPackageSubject with a source- Parameters:
sourceAccessPackageSubject
- the source object with updates- Returns:
- a future with the result
-
patch
@Nullable public AccessPackageSubject patch(@Nonnull AccessPackageSubject sourceAccessPackageSubject) throws com.microsoft.graph.core.ClientException Patches this AccessPackageSubject with a source- Parameters:
sourceAccessPackageSubject
- the source object with updates- Returns:
- the updated AccessPackageSubject
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
postAsync
@Nonnull public CompletableFuture<AccessPackageSubject> postAsync(@Nonnull AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new object- Parameters:
newAccessPackageSubject
- the new object to create- Returns:
- a future with the result
-
post
@Nullable public AccessPackageSubject post(@Nonnull AccessPackageSubject newAccessPackageSubject) throws com.microsoft.graph.core.ClientException Creates a AccessPackageSubject with a new object- Parameters:
newAccessPackageSubject
- the new object to create- Returns:
- the created AccessPackageSubject
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
putAsync
@Nonnull public CompletableFuture<AccessPackageSubject> putAsync(@Nonnull AccessPackageSubject newAccessPackageSubject) Creates a AccessPackageSubject with a new object- Parameters:
newAccessPackageSubject
- the object to create/update- Returns:
- a future with the result
-
put
@Nullable public AccessPackageSubject put(@Nonnull AccessPackageSubject newAccessPackageSubject) throws com.microsoft.graph.core.ClientException Creates a AccessPackageSubject with a new object- Parameters:
newAccessPackageSubject
- the object to create/update- Returns:
- the created AccessPackageSubject
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
select
Sets the select clause for the request- Parameters:
value
- the select clause- Returns:
- the updated request
-
expand
Sets the expand clause for the request- Parameters:
value
- the expand clause- Returns:
- the updated request
-