Package com.microsoft.graph.models
Class Device
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.DirectoryObject
com.microsoft.graph.models.Device
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class Device
extends DirectoryObject
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DevicecreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the accountEnabled property value.Gets the alternativeSecurityIds property value.Gets the approximateLastSignInDateTime property value.Gets the complianceExpirationDateTime property value.Gets the deviceCategory property value.Gets the deviceId property value.Gets the deviceMetadata property value.Gets the deviceOwnership property value.Gets the deviceVersion property value.Gets the displayName property value.Gets the enrollmentProfileName property value.Gets the enrollmentType property value.Gets the extensions property value.The deserialization information for the current modelGets the isCompliant property value.Gets the isManaged property value.Gets the isManagementRestricted property value.Gets the isRooted property value.Gets the managementType property value.Gets the manufacturer property value.Gets the mdmAppId property value.Gets the memberOf property value.getModel()Gets the model property value.Gets the onPremisesLastSyncDateTime property value.Gets the onPremisesSecurityIdentifier property value.Gets the onPremisesSyncEnabled property value.Gets the operatingSystem property value.Gets the operatingSystemVersion property value.Gets the physicalIds property value.Gets the profileType property value.Gets the registeredOwners property value.Gets the registeredUsers property value.Gets the registrationDateTime property value.Gets the systemLabels property value.Gets the transitiveMemberOf property value.Gets the trustType property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAccountEnabled(Boolean value) Sets the accountEnabled property value.voidSets the alternativeSecurityIds property value.voidSets the approximateLastSignInDateTime property value.voidSets the complianceExpirationDateTime property value.voidsetDeviceCategory(String value) Sets the deviceCategory property value.voidsetDeviceId(String value) Sets the deviceId property value.voidsetDeviceMetadata(String value) Sets the deviceMetadata property value.voidsetDeviceOwnership(String value) Sets the deviceOwnership property value.voidsetDeviceVersion(Integer value) Sets the deviceVersion property value.voidsetDisplayName(String value) Sets the displayName property value.voidsetEnrollmentProfileName(String value) Sets the enrollmentProfileName property value.voidsetEnrollmentType(String value) Sets the enrollmentType property value.voidsetExtensions(List<Extension> value) Sets the extensions property value.voidsetIsCompliant(Boolean value) Sets the isCompliant property value.voidsetIsManaged(Boolean value) Sets the isManaged property value.voidsetIsManagementRestricted(Boolean value) Sets the isManagementRestricted property value.voidsetIsRooted(Boolean value) Sets the isRooted property value.voidsetManagementType(String value) Sets the managementType property value.voidsetManufacturer(String value) Sets the manufacturer property value.voidsetMdmAppId(String value) Sets the mdmAppId property value.voidsetMemberOf(List<DirectoryObject> value) Sets the memberOf property value.voidSets the model property value.voidSets the onPremisesLastSyncDateTime property value.voidSets the onPremisesSecurityIdentifier property value.voidsetOnPremisesSyncEnabled(Boolean value) Sets the onPremisesSyncEnabled property value.voidsetOperatingSystem(String value) Sets the operatingSystem property value.voidsetOperatingSystemVersion(String value) Sets the operatingSystemVersion property value.voidsetPhysicalIds(List<String> value) Sets the physicalIds property value.voidsetProfileType(String value) Sets the profileType property value.voidsetRegisteredOwners(List<DirectoryObject> value) Sets the registeredOwners property value.voidsetRegisteredUsers(List<DirectoryObject> value) Sets the registeredUsers property value.voidSets the registrationDateTime property value.voidsetSystemLabels(List<String> value) Sets the systemLabels property value.voidsetTransitiveMemberOf(List<DirectoryObject> value) Sets the transitiveMemberOf property value.voidsetTrustType(String value) Sets the trustType property value.Methods inherited from class com.microsoft.graph.models.DirectoryObject
getDeletedDateTime, setDeletedDateTimeMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
Device
public Device()Instantiates a newDeviceand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static Device createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode- The parse node to use to read the discriminator value and create the object- Returns:
- a
Device
-
getAccountEnabled
Gets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers with at least the Cloud Device Administrator role can set this property.- Returns:
- a
Boolean
-
getAlternativeSecurityIds
Gets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).- Returns:
- a
List<AlternativeSecurityId>
-
getApproximateLastSignInDateTime
Gets the approximateLastSignInDateTime property value. 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 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderby.- Returns:
- a
OffsetDateTime
-
getComplianceExpirationDateTime
Gets the complianceExpirationDateTime property value. 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 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
getDeviceCategory
Gets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.- Returns:
- a
String
-
getDeviceId
Gets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This alternate key can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).- Returns:
- a
String
-
getDeviceMetadata
Gets the deviceMetadata property value. For internal use only. Set to null.- Returns:
- a
String
-
getDeviceOwnership
Gets the deviceOwnership property value. Ownership of the device. Intune sets this property. Possible values are: unknown, company, personal.- Returns:
- a
String
-
getDeviceVersion
Gets the deviceVersion property value. For internal use only.- Returns:
- a
Integer
-
getDisplayName
Gets the displayName property value. The display name for the device. Maximum length is 256 characters. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.- Returns:
- a
String
-
getEnrollmentProfileName
Gets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.- Returns:
- a
String
-
getEnrollmentType
Gets the enrollmentType property value. Enrollment type of the device. Intune sets this property. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed.- Returns:
- a
String
-
getExtensions
Gets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable. -
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classDirectoryObject- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsCompliant
Gets the isCompliant property value. 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. Supports $filter (eq, ne, not).- Returns:
- a
Boolean
-
getIsManaged
Gets the isManaged property value. 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. Supports $filter (eq, ne, not).- Returns:
- a
Boolean
-
getIsManagementRestricted
Gets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Returns:
- a
Boolean
-
getIsRooted
Gets the isRooted property value. true if the device is rooted or jail-broken. This property can only be updated by Intune.- Returns:
- a
Boolean
-
getManagementType
Gets the managementType property value. The management channel of the device. This property is set by Intune. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController.- Returns:
- a
String
-
getManufacturer
Gets the manufacturer property value. Manufacturer of the device. Read-only.- Returns:
- a
String
-
getMdmAppId
Gets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).- Returns:
- a
String
-
getMemberOf
Gets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getModel
Gets the model property value. Model of the device. Read-only.- Returns:
- a
String
-
getOnPremisesLastSyncDateTime
Gets the onPremisesLastSyncDateTime property value. 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 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).- Returns:
- a
OffsetDateTime
-
getOnPremisesSecurityIdentifier
Gets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq).- Returns:
- a
String
-
getOnPremisesSyncEnabled
Gets the onPremisesSyncEnabled property value. 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. Supports $filter (eq, ne, not, in, and eq on null values).- Returns:
- a
Boolean
-
getOperatingSystem
Gets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).- Returns:
- a
String
-
getOperatingSystemVersion
Gets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).- Returns:
- a
String
-
getPhysicalIds
Gets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0). -
getProfileType
Gets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.- Returns:
- a
String
-
getRegisteredOwners
Gets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getRegisteredUsers
Gets the registeredUsers property value. 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. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getRegistrationDateTime
Gets the registrationDateTime property value. Date and time of when the device was registered. 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 is 2014-01-01T00:00:00Z. Read-only.- Returns:
- a
OffsetDateTime
-
getSystemLabels
Gets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0). -
getTransitiveMemberOf
Gets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.- Returns:
- a
List<DirectoryObject>
-
getTrustType
Gets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud-only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more information, see Introduction to device management in Microsoft Entra ID. Supports $filter (eq, ne, not, in).- Returns:
- a
String
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classDirectoryObject- Parameters:
writer- Serialization writer to use to serialize this model
-
setAccountEnabled
Sets the accountEnabled property value. true if the account is enabled; otherwise, false. Required. Default is true. Supports $filter (eq, ne, not, in). Only callers with at least the Cloud Device Administrator role can set this property.- Parameters:
value- Value to set for the accountEnabled property.
-
setAlternativeSecurityIds
Sets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).- Parameters:
value- Value to set for the alternativeSecurityIds property.
-
setApproximateLastSignInDateTime
Sets the approximateLastSignInDateTime property value. 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 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, not, ge, le, and eq on null values) and $orderby.- Parameters:
value- Value to set for the approximateLastSignInDateTime property.
-
setComplianceExpirationDateTime
Sets the complianceExpirationDateTime property value. 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 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value- Value to set for the complianceExpirationDateTime property.
-
setDeviceCategory
Sets the deviceCategory property value. User-defined property set by Intune to automatically add devices to groups and simplify managing devices.- Parameters:
value- Value to set for the deviceCategory property.
-
setDeviceId
Sets the deviceId property value. Unique identifier set by Azure Device Registration Service at the time of registration. This alternate key can be used to reference the device object. Supports $filter (eq, ne, not, startsWith).- Parameters:
value- Value to set for the deviceId property.
-
setDeviceMetadata
Sets the deviceMetadata property value. For internal use only. Set to null.- Parameters:
value- Value to set for the deviceMetadata property.
-
setDeviceOwnership
Sets the deviceOwnership property value. Ownership of the device. Intune sets this property. Possible values are: unknown, company, personal.- Parameters:
value- Value to set for the deviceOwnership property.
-
setDeviceVersion
Sets the deviceVersion property value. For internal use only.- Parameters:
value- Value to set for the deviceVersion property.
-
setDisplayName
Sets the displayName property value. The display name for the device. Maximum length is 256 characters. Required. Supports $filter (eq, ne, not, ge, le, in, startsWith, and eq on null values), $search, and $orderby.- Parameters:
value- Value to set for the displayName property.
-
setEnrollmentProfileName
Sets the enrollmentProfileName property value. Enrollment profile applied to the device. For example, Apple Device Enrollment Profile, Device enrollment - Corporate device identifiers, or Windows Autopilot profile name. This property is set by Intune.- Parameters:
value- Value to set for the enrollmentProfileName property.
-
setEnrollmentType
Sets the enrollmentType property value. Enrollment type of the device. Intune sets this property. Possible values are: unknown, userEnrollment, deviceEnrollmentManager, appleBulkWithUser, appleBulkWithoutUser, windowsAzureADJoin, windowsBulkUserless, windowsAutoEnrollment, windowsBulkAzureDomainJoin, windowsCoManagement, windowsAzureADJoinUsingDeviceAuth,appleUserEnrollment, appleUserEnrollmentWithServiceAccount. NOTE: This property might return other values apart from those listed.- Parameters:
value- Value to set for the enrollmentType property.
-
setExtensions
Sets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.- Parameters:
value- Value to set for the extensions property.
-
setIsCompliant
Sets the isCompliant property value. 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. Supports $filter (eq, ne, not).- Parameters:
value- Value to set for the isCompliant property.
-
setIsManaged
Sets the isManaged property value. 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. Supports $filter (eq, ne, not).- Parameters:
value- Value to set for the isManaged property.
-
setIsManagementRestricted
Sets the isManagementRestricted property value. Indicates whether the device is a member of a restricted management administrative unit. If not set, the default value is null and the default behavior is false. Read-only. To manage a device that's a member of a restricted management administrative unit, the administrator or calling app must be assigned a Microsoft Entra role at the scope of the restricted management administrative unit. Returned only on $select.- Parameters:
value- Value to set for the isManagementRestricted property.
-
setIsRooted
Sets the isRooted property value. true if the device is rooted or jail-broken. This property can only be updated by Intune.- Parameters:
value- Value to set for the isRooted property.
-
setManagementType
Sets the managementType property value. The management channel of the device. This property is set by Intune. Possible values are: eas, mdm, easMdm, intuneClient, easIntuneClient, configurationManagerClient, configurationManagerClientMdm, configurationManagerClientMdmEas, unknown, jamf, googleCloudDevicePolicyController.- Parameters:
value- Value to set for the managementType property.
-
setManufacturer
Sets the manufacturer property value. Manufacturer of the device. Read-only.- Parameters:
value- Value to set for the manufacturer property.
-
setMdmAppId
Sets the mdmAppId property value. Application identifier used to register device into MDM. Read-only. Supports $filter (eq, ne, not, startsWith).- Parameters:
value- Value to set for the mdmAppId property.
-
setMemberOf
Sets the memberOf property value. Groups and administrative units that this device is a member of. Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the memberOf property.
-
setModel
Sets the model property value. Model of the device. Read-only.- Parameters:
value- Value to set for the model property.
-
setOnPremisesLastSyncDateTime
Sets the onPremisesLastSyncDateTime property value. 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 is 2014-01-01T00:00:00Z Read-only. Supports $filter (eq, ne, not, ge, le, in).- Parameters:
value- Value to set for the onPremisesLastSyncDateTime property.
-
setOnPremisesSecurityIdentifier
Sets the onPremisesSecurityIdentifier property value. The on-premises security identifier (SID) for the user who was synchronized from on-premises to the cloud. Read-only. Returned only on $select. Supports $filter (eq).- Parameters:
value- Value to set for the onPremisesSecurityIdentifier property.
-
setOnPremisesSyncEnabled
Sets the onPremisesSyncEnabled property value. 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. Supports $filter (eq, ne, not, in, and eq on null values).- Parameters:
value- Value to set for the onPremisesSyncEnabled property.
-
setOperatingSystem
Sets the operatingSystem property value. The type of operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).- Parameters:
value- Value to set for the operatingSystem property.
-
setOperatingSystemVersion
Sets the operatingSystemVersion property value. The version of the operating system on the device. Required. Supports $filter (eq, ne, not, ge, le, startsWith, and eq on null values).- Parameters:
value- Value to set for the operatingSystemVersion property.
-
setPhysicalIds
Sets the physicalIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le, startsWith,/$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the physicalIds property.
-
setProfileType
Sets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.- Parameters:
value- Value to set for the profileType property.
-
setRegisteredOwners
Sets the registeredOwners property value. The user that cloud joined the device or registered their personal device. The registered owner is set at the time of registration. Read-only. Nullable. Supports $expand.- Parameters:
value- Value to set for the registeredOwners property.
-
setRegisteredUsers
Sets the registeredUsers property value. 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. Supports $expand.- Parameters:
value- Value to set for the registeredUsers property.
-
setRegistrationDateTime
Sets the registrationDateTime property value. Date and time of when the device was registered. 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 is 2014-01-01T00:00:00Z. Read-only.- Parameters:
value- Value to set for the registrationDateTime property.
-
setSystemLabels
Sets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).- Parameters:
value- Value to set for the systemLabels property.
-
setTransitiveMemberOf
Sets the transitiveMemberOf property value. Groups and administrative units that the device is a member of. This operation is transitive. Supports $expand.- Parameters:
value- Value to set for the transitiveMemberOf property.
-
setTrustType
Sets the trustType property value. Type of trust for the joined device. Read-only. Possible values: Workplace (indicates bring your own personal devices), AzureAd (Cloud-only joined devices), ServerAd (on-premises domain joined devices joined to Microsoft Entra ID). For more information, see Introduction to device management in Microsoft Entra ID. Supports $filter (eq, ne, not, in).- Parameters:
value- Value to set for the trustType property.
-