你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphDeviceCategory Class

public final class MicrosoftGraphDeviceCategory
extends MicrosoftGraphEntity

deviceCategory Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.

Constructor Summary

Constructor Description
MicrosoftGraphDeviceCategory()

Creates an instance of MicrosoftGraphDeviceCategory class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Device categories provides a way to organize your devices.

String description()

Get the description property: Optional description for the device category.

String displayName()

Get the displayName property: Display name for the device category.

static MicrosoftGraphDeviceCategory fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceCategory from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

MicrosoftGraphDeviceCategory withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Device categories provides a way to organize your devices.

MicrosoftGraphDeviceCategory withDescription(String description)

Set the description property: Optional description for the device category.

MicrosoftGraphDeviceCategory withDisplayName(String displayName)

Set the displayName property: Display name for the device category.

MicrosoftGraphDeviceCategory withId(String id)

Set the id property: Read-only.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDeviceCategory

public MicrosoftGraphDeviceCategory()

Creates an instance of MicrosoftGraphDeviceCategory class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.

Overrides:

MicrosoftGraphDeviceCategory.additionalProperties()

Returns:

the additionalProperties value.

description

public String description()

Get the description property: Optional description for the device category.

Returns:

the description value.

displayName

public String displayName()

Get the displayName property: Display name for the device category.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphDeviceCategory fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDeviceCategory from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDeviceCategory if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphDeviceCategory.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDeviceCategory.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDeviceCategory.validate()

withAdditionalProperties

public MicrosoftGraphDeviceCategory withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.

Overrides:

MicrosoftGraphDeviceCategory.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDeviceCategory object itself.

withDescription

public MicrosoftGraphDeviceCategory withDescription(String description)

Set the description property: Optional description for the device category.

Parameters:

description - the description value to set.

Returns:

the MicrosoftGraphDeviceCategory object itself.

withDisplayName

public MicrosoftGraphDeviceCategory withDisplayName(String displayName)

Set the displayName property: Display name for the device category.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphDeviceCategory object itself.

withId

public MicrosoftGraphDeviceCategory withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDeviceCategory.withId(String id)

Parameters:

id

Applies to