Class DeviceCategoryRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.devicemanagement.manageddevices.item.devicecategory.DeviceCategoryRequestBuilder
@Generated("com.microsoft.kiota")
public class DeviceCategoryRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the deviceCategory property of the microsoft.graph.managedDevice entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classDevice categoryclassConfiguration 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
ConstructorsConstructorDescriptionDeviceCategoryRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceCategoryRequestBuilderand sets the default values.DeviceCategoryRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceCategoryRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete navigation property deviceCategory for deviceManagementvoiddelete(Consumer<DeviceCategoryRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceCategory for deviceManagementget()Device categoryget(Consumer<DeviceCategoryRequestBuilder.GetRequestConfiguration> requestConfiguration) Device categorypatch(DeviceCategory body) Update the navigation property deviceCategory in deviceManagementpatch(DeviceCategory body, Consumer<DeviceCategoryRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceCategory in deviceManagementref()Provides operations to manage the collection of deviceManagement entities.com.microsoft.kiota.RequestInformationDelete navigation property deviceCategory for deviceManagementcom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<DeviceCategoryRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceCategory for deviceManagementcom.microsoft.kiota.RequestInformationDevice categorycom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<DeviceCategoryRequestBuilder.GetRequestConfiguration> requestConfiguration) Device categorycom.microsoft.kiota.RequestInformationUpdate the navigation property deviceCategory in deviceManagementcom.microsoft.kiota.RequestInformationtoPatchRequestInformation(DeviceCategory body, Consumer<DeviceCategoryRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceCategory in deviceManagementReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
DeviceCategoryRequestBuilder
public DeviceCategoryRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceCategoryRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
DeviceCategoryRequestBuilder
public DeviceCategoryRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDeviceCategoryRequestBuilderand 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
-
ref
Provides operations to manage the collection of deviceManagement entities.- Returns:
- a
RefRequestBuilder
-
delete
public void delete()Delete navigation property deviceCategory for deviceManagement- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<DeviceCategoryRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceCategory 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
Device category- Returns:
- a
DeviceCategory - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public DeviceCategory get(@Nullable Consumer<DeviceCategoryRequestBuilder.GetRequestConfiguration> requestConfiguration) Device category- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DeviceCategory - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update the navigation property deviceCategory in deviceManagement- Parameters:
body- The request body- Returns:
- a
DeviceCategory - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public DeviceCategory patch(@Nonnull DeviceCategory body, @Nullable Consumer<DeviceCategoryRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceCategory in deviceManagement- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
DeviceCategory - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete navigation property deviceCategory for deviceManagement- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DeviceCategoryRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete navigation property deviceCategory 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()Device category- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DeviceCategoryRequestBuilder.GetRequestConfiguration> requestConfiguration) Device category- 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 DeviceCategory body) Update the navigation property deviceCategory in deviceManagement- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull DeviceCategory body, @Nullable Consumer<DeviceCategoryRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property deviceCategory 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
DeviceCategoryRequestBuilder
-