Class 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
  • Constructor Details

    • Device

      public Device()
      Instantiates a new Device and 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

      @Nullable public Boolean 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

      @Nullable public List<AlternativeSecurityId> getAlternativeSecurityIds()
      Gets the alternativeSecurityIds property value. For internal use only. Not nullable. Supports $filter (eq, not, ge, le).
      Returns:
      a List<AlternativeSecurityId>
    • getApproximateLastSignInDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public 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

      @Nullable public String 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

      @Nullable public 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

      @Nullable public String getDeviceMetadata()
      Gets the deviceMetadata property value. For internal use only. Set to null.
      Returns:
      a String
    • getDeviceOwnership

      @Nullable public 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

      @Nullable public Integer getDeviceVersion()
      Gets the deviceVersion property value. For internal use only.
      Returns:
      a Integer
    • getDisplayName

      @Nullable public String 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

      @Nullable public 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

      @Nullable public 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

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for the device. Read-only. Nullable.
      Returns:
      a List<Extension>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class DirectoryObject
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsCompliant

      @Nullable public Boolean 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

      @Nullable public 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

      @Nullable public 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

      @Nullable public 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

      @Nullable public String 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

      @Nullable public String getManufacturer()
      Gets the manufacturer property value. Manufacturer of the device. Read-only.
      Returns:
      a String
    • getMdmAppId

      @Nullable public 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

      @Nullable public List<DirectoryObject> 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

      @Nullable public String getModel()
      Gets the model property value. Model of the device. Read-only.
      Returns:
      a String
    • getOnPremisesLastSyncDateTime

      @Nullable public OffsetDateTime 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

      @Nullable public String 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

      @Nullable public Boolean 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

      @Nullable public String 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

      @Nullable public 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

      @Nullable public List<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).
      Returns:
      a List<String>
    • getProfileType

      @Nullable public String getProfileType()
      Gets the profileType property value. The profile type of the device. Possible values: RegisteredDevice (default), SecureVM, Printer, Shared, IoT.
      Returns:
      a String
    • getRegisteredOwners

      @Nullable public List<DirectoryObject> 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

      @Nullable public 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

      @Nullable public OffsetDateTime 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

      @Nullable public List<String> getSystemLabels()
      Gets the systemLabels property value. List of labels applied to the device by the system. Supports $filter (/$count eq 0, /$count ne 0).
      Returns:
      a List<String>
    • getTransitiveMemberOf

      @Nullable public List<DirectoryObject> 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

      @Nullable public String 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:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class DirectoryObject
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAccountEnabled

      public void setAccountEnabled(@Nullable Boolean value)
      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

      public void setAlternativeSecurityIds(@Nullable List<AlternativeSecurityId> value)
      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

      public void setApproximateLastSignInDateTime(@Nullable OffsetDateTime value)
      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

      public void setComplianceExpirationDateTime(@Nullable OffsetDateTime value)
      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

      public void setDeviceCategory(@Nullable String value)
      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

      public void setDeviceId(@Nullable String value)
      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

      public void setDeviceMetadata(@Nullable String value)
      Sets the deviceMetadata property value. For internal use only. Set to null.
      Parameters:
      value - Value to set for the deviceMetadata property.
    • setDeviceOwnership

      public void setDeviceOwnership(@Nullable String value)
      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

      public void setDeviceVersion(@Nullable Integer value)
      Sets the deviceVersion property value. For internal use only.
      Parameters:
      value - Value to set for the deviceVersion property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      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

      public void setEnrollmentProfileName(@Nullable String value)
      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

      public void setEnrollmentType(@Nullable String value)
      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

      public void setExtensions(@Nullable List<Extension> value)
      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

      public void setIsCompliant(@Nullable Boolean value)
      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

      public void setIsManaged(@Nullable Boolean value)
      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

      public void setIsManagementRestricted(@Nullable Boolean value)
      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

      public void setIsRooted(@Nullable Boolean value)
      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

      public void setManagementType(@Nullable String value)
      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

      public void setManufacturer(@Nullable String value)
      Sets the manufacturer property value. Manufacturer of the device. Read-only.
      Parameters:
      value - Value to set for the manufacturer property.
    • setMdmAppId

      public void setMdmAppId(@Nullable String value)
      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

      public void setMemberOf(@Nullable List<DirectoryObject> value)
      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

      public void setModel(@Nullable String value)
      Sets the model property value. Model of the device. Read-only.
      Parameters:
      value - Value to set for the model property.
    • setOnPremisesLastSyncDateTime

      public void setOnPremisesLastSyncDateTime(@Nullable OffsetDateTime value)
      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

      public void setOnPremisesSecurityIdentifier(@Nullable String value)
      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

      public void setOnPremisesSyncEnabled(@Nullable Boolean value)
      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

      public void setOperatingSystem(@Nullable String value)
      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

      public void setOperatingSystemVersion(@Nullable String value)
      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

      public void setPhysicalIds(@Nullable List<String> value)
      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

      public void setProfileType(@Nullable String value)
      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

      public void setRegisteredOwners(@Nullable List<DirectoryObject> value)
      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

      public void setRegisteredUsers(@Nullable List<DirectoryObject> value)
      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

      public void setRegistrationDateTime(@Nullable OffsetDateTime value)
      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

      public void setSystemLabels(@Nullable List<String> value)
      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

      public void setTransitiveMemberOf(@Nullable List<DirectoryObject> value)
      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

      public void setTrustType(@Nullable String value)
      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.