MicrosoftGraphDevice Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDirectoryObjectInner - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphDevice
- com.
- com.
- com.
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 Summary
Constructor | Description |
---|---|
MicrosoftGraphDevice() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
accountEnabled()
Get the account |
Map<String,Object> |
additionalProperties()
Get the additional |
List<Microsoft |
alternativeSecurityIds()
Get the alternative |
Offset |
approximateLastSignInDateTime()
Get the approximate |
Offset |
complianceExpirationDateTime()
Get the compliance |
String |
deviceId()
Get the device |
String |
deviceMetadata()
Get the device |
Integer |
deviceVersion()
Get the device |
String |
displayName()
Get the display |
List<Microsoft |
extensions()
Get the extensions property: The collection of open extensions defined for the device. |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
isCompliant()
Get the is |
Boolean |
isManaged()
Get the is |
String |
mdmAppId()
Get the mdm |
List<Microsoft |
memberOf()
Get the member |
Offset |
onPremisesLastSyncDateTime()
Get the on |
Boolean |
onPremisesSyncEnabled()
Get the on |
String |
operatingSystem()
Get the operating |
String |
operatingSystemVersion()
Get the operating |
List<String> |
physicalIds()
Get the physical |
String |
profileType()
Get the profile |
List<Microsoft |
registeredOwners()
Get the registered |
List<Microsoft |
registeredUsers()
Get the registered |
List<String> |
systemLabels()
Get the system |
Json |
toJson(JsonWriter jsonWriter) |
List<Microsoft |
transitiveMemberOf()
Get the transitive |
String |
trustType()
Get the trust |
void |
validate()
Validates the instance. |
Microsoft |
withAccountEnabled(Boolean accountEnabled)
Set the account |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAlternativeSecurityIds(List<MicrosoftGraphAlternativeSecurityId> alternativeSecurityIds)
Set the alternative |
Microsoft |
withApproximateLastSignInDateTime(OffsetDateTime approximateLastSignInDateTime)
Set the approximate |
Microsoft |
withComplianceExpirationDateTime(OffsetDateTime complianceExpirationDateTime)
Set the compliance |
Microsoft |
withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deleted |
Microsoft |
withDeviceId(String deviceId)
Set the device |
Microsoft |
withDeviceMetadata(String deviceMetadata)
Set the device |
Microsoft |
withDeviceVersion(Integer deviceVersion)
Set the device |
Microsoft |
withDisplayName(String displayName)
Set the display |
Microsoft |
withExtensions(List<MicrosoftGraphExtension> extensions)
Set the extensions property: The collection of open extensions defined for the device. |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withIsCompliant(Boolean isCompliant)
Set the is |
Microsoft |
withIsManaged(Boolean isManaged)
Set the is |
Microsoft |
withMdmAppId(String mdmAppId)
Set the mdm |
Microsoft |
withMemberOf(List<MicrosoftGraphDirectoryObjectInner> memberOf)
Set the member |
Microsoft |
withOnPremisesLastSyncDateTime(OffsetDateTime onPremisesLastSyncDateTime)
Set the on |
Microsoft |
withOnPremisesSyncEnabled(Boolean onPremisesSyncEnabled)
Set the on |
Microsoft |
withOperatingSystem(String operatingSystem)
Set the operating |
Microsoft |
withOperatingSystemVersion(String operatingSystemVersion)
Set the operating |
Microsoft |
withPhysicalIds(List<String> physicalIds)
Set the physical |
Microsoft |
withProfileType(String profileType)
Set the profile |
Microsoft |
withRegisteredOwners(List<MicrosoftGraphDirectoryObjectInner> registeredOwners)
Set the registered |
Microsoft |
withRegisteredUsers(List<MicrosoftGraphDirectoryObjectInner> registeredUsers)
Set the registered |
Microsoft |
withSystemLabels(List<String> systemLabels)
Set the system |
Microsoft |
withTransitiveMemberOf(List<MicrosoftGraphDirectoryObjectInner> transitiveMemberOf)
Set the transitive |
Microsoft |
withTrustType(String trustType)
Set the trust |
Methods inherited from MicrosoftGraphDirectoryObjectInner
Methods inherited from MicrosoftGraphEntity
Methods inherited from java.lang.Object
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:
additionalProperties
public Map
Get the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphDevice.additionalProperties()Returns:
alternativeSecurityIds
public List
Get the alternativeSecurityIds property: For internal use only. Not nullable.
Returns:
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:
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:
deviceId
public String deviceId()
Get the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.
Returns:
deviceMetadata
public String deviceMetadata()
Get the deviceMetadata property: For internal use only. Set to null.
Returns:
deviceVersion
public Integer deviceVersion()
Get the deviceVersion property: For internal use only.
Returns:
displayName
public String displayName()
Get the displayName property: The display name for the device. Required.
Returns:
extensions
public List
Get the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.
Returns:
fromJson
public static MicrosoftGraphDevice fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphDevice from the JsonReader.
Parameters:
Returns:
Throws:
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:
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:
mdmAppId
public String mdmAppId()
Get the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.
Returns:
memberOf
public List
Get the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.
Returns:
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:
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:
operatingSystem
public String operatingSystem()
Get the operatingSystem property: The type of operating system on the device. Required.
Returns:
operatingSystemVersion
public String operatingSystemVersion()
Get the operatingSystemVersion property: The version of the operating system on the device. Required.
Returns:
physicalIds
public List
Get the physicalIds property: For internal use only. Not nullable.
Returns:
profileType
public String profileType()
Get the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.
Returns:
registeredOwners
public List
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:
registeredUsers
public List
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:
systemLabels
public List
Get the systemLabels property: List of labels applied to the device by the system.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphDevice.toJson(JsonWriter jsonWriter)Parameters:
Throws:
transitiveMemberOf
public List
Get the transitiveMemberOf property: The transitiveMemberOf property.
Returns:
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:
validate
public void validate()
Validates the instance.
Overrides:
MicrosoftGraphDevice.validate()withAccountEnabled
public MicrosoftGraphDevice withAccountEnabled(Boolean accountEnabled)
Set the accountEnabled property: true if the account is enabled; otherwise, false. Required.
Parameters:
Returns:
withAdditionalProperties
public MicrosoftGraphDevice withAdditionalProperties(Map
Set the additionalProperties property: Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
Overrides:
MicrosoftGraphDevice.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAlternativeSecurityIds
public MicrosoftGraphDevice withAlternativeSecurityIds(List
Set the alternativeSecurityIds property: For internal use only. Not nullable.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withDeletedDateTime
public MicrosoftGraphDevice withDeletedDateTime(OffsetDateTime deletedDateTime)
Set the deletedDateTime property: The deletedDateTime property.
Overrides:
MicrosoftGraphDevice.withDeletedDateTime(OffsetDateTime deletedDateTime)Parameters:
withDeviceId
public MicrosoftGraphDevice withDeviceId(String deviceId)
Set the deviceId property: Unique identifier set by Azure Device Registration Service at the time of registration.
Parameters:
Returns:
withDeviceMetadata
public MicrosoftGraphDevice withDeviceMetadata(String deviceMetadata)
Set the deviceMetadata property: For internal use only. Set to null.
Parameters:
Returns:
withDeviceVersion
public MicrosoftGraphDevice withDeviceVersion(Integer deviceVersion)
Set the deviceVersion property: For internal use only.
Parameters:
Returns:
withDisplayName
public MicrosoftGraphDevice withDisplayName(String displayName)
Set the displayName property: The display name for the device. Required.
Parameters:
Returns:
withExtensions
public MicrosoftGraphDevice withExtensions(List
Set the extensions property: The collection of open extensions defined for the device. Read-only. Nullable.
Parameters:
Returns:
withId
public MicrosoftGraphDevice withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphDevice.withId(String id)Parameters:
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:
Returns:
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:
Returns:
withMdmAppId
public MicrosoftGraphDevice withMdmAppId(String mdmAppId)
Set the mdmAppId property: Application identifier used to register device into MDM. Read-only. Supports $filter.
Parameters:
Returns:
withMemberOf
public MicrosoftGraphDevice withMemberOf(List
Set the memberOf property: Groups that this group is a member of. HTTP Methods: GET (supported for all groups). Read-only. Nullable.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withOperatingSystem
public MicrosoftGraphDevice withOperatingSystem(String operatingSystem)
Set the operatingSystem property: The type of operating system on the device. Required.
Parameters:
Returns:
withOperatingSystemVersion
public MicrosoftGraphDevice withOperatingSystemVersion(String operatingSystemVersion)
Set the operatingSystemVersion property: The version of the operating system on the device. Required.
Parameters:
Returns:
withPhysicalIds
public MicrosoftGraphDevice withPhysicalIds(List
Set the physicalIds property: For internal use only. Not nullable.
Parameters:
Returns:
withProfileType
public MicrosoftGraphDevice withProfileType(String profileType)
Set the profileType property: The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT.
Parameters:
Returns:
withRegisteredOwners
public MicrosoftGraphDevice withRegisteredOwners(List
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:
Returns:
withRegisteredUsers
public MicrosoftGraphDevice withRegisteredUsers(List
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:
Returns:
withSystemLabels
public MicrosoftGraphDevice withSystemLabels(List
Set the systemLabels property: List of labels applied to the device by the system.
Parameters:
Returns:
withTransitiveMemberOf
public MicrosoftGraphDevice withTransitiveMemberOf(List
Set the transitiveMemberOf property: The transitiveMemberOf property.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java