Class MicrosoftGraphDevice


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 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.
    • 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.
    • alternativeSecurityIds

      public List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds()
      Get the alternativeSecurityIds property: For internal use only. Not nullable.
      Returns:
      the alternativeSecurityIds value.
    • withAlternativeSecurityIds

      public MicrosoftGraphDevice withAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds)
      Set the alternativeSecurityIds property: For internal use only. Not nullable.
      Parameters:
      alternativeSecurityIds - the alternativeSecurityIds value to set.
      Returns:
      the MicrosoftGraphDevice object itself.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • deviceMetadata

      public String deviceMetadata()
      Get the deviceMetadata property: For internal use only. Set to null.
      Returns:
      the deviceMetadata value.
    • 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.
    • deviceVersion

      public Integer deviceVersion()
      Get the deviceVersion property: For internal use only.
      Returns:
      the deviceVersion value.
    • 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.
    • displayName

      public String displayName()
      Get the displayName property: The display name for the device. Required.
      Returns:
      the displayName value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • mdmAppId

      public String mdmAppId()
      Get the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.
      Returns:
      the mdmAppId value.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • operatingSystem

      public String operatingSystem()
      Get the operatingSystem property: The type of operating system on the device. Required.
      Returns:
      the operatingSystem value.
    • 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.
    • operatingSystemVersion

      public String operatingSystemVersion()
      Get the operatingSystemVersion property: The version of the operating system on the device. Required.
      Returns:
      the operatingSystemVersion value.
    • 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.
    • physicalIds

      public List<String> physicalIds()
      Get the physicalIds property: For internal use only. Not nullable.
      Returns:
      the physicalIds value.
    • withPhysicalIds

      public MicrosoftGraphDevice withPhysicalIds(List<String> physicalIds)
      Set the physicalIds property: For internal use only. Not nullable.
      Parameters:
      physicalIds - the physicalIds value to set.
      Returns:
      the MicrosoftGraphDevice object itself.
    • profileType

      public String profileType()
      Get the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.
      Returns:
      the profileType value.
    • 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.
    • systemLabels

      public List<String> systemLabels()
      Get the systemLabels property: List of labels applied to the device by the system.
      Returns:
      the systemLabels value.
    • withSystemLabels

      public MicrosoftGraphDevice withSystemLabels(List<String> 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.
    • 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.
    • 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.
    • 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.
    • withMemberOf

      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.
    • registeredOwners

      public List<MicrosoftGraphDirectoryObjectInner> 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.
    • withRegisteredOwners

      public MicrosoftGraphDevice withRegisteredOwners(List<MicrosoftGraphDirectoryObjectInner> 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.
    • registeredUsers

      public List<MicrosoftGraphDirectoryObjectInner> 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.
    • withRegisteredUsers

      public MicrosoftGraphDevice withRegisteredUsers(List<MicrosoftGraphDirectoryObjectInner> 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.
    • transitiveMemberOf

      public List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf()
      Get the transitiveMemberOf property: The transitiveMemberOf property.
      Returns:
      the transitiveMemberOf value.
    • withTransitiveMemberOf

      public MicrosoftGraphDevice withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
      Set the transitiveMemberOf property: The transitiveMemberOf property.
      Parameters:
      transitiveMemberOf - the transitiveMemberOf value to set.
      Returns:
      the MicrosoftGraphDevice object itself.
    • extensions

      public List<MicrosoftGraphExtension> extensions()
      Get the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.
      Returns:
      the extensions value.
    • withExtensions

      public MicrosoftGraphDevice withExtensions(List<MicrosoftGraphExtension> 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.
    • additionalProperties

      public Map<String,Object> 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:
      additionalProperties in class MicrosoftGraphDirectoryObjectInner
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphDevice withAdditionalProperties(Map<String,Object> 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:
      withAdditionalProperties in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphDevice object itself.
    • withDeletedDateTime

      public MicrosoftGraphDevice withDeletedDateTime(OffsetDateTime deletedDateTime)
      Set the deletedDateTime property: The deletedDateTime property.
      Overrides:
      withDeletedDateTime in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      deletedDateTime - the deletedDateTime value to set.
      Returns:
      the MicrosoftGraphDirectoryObjectInner object itself.
    • withId

      public MicrosoftGraphDevice withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphDirectoryObjectInner
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphDirectoryObjectInner
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.