Compartilhar via


MicrosoftGraphDevice Class

public final class MicrosoftGraphDevice
extends MicrosoftGraphDirectoryObjectInner

device Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Constructor Summary

Constructor Description
MicrosoftGraphDevice()

Creates an instance of MicrosoftGraphDevice class.

Method Summary

Modifier and Type Method and Description
Boolean accountEnabled()

Get the accountEnabled property: true if the account is enabled; otherwise, false.

Map<String,Object> additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object.

List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds()

Get the alternativeSecurityIds property: For internal use only.

OffsetDateTime approximateLastSignInDateTime()

Get the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

OffsetDateTime complianceExpirationDateTime()

Get the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.

String deviceId()

Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.

String deviceMetadata()

Get the deviceMetadata property: For internal use only.

Integer deviceVersion()

Get the deviceVersion property: For internal use only.

String displayName()

Get the displayName property: The display name for the device.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The collection of open extensions defined for the device.

static MicrosoftGraphDevice fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDevice from the JsonReader.

Boolean isCompliant()

Get the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.

Boolean isManaged()

Get the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.

String mdmAppId()

Get the mdmAppId property: Application identifier used to register device into MDM.

List<MicrosoftGraphDirectoryObjectInner> memberOf()

Get the memberOf property: Groups that this group is a member of.

OffsetDateTime onPremisesLastSyncDateTime()

Get the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.

Boolean onPremisesSyncEnabled()

Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).

String operatingSystem()

Get the operatingSystem property: The type of operating system on the device.

String operatingSystemVersion()

Get the operatingSystemVersion property: The version of the operating system on the device.

List<String> physicalIds()

Get the physicalIds property: For internal use only.

String profileType()

Get the profileType property: The profile type of the device.

List<MicrosoftGraphDirectoryObjectInner> registeredOwners()

Get the registeredOwners property: The user that cloud joined the device or registered their personal device.

List<MicrosoftGraphDirectoryObjectInner> registeredUsers()

Get the registeredUsers property: Collection of registered users of the device.

List<String> systemLabels()

Get the systemLabels property: List of labels applied to the device by the system.

JsonWriter toJson(JsonWriter jsonWriter)
List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf()

Get the transitiveMemberOf property: The transitiveMemberOf property.

String trustType()

Get the trustType property: Type of trust for the joined device.

void validate()

Validates the instance.

MicrosoftGraphDevice withAccountEnabled(Boolean accountEnabled)

Set the accountEnabled property: true if the account is enabled; otherwise, false.

MicrosoftGraphDevice withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object.

MicrosoftGraphDevice withAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds)

Set the alternativeSecurityIds property: For internal use only.

MicrosoftGraphDevice withApproximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime)

Set the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphDevice withComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime)

Set the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.

MicrosoftGraphDevice withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

MicrosoftGraphDevice withDeviceId(String deviceId)

Set the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.

MicrosoftGraphDevice withDeviceMetadata(String deviceMetadata)

Set the deviceMetadata property: For internal use only.

MicrosoftGraphDevice withDeviceVersion(Integer deviceVersion)

Set the deviceVersion property: For internal use only.

MicrosoftGraphDevice withDisplayName(String displayName)

Set the displayName property: The display name for the device.

MicrosoftGraphDevice withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The collection of open extensions defined for the device.

MicrosoftGraphDevice withId(String id)

Set the id property: Read-only.

MicrosoftGraphDevice withIsCompliant(Boolean isCompliant)

Set the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.

MicrosoftGraphDevice withIsManaged(Boolean isManaged)

Set the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.

MicrosoftGraphDevice withMdmAppId(String mdmAppId)

Set the mdmAppId property: Application identifier used to register device into MDM.

MicrosoftGraphDevice withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)

Set the memberOf property: Groups that this group is a member of.

MicrosoftGraphDevice withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)

Set the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.

MicrosoftGraphDevice withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)

Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default).

MicrosoftGraphDevice withOperatingSystem(String operatingSystem)

Set the operatingSystem property: The type of operating system on the device.

MicrosoftGraphDevice withOperatingSystemVersion(String operatingSystemVersion)

Set the operatingSystemVersion property: The version of the operating system on the device.

MicrosoftGraphDevice withPhysicalIds(List<String> physicalIds)

Set the physicalIds property: For internal use only.

MicrosoftGraphDevice withProfileType(String profileType)

Set the profileType property: The profile type of the device.

MicrosoftGraphDevice withRegisteredOwners(List<MicrosoftGraphDirectoryObjectInner> registeredOwners)

Set the registeredOwners property: The user that cloud joined the device or registered their personal device.

MicrosoftGraphDevice withRegisteredUsers(List<MicrosoftGraphDirectoryObjectInner> registeredUsers)

Set the registeredUsers property: Collection of registered users of the device.

MicrosoftGraphDevice withSystemLabels(List<String> systemLabels)

Set the systemLabels property: List of labels applied to the device by the system.

MicrosoftGraphDevice withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)

Set the transitiveMemberOf property: The transitiveMemberOf property.

MicrosoftGraphDevice withTrustType(String trustType)

Set the trustType property: Type of trust for the joined device.

Methods inherited from MicrosoftGraphDirectoryObjectInner

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphDevice

public MicrosoftGraphDevice()

Creates an instance of MicrosoftGraphDevice class.

Method Details

accountEnabled

public Boolean accountEnabled()

Get the accountEnabled property: true if the account is enabled; otherwise, false. Required.

Returns:

the accountEnabled value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

MicrosoftGraphDevice.additionalProperties()

Returns:

the additionalProperties value.

alternativeSecurityIds

public List alternativeSecurityIds()

Get the alternativeSecurityIds property: For internal use only. Not nullable.

Returns:

the alternativeSecurityIds value.

approximateLastSignInDateTime

public OffsetDateTime approximateLastSignInDateTime()

Get the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.

Returns:

the approximateLastSignInDateTime value.

complianceExpirationDateTime

public OffsetDateTime complianceExpirationDateTime()

Get the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.

Returns:

the complianceExpirationDateTime value.

deviceId

public String deviceId()

Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.

Returns:

the deviceId value.

deviceMetadata

public String deviceMetadata()

Get the deviceMetadata property: For internal use only. Set to null.

Returns:

the deviceMetadata value.

deviceVersion

public Integer deviceVersion()

Get the deviceVersion property: For internal use only.

Returns:

the deviceVersion value.

displayName

public String displayName()

Get the displayName property: The display name for the device. Required.

Returns:

the displayName value.

extensions

public List extensions()

Get the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.

Returns:

the extensions value.

fromJson

public static MicrosoftGraphDevice fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphDevice from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphDevice 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 MicrosoftGraphDevice.

isCompliant

public Boolean isCompliant()

Get the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices.

Returns:

the isCompliant value.

isManaged

public Boolean isManaged()

Get the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices.

Returns:

the isManaged value.

mdmAppId

public String mdmAppId()

Get the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.

Returns:

the mdmAppId value.

memberOf

public List memberOf()

Get the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.

Returns:

the memberOf value.

onPremisesLastSyncDateTime

public OffsetDateTime onPremisesLastSyncDateTime()

Get the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' Read-only.

Returns:

the onPremisesLastSyncDateTime value.

onPremisesSyncEnabled

public Boolean onPremisesSyncEnabled()

Get the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.

Returns:

the onPremisesSyncEnabled value.

operatingSystem

public String operatingSystem()

Get the operatingSystem property: The type of operating system on the device. Required.

Returns:

the operatingSystem value.

operatingSystemVersion

public String operatingSystemVersion()

Get the operatingSystemVersion property: The version of the operating system on the device. Required.

Returns:

the operatingSystemVersion value.

physicalIds

public List physicalIds()

Get the physicalIds property: For internal use only. Not nullable.

Returns:

the physicalIds value.

profileType

public String profileType()

Get the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.

Returns:

the profileType value.

registeredOwners

public List registeredOwners()

Get the registeredOwners property: The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. Read-only. Nullable.

Returns:

the registeredOwners value.

registeredUsers

public List registeredUsers()

Get the registeredUsers property: Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable.

Returns:

the registeredUsers value.

systemLabels

public List systemLabels()

Get the systemLabels property: List of labels applied to the device by the system.

Returns:

the systemLabels value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphDevice.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

transitiveMemberOf

public List transitiveMemberOf()

Get the transitiveMemberOf property: The transitiveMemberOf property.

Returns:

the transitiveMemberOf value.

trustType

public String trustType()

Get the trustType property: Type of trust for the joined device. Read-only. Possible values: Workplace - indicates bring your own personal devicesAzureAd - Cloud only joined devicesServerAd - on-premises domain joined devices joined to Azure AD. For more details, see Introduction to device management in Azure Active Directory.

Returns:

the trustType value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphDevice.validate()

withAccountEnabled

public MicrosoftGraphDevice withAccountEnabled(Boolean accountEnabled)

Set the accountEnabled property: true if the account is enabled; otherwise, false. Required.

Parameters:

accountEnabled - the accountEnabled value to set.

Returns:

the MicrosoftGraphDevice object itself.

withAdditionalProperties

public MicrosoftGraphDevice withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphDevice object itself.

withAlternativeSecurityIds

public MicrosoftGraphDevice withAlternativeSecurityIds(List alternativeSecurityIds)

Set the alternativeSecurityIds property: For internal use only. Not nullable.

Parameters:

alternativeSecurityIds - the alternativeSecurityIds value to set.

Returns:

the MicrosoftGraphDevice object itself.

withApproximateLastSignInDateTime

public MicrosoftGraphDevice withApproximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime)

Set the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.

Parameters:

approximateLastSignInDateTime - the approximateLastSignInDateTime value to set.

Returns:

the MicrosoftGraphDevice object itself.

withComplianceExpirationDateTime

public MicrosoftGraphDevice withComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime)

Set the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only.

Parameters:

complianceExpirationDateTime - the complianceExpirationDateTime value to set.

Returns:

the MicrosoftGraphDevice object itself.

withDeletedDateTime

public MicrosoftGraphDevice withDeletedDateTime(OffsetDateTime deletedDateTime)

Set the deletedDateTime property: The deletedDateTime property.

Overrides:

MicrosoftGraphDevice.withDeletedDateTime(OffsetDateTime deletedDateTime)

Parameters:

deletedDateTime

withDeviceId

public MicrosoftGraphDevice withDeviceId(String deviceId)

Set the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.

Parameters:

deviceId - the deviceId value to set.

Returns:

the MicrosoftGraphDevice object itself.

withDeviceMetadata

public MicrosoftGraphDevice withDeviceMetadata(String deviceMetadata)

Set the deviceMetadata property: For internal use only. Set to null.

Parameters:

deviceMetadata - the deviceMetadata value to set.

Returns:

the MicrosoftGraphDevice object itself.

withDeviceVersion

public MicrosoftGraphDevice withDeviceVersion(Integer deviceVersion)

Set the deviceVersion property: For internal use only.

Parameters:

deviceVersion - the deviceVersion value to set.

Returns:

the MicrosoftGraphDevice object itself.

withDisplayName

public MicrosoftGraphDevice withDisplayName(String displayName)

Set the displayName property: The display name for the device. Required.

Parameters:

displayName - the displayName value to set.

Returns:

the MicrosoftGraphDevice object itself.

withExtensions

public MicrosoftGraphDevice withExtensions(List extensions)

Set the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphDevice object itself.

withId

public MicrosoftGraphDevice withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphDevice.withId(String id)

Parameters:

id

withIsCompliant

public MicrosoftGraphDevice withIsCompliant(Boolean isCompliant)

Set the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false. Read-only. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices.

Parameters:

isCompliant - the isCompliant value to set.

Returns:

the MicrosoftGraphDevice object itself.

withIsManaged

public MicrosoftGraphDevice withIsManaged(Boolean isManaged)

Set the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false. This can only be updated by Intune for any device OS type or by an approved MDM app for Windows OS devices.

Parameters:

isManaged - the isManaged value to set.

Returns:

the MicrosoftGraphDevice object itself.

withMdmAppId

public MicrosoftGraphDevice withMdmAppId(String mdmAppId)

Set the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.

Parameters:

mdmAppId - the mdmAppId value to set.

Returns:

the MicrosoftGraphDevice object itself.

withMemberOf

public MicrosoftGraphDevice withMemberOf(List memberOf)

Set the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.

Parameters:

memberOf - the memberOf value to set.

Returns:

the MicrosoftGraphDevice object itself.

withOnPremisesLastSyncDateTime

public MicrosoftGraphDevice withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)

Set the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' Read-only.

Parameters:

onPremisesLastSyncDateTime - the onPremisesLastSyncDateTime value to set.

Returns:

the MicrosoftGraphDevice object itself.

withOnPremisesSyncEnabled

public MicrosoftGraphDevice withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)

Set the onPremisesSyncEnabled property: true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only.

Parameters:

onPremisesSyncEnabled - the onPremisesSyncEnabled value to set.

Returns:

the MicrosoftGraphDevice object itself.

withOperatingSystem

public MicrosoftGraphDevice withOperatingSystem(String operatingSystem)

Set the operatingSystem property: The type of operating system on the device. Required.

Parameters:

operatingSystem - the operatingSystem value to set.

Returns:

the MicrosoftGraphDevice object itself.

withOperatingSystemVersion

public MicrosoftGraphDevice withOperatingSystemVersion(String operatingSystemVersion)

Set the operatingSystemVersion property: The version of the operating system on the device. Required.

Parameters:

operatingSystemVersion - the operatingSystemVersion value to set.

Returns:

the MicrosoftGraphDevice object itself.

withPhysicalIds

public MicrosoftGraphDevice withPhysicalIds(List physicalIds)

Set the physicalIds property: For internal use only. Not nullable.

Parameters:

physicalIds - the physicalIds value to set.

Returns:

the MicrosoftGraphDevice object itself.

withProfileType

public MicrosoftGraphDevice withProfileType(String profileType)

Set the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.

Parameters:

profileType - the profileType value to set.

Returns:

the MicrosoftGraphDevice object itself.

withRegisteredOwners

public MicrosoftGraphDevice withRegisteredOwners(List registeredOwners)

Set the registeredOwners property: The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Currently, there can be only one owner. Read-only. Nullable.

Parameters:

registeredOwners - the registeredOwners value to set.

Returns:

the MicrosoftGraphDevice object itself.

withRegisteredUsers

public MicrosoftGraphDevice withRegisteredUsers(List registeredUsers)

Set the registeredUsers property: Collection of registered users of the device. For cloud joined devices and registered personal devices, registered users are set to the same value as registered owners at the time of registration. Read-only. Nullable.

Parameters:

registeredUsers - the registeredUsers value to set.

Returns:

the MicrosoftGraphDevice object itself.

withSystemLabels

public MicrosoftGraphDevice withSystemLabels(List systemLabels)

Set the systemLabels property: List of labels applied to the device by the system.

Parameters:

systemLabels - the systemLabels value to set.

Returns:

the MicrosoftGraphDevice object itself.

withTransitiveMemberOf

public MicrosoftGraphDevice withTransitiveMemberOf(List transitiveMemberOf)

Set the transitiveMemberOf property: The transitiveMemberOf property.

Parameters:

transitiveMemberOf - the transitiveMemberOf value to set.

Returns:

the MicrosoftGraphDevice object itself.

withTrustType

public MicrosoftGraphDevice withTrustType(String trustType)

Set the trustType property: Type of trust for the joined device. Read-only. Possible values: Workplace - indicates bring your own personal devicesAzureAd - Cloud only joined devicesServerAd - on-premises domain joined devices joined to Azure AD. For more details, see Introduction to device management in Azure Active Directory.

Parameters:

trustType - the trustType value to set.

Returns:

the MicrosoftGraphDevice object itself.

Applies to