Package com.microsoft.graph.devicemanagement.windowsmalwareinformation.item.devicemalwarestates.item
Class MalwareStateForWindowsDeviceItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.devicemanagement.windowsmalwareinformation.item.devicemalwarestates.item.MalwareStateForWindowsDeviceItemRequestBuilder
@Generated("com.microsoft.kiota")
public class MalwareStateForWindowsDeviceItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the deviceMalwareStates property of the microsoft.graph.windowsMalwareInformation entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classList of devices affected by current malware with the malware state on each deviceclassConfiguration 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
ConstructorsConstructorDescriptionMalwareStateForWindowsDeviceItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMalwareStateForWindowsDeviceItemRequestBuilderand sets the default values.MalwareStateForWindowsDeviceItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMalwareStateForWindowsDeviceItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property deviceMalwareStates for deviceManagementvoiddelete(Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceMalwareStates for deviceManagementget()List of devices affected by current malware with the malware state on each deviceget(Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of devices affected by current malware with the malware state on each deviceUpdate the navigation property deviceMalwareStates in deviceManagementpatch(MalwareStateForWindowsDevice body, Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceMalwareStates in deviceManagementcom.microsoft.kiota.RequestInformationDelete navigation property deviceMalwareStates for deviceManagementcom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceMalwareStates for deviceManagementcom.microsoft.kiota.RequestInformationList of devices affected by current malware with the malware state on each devicecom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of devices affected by current malware with the malware state on each devicecom.microsoft.kiota.RequestInformationUpdate the navigation property deviceMalwareStates in deviceManagementcom.microsoft.kiota.RequestInformationtoPatchRequestInformation(MalwareStateForWindowsDevice body, Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceMalwareStates in deviceManagementReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
MalwareStateForWindowsDeviceItemRequestBuilder
public MalwareStateForWindowsDeviceItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMalwareStateForWindowsDeviceItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
MalwareStateForWindowsDeviceItemRequestBuilder
public MalwareStateForWindowsDeviceItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newMalwareStateForWindowsDeviceItemRequestBuilderand 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
-
delete
public void delete()Delete navigation property deviceMalwareStates for deviceManagement- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceMalwareStates for deviceManagement- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
List of devices affected by current malware with the malware state on each device- Returns:
- a
MalwareStateForWindowsDevice - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public MalwareStateForWindowsDevice get(@Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of devices affected by current malware with the malware state on each device- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MalwareStateForWindowsDevice - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property deviceMalwareStates in deviceManagement- Parameters:
body- The request body- Returns:
- a
MalwareStateForWindowsDevice - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public MalwareStateForWindowsDevice patch(@Nonnull MalwareStateForWindowsDevice body, @Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceMalwareStates in deviceManagement- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
MalwareStateForWindowsDevice - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property deviceMalwareStates for deviceManagement- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceMalwareStates for deviceManagement- 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()List of devices affected by current malware with the malware state on each device- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) List of devices affected by current malware with the malware state on each device- 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 MalwareStateForWindowsDevice body) Update the navigation property deviceMalwareStates in deviceManagement- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull MalwareStateForWindowsDevice body, @Nullable Consumer<MalwareStateForWindowsDeviceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceMalwareStates in deviceManagement- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
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
MalwareStateForWindowsDeviceItemRequestBuilder
-