Class WindowsInformationProtectionPolicyItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.deviceappmanagement.windowsinformationprotectionpolicies.item.WindowsInformationProtectionPolicyItemRequestBuilder
@Generated("com.microsoft.kiota")
public class WindowsInformationProtectionPolicyItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the windowsInformationProtectionPolicies property of the microsoft.graph.deviceAppManagement entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRead properties and relationships of the windowsInformationProtectionPolicy object.classConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionWindowsInformationProtectionPolicyItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWindowsInformationProtectionPolicyItemRequestBuilderand sets the default values.WindowsInformationProtectionPolicyItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWindowsInformationProtectionPolicyItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity.voiddelete()Deletes a windowsInformationProtectionPolicy.voiddelete(Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a windowsInformationProtectionPolicy.Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity.get()Read properties and relationships of the windowsInformationProtectionPolicy object.get(Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the windowsInformationProtectionPolicy object.Update the properties of a windowsInformationProtectionPolicy object.patch(WindowsInformationProtectionPolicy body, Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a windowsInformationProtectionPolicy object.Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity.com.microsoft.kiota.RequestInformationDeletes a windowsInformationProtectionPolicy.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a windowsInformationProtectionPolicy.com.microsoft.kiota.RequestInformationRead properties and relationships of the windowsInformationProtectionPolicy object.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the windowsInformationProtectionPolicy object.com.microsoft.kiota.RequestInformationUpdate the properties of a windowsInformationProtectionPolicy object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(WindowsInformationProtectionPolicy body, Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a windowsInformationProtectionPolicy object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
WindowsInformationProtectionPolicyItemRequestBuilder
public WindowsInformationProtectionPolicyItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWindowsInformationProtectionPolicyItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
WindowsInformationProtectionPolicyItemRequestBuilder
public WindowsInformationProtectionPolicyItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newWindowsInformationProtectionPolicyItemRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
assignments
Provides operations to manage the assignments property of the microsoft.graph.windowsInformationProtection entity.- Returns:
- a
AssignmentsRequestBuilder
-
exemptAppLockerFiles
Provides operations to manage the exemptAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity.- Returns:
- a
ExemptAppLockerFilesRequestBuilder
-
protectedAppLockerFiles
Provides operations to manage the protectedAppLockerFiles property of the microsoft.graph.windowsInformationProtection entity.- Returns:
- a
ProtectedAppLockerFilesRequestBuilder
-
delete
public void delete()Deletes a windowsInformationProtectionPolicy.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a windowsInformationProtectionPolicy.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Read properties and relationships of the windowsInformationProtectionPolicy object.- Returns:
- a
WindowsInformationProtectionPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public WindowsInformationProtectionPolicy get(@Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the windowsInformationProtectionPolicy object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WindowsInformationProtectionPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public WindowsInformationProtectionPolicy patch(@Nonnull WindowsInformationProtectionPolicy body) Update the properties of a windowsInformationProtectionPolicy object.- Parameters:
body- The request body- Returns:
- a
WindowsInformationProtectionPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public WindowsInformationProtectionPolicy patch(@Nonnull WindowsInformationProtectionPolicy body, @Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a windowsInformationProtectionPolicy object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
WindowsInformationProtectionPolicy - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Deletes a windowsInformationProtectionPolicy.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Deletes a windowsInformationProtectionPolicy.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Read properties and relationships of the windowsInformationProtectionPolicy object.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Read properties and relationships of the windowsInformationProtectionPolicy object.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull WindowsInformationProtectionPolicy body) Update the properties of a windowsInformationProtectionPolicy object.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull WindowsInformationProtectionPolicy body, @Nullable Consumer<WindowsInformationProtectionPolicyItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the properties of a windowsInformationProtectionPolicy object.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
@Nonnull public WindowsInformationProtectionPolicyItemRequestBuilder withUrl(@Nonnull String rawUrl) Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
WindowsInformationProtectionPolicyItemRequestBuilder
-