Package com.microsoft.graph.requests
Class MdmWindowsInformationProtectionPolicyRequest
java.lang.Object
com.microsoft.graph.http.BaseRequest<MdmWindowsInformationProtectionPolicy>
com.microsoft.graph.requests.MdmWindowsInformationProtectionPolicyRequest
- All Implemented Interfaces:
com.microsoft.graph.http.IHttpRequest
public class MdmWindowsInformationProtectionPolicyRequest
extends com.microsoft.graph.http.BaseRequest<MdmWindowsInformationProtectionPolicy>
The class for the Mdm Windows Information Protection Policy Request.
-
Field Summary
Fields inherited from class com.microsoft.graph.http.BaseRequest
functionOptions, queryOptions, REQUEST_STATS_HEADER_VALUE_FORMAT_STRING
-
Constructor Summary
ConstructorsConstructorDescriptionMdmWindowsInformationProtectionPolicyRequest
(String requestUrl, com.microsoft.graph.core.IBaseClient<?> client, List<? extends com.microsoft.graph.options.Option> requestOptions) The request for the MdmWindowsInformationProtectionPolicy -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete this item from the serviceDelete this item from the serviceSets the expand clause for the requestget()
Gets the MdmWindowsInformationProtectionPolicy from the servicegetAsync()
Gets the MdmWindowsInformationProtectionPolicy from the servicepatch
(MdmWindowsInformationProtectionPolicy sourceMdmWindowsInformationProtectionPolicy) Patches this MdmWindowsInformationProtectionPolicy with a sourcepatchAsync
(MdmWindowsInformationProtectionPolicy sourceMdmWindowsInformationProtectionPolicy) Patches this MdmWindowsInformationProtectionPolicy with a sourcepost
(MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy with a new objectpostAsync
(MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy with a new objectput
(MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy with a new objectputAsync
(MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy 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
-
MdmWindowsInformationProtectionPolicyRequest
public MdmWindowsInformationProtectionPolicyRequest(@Nonnull String requestUrl, @Nonnull com.microsoft.graph.core.IBaseClient<?> client, @Nullable List<? extends com.microsoft.graph.options.Option> requestOptions) The request for the MdmWindowsInformationProtectionPolicy- Parameters:
requestUrl
- the request URLclient
- the service clientrequestOptions
- the options for this request
-
-
Method Details
-
getAsync
Gets the MdmWindowsInformationProtectionPolicy from the service- Returns:
- a future with the result
-
get
@Nullable public MdmWindowsInformationProtectionPolicy get() throws com.microsoft.graph.core.ClientExceptionGets the MdmWindowsInformationProtectionPolicy from the service- Returns:
- the MdmWindowsInformationProtectionPolicy 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
@Nullable public MdmWindowsInformationProtectionPolicy delete() throws com.microsoft.graph.core.ClientExceptionDelete 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<MdmWindowsInformationProtectionPolicy> patchAsync(@Nonnull MdmWindowsInformationProtectionPolicy sourceMdmWindowsInformationProtectionPolicy) Patches this MdmWindowsInformationProtectionPolicy with a source- Parameters:
sourceMdmWindowsInformationProtectionPolicy
- the source object with updates- Returns:
- a future with the result
-
patch
@Nullable public MdmWindowsInformationProtectionPolicy patch(@Nonnull MdmWindowsInformationProtectionPolicy sourceMdmWindowsInformationProtectionPolicy) throws com.microsoft.graph.core.ClientException Patches this MdmWindowsInformationProtectionPolicy with a source- Parameters:
sourceMdmWindowsInformationProtectionPolicy
- the source object with updates- Returns:
- the updated MdmWindowsInformationProtectionPolicy
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
postAsync
@Nonnull public CompletableFuture<MdmWindowsInformationProtectionPolicy> postAsync(@Nonnull MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy with a new object- Parameters:
newMdmWindowsInformationProtectionPolicy
- the new object to create- Returns:
- a future with the result
-
post
@Nullable public MdmWindowsInformationProtectionPolicy post(@Nonnull MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) throws com.microsoft.graph.core.ClientException Creates a MdmWindowsInformationProtectionPolicy with a new object- Parameters:
newMdmWindowsInformationProtectionPolicy
- the new object to create- Returns:
- the created MdmWindowsInformationProtectionPolicy
- Throws:
com.microsoft.graph.core.ClientException
- this exception occurs if the request was unable to complete for any reason
-
putAsync
@Nonnull public CompletableFuture<MdmWindowsInformationProtectionPolicy> putAsync(@Nonnull MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) Creates a MdmWindowsInformationProtectionPolicy with a new object- Parameters:
newMdmWindowsInformationProtectionPolicy
- the object to create/update- Returns:
- a future with the result
-
put
@Nullable public MdmWindowsInformationProtectionPolicy put(@Nonnull MdmWindowsInformationProtectionPolicy newMdmWindowsInformationProtectionPolicy) throws com.microsoft.graph.core.ClientException Creates a MdmWindowsInformationProtectionPolicy with a new object- Parameters:
newMdmWindowsInformationProtectionPolicy
- the object to create/update- Returns:
- the created MdmWindowsInformationProtectionPolicy
- 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
-