Class MicrosoftGraphDevice
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDevice
device
Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the accountEnabled property: true if the account is enabled; otherwise, false.Get the additionalProperties property: Represents an Azure Active Directory object.Get the alternativeSecurityIds property: For internal use only.Get the approximateLastSignInDateTime property: The timestamp type represents date and time information using ISO 8601 format and is always in UTC time.Get the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.deviceId()Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.Get the deviceMetadata property: For internal use only.Get the deviceVersion property: For internal use only.Get the displayName property: The display name for the device.Get the extensions property: The collection of open extensions defined for the device.Get the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.Get the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.mdmAppId()Get the mdmAppId property: Application identifier used to register device into MDM.memberOf()Get the memberOf property: Groups that this group is a member of.Get the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.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).Get the operatingSystem property: The type of operating system on the device.Get the operatingSystemVersion property: The version of the operating system on the device.Get the physicalIds property: For internal use only.Get the profileType property: The profile type of the device.Get the registeredOwners property: The user that cloud joined the device or registered their personal device.Get the registeredUsers property: Collection of registered users of the device.Get the systemLabels property: List of labels applied to the device by the system.Get the transitiveMemberOf property: The transitiveMemberOf property.Get the trustType property: Type of trust for the joined device.voidvalidate()Validates the instance.withAccountEnabled(Boolean accountEnabled) Set the accountEnabled property: true if the account is enabled; otherwise, false.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: Represents an Azure Active Directory object.withAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds) Set the alternativeSecurityIds property: For internal use only.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.withComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime) Set the complianceExpirationDateTime property: The timestamp when the device is no longer deemed compliant.withDeletedDateTime(OffsetDateTime deletedDateTime) Set the deletedDateTime property: The deletedDateTime property.withDeviceId(String deviceId) Set the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.withDeviceMetadata(String deviceMetadata) Set the deviceMetadata property: For internal use only.withDeviceVersion(Integer deviceVersion) Set the deviceVersion property: For internal use only.withDisplayName(String displayName) Set the displayName property: The display name for the device.withExtensions(List<MicrosoftGraphExtension> extensions) Set the extensions property: The collection of open extensions defined for the device.Set the id property: Read-only.withIsCompliant(Boolean isCompliant) Set the isCompliant property: true if the device complies with Mobile Device Management (MDM) policies; otherwise, false.withIsManaged(Boolean isManaged) Set the isManaged property: true if the device is managed by a Mobile Device Management (MDM) app; otherwise, false.withMdmAppId(String mdmAppId) Set the mdmAppId property: Application identifier used to register device into MDM.withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf) Set the memberOf property: Groups that this group is a member of.withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime) Set the onPremisesLastSyncDateTime property: The last time at which the object was synced with the on-premises directory.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).withOperatingSystem(String operatingSystem) Set the operatingSystem property: The type of operating system on the device.withOperatingSystemVersion(String operatingSystemVersion) Set the operatingSystemVersion property: The version of the operating system on the device.withPhysicalIds(List<String> physicalIds) Set the physicalIds property: For internal use only.withProfileType(String profileType) Set the profileType property: The profile type of the device.withRegisteredOwners(List<MicrosoftGraphDirectoryObjectInner> registeredOwners) Set the registeredOwners property: The user that cloud joined the device or registered their personal device.withRegisteredUsers(List<MicrosoftGraphDirectoryObjectInner> registeredUsers) Set the registeredUsers property: Collection of registered users of the device.withSystemLabels(List<String> systemLabels) Set the systemLabels property: List of labels applied to the device by the system.withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf) Set the transitiveMemberOf property: The transitiveMemberOf property.withTrustType(String trustType) Set the trustType property: Type of trust for the joined device.Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphDirectoryObjectInner
deletedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphDevice
public MicrosoftGraphDevice()Creates an instance of MicrosoftGraphDevice class.
-
-
Method Details
-
accountEnabled
Get the accountEnabled property: true if the account is enabled; otherwise, false. Required.- Returns:
- the accountEnabled value.
-
withAccountEnabled
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
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
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
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
Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.- Returns:
- the deviceId value.
-
withDeviceId
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
Get the deviceMetadata property: For internal use only. Set to null.- Returns:
- the deviceMetadata value.
-
withDeviceMetadata
Set the deviceMetadata property: For internal use only. Set to null.- Parameters:
deviceMetadata- the deviceMetadata value to set.- Returns:
- the MicrosoftGraphDevice object itself.
-
deviceVersion
Get the deviceVersion property: For internal use only.- Returns:
- the deviceVersion value.
-
withDeviceVersion
Set the deviceVersion property: For internal use only.- Parameters:
deviceVersion- the deviceVersion value to set.- Returns:
- the MicrosoftGraphDevice object itself.
-
displayName
Get the displayName property: The display name for the device. Required.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: The display name for the device. Required.- Parameters:
displayName- the displayName value to set.- Returns:
- the MicrosoftGraphDevice object itself.
-
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
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
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
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
Get the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.- Returns:
- the mdmAppId value.
-
withMdmAppId
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
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
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
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
Get the operatingSystem property: The type of operating system on the device. Required.- Returns:
- the operatingSystem value.
-
withOperatingSystem
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
Get the operatingSystemVersion property: The version of the operating system on the device. Required.- Returns:
- the operatingSystemVersion value.
-
withOperatingSystemVersion
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
Get the physicalIds property: For internal use only. Not nullable.- Returns:
- the physicalIds value.
-
withPhysicalIds
Set the physicalIds property: For internal use only. Not nullable.- Parameters:
physicalIds- the physicalIds value to set.- Returns:
- the MicrosoftGraphDevice object itself.
-
profileType
Get the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.- Returns:
- the profileType value.
-
withProfileType
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
Get the systemLabels property: List of labels applied to the device by the system.- Returns:
- the systemLabels value.
-
withSystemLabels
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
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
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
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
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
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
Get the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.- Returns:
- the extensions value.
-
withExtensions
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
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
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 MicrosoftGraphDevice object itself.
-
withDeletedDateTime
Set the deletedDateTime property: The deletedDateTime property.- Overrides:
withDeletedDateTimein classMicrosoftGraphDirectoryObjectInner- Parameters:
deletedDateTime- the deletedDateTime value to set.- Returns:
- the MicrosoftGraphDirectoryObjectInner object itself.
-
withId
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.
-