Class MicrosoftGraphDeviceInner
- java.lang.Object
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
-
- com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDeviceInner
-
public final class MicrosoftGraphDeviceInner extends MicrosoftGraphDirectoryObjectInner
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphDeviceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanaccountEnabled()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.OffsetDateTimeapproximateLastSignInDateTime()Get the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time.OffsetDateTimecomplianceExpirationDateTime()Get the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.StringdeviceId()Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.StringdeviceMetadata()Get the deviceMetadata property: For internal use only.IntegerdeviceVersion()Get the deviceVersion property: For internal use only.StringdisplayName()Get the displayName property: The display name for the device.List<MicrosoftGraphExtensionInner>extensions()Get the extensions property: The collection of open extensions defined for the device.BooleanisCompliant()Get the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.BooleanisManaged()Get the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.StringmdmAppId()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.OffsetDateTimeonPremisesLastSyncDateTime()Get the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.BooleanonPremisesSyncEnabled()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).StringoperatingSystem()Get the operatingSystem property: The type of operating system on the device.StringoperatingSystemVersion()Get the operatingSystemVersion property: The version of the operating system on the device.List<String>physicalIds()Get the physicalIds property: For internal use only.StringprofileType()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.List<MicrosoftGraphDirectoryObjectInner>transitiveMemberOf()Get the transitiveMemberOf property: The transitiveMemberOf property.StringtrustType()Get the trustType property: Type of trust for the joined device.voidvalidate()Validates the instance.MicrosoftGraphDeviceInnerwithAccountEnabled(Boolean accountEnabled)Set the accountEnabled property: true if the account is enabled; otherwise, false.MicrosoftGraphDeviceInnerwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: Represents an Azure Active Directory object.MicrosoftGraphDeviceInnerwithAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds)Set the alternativeSecurityIds property: For internal use only.MicrosoftGraphDeviceInnerwithApproximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime)Set the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time.MicrosoftGraphDeviceInnerwithComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime)Set the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.MicrosoftGraphDeviceInnerwithDeletedDateTime(OffsetDateTime deletedDateTime)Set the deletedDateTime property: The deletedDateTime property.MicrosoftGraphDeviceInnerwithDeviceId(String deviceId)Set the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.MicrosoftGraphDeviceInnerwithDeviceMetadata(String deviceMetadata)Set the deviceMetadata property: For internal use only.MicrosoftGraphDeviceInnerwithDeviceVersion(Integer deviceVersion)Set the deviceVersion property: For internal use only.MicrosoftGraphDeviceInnerwithDisplayName(String displayName)Set the displayName property: The display name for the device.MicrosoftGraphDeviceInnerwithExtensions(List<MicrosoftGraphExtensionInner> extensions)Set the extensions property: The collection of open extensions defined for the device.MicrosoftGraphDeviceInnerwithId(String id)Set the id property: Read-only.MicrosoftGraphDeviceInnerwithIsCompliant(Boolean isCompliant)Set the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.MicrosoftGraphDeviceInnerwithIsManaged(Boolean isManaged)Set the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.MicrosoftGraphDeviceInnerwithMdmAppId(String mdmAppId)Set the mdmAppId property: Application identifier used to register device into MDM.MicrosoftGraphDeviceInnerwithMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)Set the memberOf property: Groups that this group is a member of.MicrosoftGraphDeviceInnerwithOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)Set the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.MicrosoftGraphDeviceInnerwithOnPremisesSyncEnabled(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).MicrosoftGraphDeviceInnerwithOperatingSystem(String operatingSystem)Set the operatingSystem property: The type of operating system on the device.MicrosoftGraphDeviceInnerwithOperatingSystemVersion(String operatingSystemVersion)Set the operatingSystemVersion property: The version of the operating system on the device.MicrosoftGraphDeviceInnerwithPhysicalIds(List<String> physicalIds)Set the physicalIds property: For internal use only.MicrosoftGraphDeviceInnerwithProfileType(String profileType)Set the profileType property: The profile type of the device.MicrosoftGraphDeviceInnerwithRegisteredOwners(List<MicrosoftGraphDirectoryObjectInner> registeredOwners)Set the registeredOwners property: The user that cloud joined the device or registered their personal device.MicrosoftGraphDeviceInnerwithRegisteredUsers(List<MicrosoftGraphDirectoryObjectInner> registeredUsers)Set the registeredUsers property: Collection of registered users of the device.MicrosoftGraphDeviceInnerwithSystemLabels(List<String> systemLabels)Set the systemLabels property: List of labels applied to the device by the system.MicrosoftGraphDeviceInnerwithTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)Set the transitiveMemberOf property: The transitiveMemberOf property.MicrosoftGraphDeviceInnerwithTrustType(String trustType)Set the trustType property: Type of trust for the joined device.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
accountEnabled
public Boolean accountEnabled()
Get the accountEnabled property: true if the account is enabled; otherwise, false. Required.- Returns:
- the accountEnabled value.
-
withAccountEnabled
public MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner object itself.
-
alternativeSecurityIds
public List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds()
Get the alternativeSecurityIds property: For internal use only. Not nullable.- Returns:
- the alternativeSecurityIds value.
-
withAlternativeSecurityIds
public MicrosoftGraphDeviceInner withAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds)
Set the alternativeSecurityIds property: For internal use only. Not nullable.- Parameters:
alternativeSecurityIds- the alternativeSecurityIds value to set.- Returns:
- the MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner object itself.
-
deviceMetadata
public String deviceMetadata()
Get the deviceMetadata property: For internal use only. Set to null.- Returns:
- the deviceMetadata value.
-
withDeviceMetadata
public MicrosoftGraphDeviceInner withDeviceMetadata(String deviceMetadata)
Set the deviceMetadata property: For internal use only. Set to null.- Parameters:
deviceMetadata- the deviceMetadata value to set.- Returns:
- the MicrosoftGraphDeviceInner object itself.
-
deviceVersion
public Integer deviceVersion()
Get the deviceVersion property: For internal use only.- Returns:
- the deviceVersion value.
-
withDeviceVersion
public MicrosoftGraphDeviceInner withDeviceVersion(Integer deviceVersion)
Set the deviceVersion property: For internal use only.- Parameters:
deviceVersion- the deviceVersion value to set.- Returns:
- the MicrosoftGraphDeviceInner object itself.
-
displayName
public String displayName()
Get the displayName property: The display name for the device. Required.- Returns:
- the displayName value.
-
withDisplayName
public MicrosoftGraphDeviceInner withDisplayName(String displayName)
Set the displayName property: The display name for the device. Required.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner object itself.
-
physicalIds
public List<String> physicalIds()
Get the physicalIds property: For internal use only. Not nullable.- Returns:
- the physicalIds value.
-
withPhysicalIds
public MicrosoftGraphDeviceInner withPhysicalIds(List<String> physicalIds)
Set the physicalIds property: For internal use only. Not nullable.- Parameters:
physicalIds- the physicalIds value to set.- Returns:
- the MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner object itself.
-
memberOf
public List<MicrosoftGraphDirectoryObjectInner> 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
public MicrosoftGraphDeviceInner withMemberOf(List<MicrosoftGraphDirectoryObjectInner> 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner 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 MicrosoftGraphDeviceInner object itself.
-
transitiveMemberOf
public List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf()
Get the transitiveMemberOf property: The transitiveMemberOf property.- Returns:
- the transitiveMemberOf value.
-
withTransitiveMemberOf
public MicrosoftGraphDeviceInner withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
Set the transitiveMemberOf property: The transitiveMemberOf property.- Parameters:
transitiveMemberOf- the transitiveMemberOf value to set.- Returns:
- the MicrosoftGraphDeviceInner object itself.
-
extensions
public List<MicrosoftGraphExtensionInner> extensions()
Get the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.- Returns:
- the extensions value.
-
withExtensions
public MicrosoftGraphDeviceInner withExtensions(List<MicrosoftGraphExtensionInner> 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 MicrosoftGraphDeviceInner 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:
additionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphDeviceInner 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:
withAdditionalPropertiesin classMicrosoftGraphDirectoryObjectInner- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphDeviceInner object itself.
-
withDeletedDateTime
public MicrosoftGraphDeviceInner withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
public MicrosoftGraphDeviceInner withId(String id)
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphDirectoryObjectInner- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphDirectoryObjectInner- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-