你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphManagedDevice Class

public final class MicrosoftGraphManagedDevice
extends MicrosoftGraphEntity

managedDevice Devices that are managed or pre-enrolled through Intune.

Constructor Summary

Constructor Description
MicrosoftGraphManagedDevice()

Creates an instance of MicrosoftGraphManagedDevice class.

Method Summary

Modifier and Type Method and Description
String activationLockBypassCode()

Get the activationLockBypassCode property: Code that allows the Activation Lock on a device to be bypassed.

Map<String,Object> additionalProperties()

Get the additionalProperties property: Devices that are managed or pre-enrolled through Intune.

String androidSecurityPatchLevel()

Get the androidSecurityPatchLevel property: Android security patch level.

String azureADDeviceId()

Get the azureADDeviceId property: The unique identifier for the Azure Active Directory device.

Boolean azureADRegistered()

Get the azureADRegistered property: Whether the device is Azure Active Directory registered.

OffsetDateTime complianceGracePeriodExpirationDateTime()

Get the complianceGracePeriodExpirationDateTime property: The DateTime when device compliance grace period expires.

MicrosoftGraphComplianceState complianceState()

Get the complianceState property: complianceState.

MicrosoftGraphConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures()

Get the configurationManagerClientEnabledFeatures property: configuration Manager client enabled features.

List<MicrosoftGraphDeviceActionResult> deviceActionResults()

Get the deviceActionResults property: List of ComplexType deviceActionResult objects.

MicrosoftGraphDeviceCategory deviceCategory()

Get the deviceCategory property: Device categories provides a way to organize your devices.

String deviceCategoryDisplayName()

Get the deviceCategoryDisplayName property: Device category display name.

List<MicrosoftGraphDeviceCompliancePolicyState> deviceCompliancePolicyStates()

Get the deviceCompliancePolicyStates property: Device compliance policy states for this device.

List<MicrosoftGraphDeviceConfigurationState> deviceConfigurationStates()

Get the deviceConfigurationStates property: Device configuration states for this device.

MicrosoftGraphDeviceEnrollmentType deviceEnrollmentType()

Get the deviceEnrollmentType property: deviceEnrollmentType.

MicrosoftGraphDeviceHealthAttestationState deviceHealthAttestationState()

Get the deviceHealthAttestationState property: deviceHealthAttestationState.

String deviceName()

Get the deviceName property: Name of the device.

MicrosoftGraphDeviceRegistrationState deviceRegistrationState()

Get the deviceRegistrationState property: deviceRegistrationState.

Boolean easActivated()

Get the easActivated property: Whether the device is Exchange ActiveSync activated.

OffsetDateTime easActivationDateTime()

Get the easActivationDateTime property: Exchange ActivationSync activation time of the device.

String easDeviceId()

Get the easDeviceId property: Exchange ActiveSync Id of the device.

String emailAddress()

Get the emailAddress property: Email(s) for the user associated with the device.

OffsetDateTime enrolledDateTime()

Get the enrolledDateTime property: Enrollment time of the device.

MicrosoftGraphDeviceManagementExchangeAccessState exchangeAccessState()

Get the exchangeAccessState property: deviceManagementExchangeAccessState.

MicrosoftGraphDeviceManagementExchangeAccessStateReason exchangeAccessStateReason()

Get the exchangeAccessStateReason property: deviceManagementExchangeAccessStateReason.

OffsetDateTime exchangeLastSuccessfulSyncDateTime()

Get the exchangeLastSuccessfulSyncDateTime property: Last time the device contacted Exchange.

Long freeStorageSpaceInBytes()

Get the freeStorageSpaceInBytes property: Free Storage in Bytes.

static MicrosoftGraphManagedDevice fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphManagedDevice from the JsonReader.

String imei()

Get the imei property: IMEI.

Boolean isEncrypted()

Get the isEncrypted property: Device encryption status.

Boolean isSupervised()

Get the isSupervised property: Device supervised status.

String jailBroken()

Get the jailBroken property: whether the device is jail broken or rooted.

OffsetDateTime lastSyncDateTime()

Get the lastSyncDateTime property: The date and time that the device last completed a successful sync with Intune.

String managedDeviceName()

Get the managedDeviceName property: Automatically generated name to identify a device.

MicrosoftGraphManagedDeviceOwnerType managedDeviceOwnerType()

Get the managedDeviceOwnerType property: managedDeviceOwnerType.

MicrosoftGraphManagementAgentType managementAgent()

Get the managementAgent property: managementAgentType.

String manufacturer()

Get the manufacturer property: Manufacturer of the device.

String meid()

Get the meid property: MEID.

String model()

Get the model property: Model of the device.

String operatingSystem()

Get the operatingSystem property: Operating system of the device.

String osVersion()

Get the osVersion property: Operating system version of the device.

MicrosoftGraphManagedDevicePartnerReportedHealthState partnerReportedThreatState()

Get the partnerReportedThreatState property: managedDevicePartnerReportedHealthState.

String phoneNumber()

Get the phoneNumber property: Phone number of the device.

String remoteAssistanceSessionErrorDetails()

Get the remoteAssistanceSessionErrorDetails property: An error string that identifies issues when creating Remote Assistance session objects.

String remoteAssistanceSessionUrl()

Get the remoteAssistanceSessionUrl property: Url that allows a Remote Assistance session to be established with the device.

String serialNumber()

Get the serialNumber property: SerialNumber.

String subscriberCarrier()

Get the subscriberCarrier property: Subscriber Carrier.

JsonWriter toJson(JsonWriter jsonWriter)
Long totalStorageSpaceInBytes()

Get the totalStorageSpaceInBytes property: Total Storage in Bytes.

String userDisplayName()

Get the userDisplayName property: User display name.

String userId()

Get the userId property: Unique Identifier for the user associated with the device.

String userPrincipalName()

Get the userPrincipalName property: Device user principal name.

void validate()

Validates the instance.

String wiFiMacAddress()

Get the wiFiMacAddress property: Wi-Fi MAC.

MicrosoftGraphManagedDevice withActivationLockBypassCode(String activationLockBypassCode)

Set the activationLockBypassCode property: Code that allows the Activation Lock on a device to be bypassed.

MicrosoftGraphManagedDevice withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Devices that are managed or pre-enrolled through Intune.

MicrosoftGraphManagedDevice withAndroidSecurityPatchLevel(String androidSecurityPatchLevel)

Set the androidSecurityPatchLevel property: Android security patch level.

MicrosoftGraphManagedDevice withAzureADDeviceId(String azureADDeviceId)

Set the azureADDeviceId property: The unique identifier for the Azure Active Directory device.

MicrosoftGraphManagedDevice withAzureADRegistered(Boolean azureADRegistered)

Set the azureADRegistered property: Whether the device is Azure Active Directory registered.

MicrosoftGraphManagedDevice withComplianceGracePeriodExpirationDateTime(OffsetDateTime complianceGracePeriodExpirationDateTime)

Set the complianceGracePeriodExpirationDateTime property: The DateTime when device compliance grace period expires.

MicrosoftGraphManagedDevice withComplianceState(MicrosoftGraphComplianceState complianceState)

Set the complianceState property: complianceState.

MicrosoftGraphManagedDevice withConfigurationManagerClientEnabledFeatures(MicrosoftGraphConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures)

Set the configurationManagerClientEnabledFeatures property: configuration Manager client enabled features.

MicrosoftGraphManagedDevice withDeviceActionResults(List<MicrosoftGraphDeviceActionResult> deviceActionResults)

Set the deviceActionResults property: List of ComplexType deviceActionResult objects.

MicrosoftGraphManagedDevice withDeviceCategory(MicrosoftGraphDeviceCategory deviceCategory)

Set the deviceCategory property: Device categories provides a way to organize your devices.

MicrosoftGraphManagedDevice withDeviceCategoryDisplayName(String deviceCategoryDisplayName)

Set the deviceCategoryDisplayName property: Device category display name.

MicrosoftGraphManagedDevice withDeviceCompliancePolicyStates(List<MicrosoftGraphDeviceCompliancePolicyState> deviceCompliancePolicyStates)

Set the deviceCompliancePolicyStates property: Device compliance policy states for this device.

MicrosoftGraphManagedDevice withDeviceConfigurationStates(List<MicrosoftGraphDeviceConfigurationState> deviceConfigurationStates)

Set the deviceConfigurationStates property: Device configuration states for this device.

MicrosoftGraphManagedDevice withDeviceEnrollmentType(MicrosoftGraphDeviceEnrollmentType deviceEnrollmentType)

Set the deviceEnrollmentType property: deviceEnrollmentType.

MicrosoftGraphManagedDevice withDeviceHealthAttestationState(MicrosoftGraphDeviceHealthAttestationState deviceHealthAttestationState)

Set the deviceHealthAttestationState property: deviceHealthAttestationState.

MicrosoftGraphManagedDevice withDeviceName(String deviceName)

Set the deviceName property: Name of the device.

MicrosoftGraphManagedDevice withDeviceRegistrationState(MicrosoftGraphDeviceRegistrationState deviceRegistrationState)

Set the deviceRegistrationState property: deviceRegistrationState.

MicrosoftGraphManagedDevice withEasActivated(Boolean easActivated)

Set the easActivated property: Whether the device is Exchange ActiveSync activated.

MicrosoftGraphManagedDevice withEasActivationDateTime(OffsetDateTime easActivationDateTime)

Set the easActivationDateTime property: Exchange ActivationSync activation time of the device.

MicrosoftGraphManagedDevice withEasDeviceId(String easDeviceId)

Set the easDeviceId property: Exchange ActiveSync Id of the device.

MicrosoftGraphManagedDevice withEmailAddress(String emailAddress)

Set the emailAddress property: Email(s) for the user associated with the device.

MicrosoftGraphManagedDevice withEnrolledDateTime(OffsetDateTime enrolledDateTime)

Set the enrolledDateTime property: Enrollment time of the device.

MicrosoftGraphManagedDevice withExchangeAccessState(MicrosoftGraphDeviceManagementExchangeAccessState exchangeAccessState)

Set the exchangeAccessState property: deviceManagementExchangeAccessState.

MicrosoftGraphManagedDevice withExchangeAccessStateReason(MicrosoftGraphDeviceManagementExchangeAccessStateReason exchangeAccessStateReason)

Set the exchangeAccessStateReason property: deviceManagementExchangeAccessStateReason.

MicrosoftGraphManagedDevice withExchangeLastSuccessfulSyncDateTime(OffsetDateTime exchangeLastSuccessfulSyncDateTime)

Set the exchangeLastSuccessfulSyncDateTime property: Last time the device contacted Exchange.

MicrosoftGraphManagedDevice withFreeStorageSpaceInBytes(Long freeStorageSpaceInBytes)

Set the freeStorageSpaceInBytes property: Free Storage in Bytes.

MicrosoftGraphManagedDevice withId(String id)

Set the id property: Read-only.

MicrosoftGraphManagedDevice withImei(String imei)

Set the imei property: IMEI.

MicrosoftGraphManagedDevice withIsEncrypted(Boolean isEncrypted)

Set the isEncrypted property: Device encryption status.

MicrosoftGraphManagedDevice withIsSupervised(Boolean isSupervised)

Set the isSupervised property: Device supervised status.

MicrosoftGraphManagedDevice withJailBroken(String jailBroken)

Set the jailBroken property: whether the device is jail broken or rooted.

MicrosoftGraphManagedDevice withLastSyncDateTime(OffsetDateTime lastSyncDateTime)

Set the lastSyncDateTime property: The date and time that the device last completed a successful sync with Intune.

MicrosoftGraphManagedDevice withManagedDeviceName(String managedDeviceName)

Set the managedDeviceName property: Automatically generated name to identify a device.

MicrosoftGraphManagedDevice withManagedDeviceOwnerType(MicrosoftGraphManagedDeviceOwnerType managedDeviceOwnerType)

Set the managedDeviceOwnerType property: managedDeviceOwnerType.

MicrosoftGraphManagedDevice withManagementAgent(MicrosoftGraphManagementAgentType managementAgent)

Set the managementAgent property: managementAgentType.

MicrosoftGraphManagedDevice withManufacturer(String manufacturer)

Set the manufacturer property: Manufacturer of the device.

MicrosoftGraphManagedDevice withMeid(String meid)

Set the meid property: MEID.

MicrosoftGraphManagedDevice withModel(String model)

Set the model property: Model of the device.

MicrosoftGraphManagedDevice withOperatingSystem(String operatingSystem)

Set the operatingSystem property: Operating system of the device.

MicrosoftGraphManagedDevice withOsVersion(String osVersion)

Set the osVersion property: Operating system version of the device.

MicrosoftGraphManagedDevice withPartnerReportedThreatState(MicrosoftGraphManagedDevicePartnerReportedHealthState partnerReportedThreatState)

Set the partnerReportedThreatState property: managedDevicePartnerReportedHealthState.

MicrosoftGraphManagedDevice withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number of the device.

MicrosoftGraphManagedDevice withRemoteAssistanceSessionErrorDetails(String remoteAssistanceSessionErrorDetails)

Set the remoteAssistanceSessionErrorDetails property: An error string that identifies issues when creating Remote Assistance session objects.

MicrosoftGraphManagedDevice withRemoteAssistanceSessionUrl(String remoteAssistanceSessionUrl)

Set the remoteAssistanceSessionUrl property: Url that allows a Remote Assistance session to be established with the device.

MicrosoftGraphManagedDevice withSerialNumber(String serialNumber)

Set the serialNumber property: SerialNumber.

MicrosoftGraphManagedDevice withSubscriberCarrier(String subscriberCarrier)

Set the subscriberCarrier property: Subscriber Carrier.

MicrosoftGraphManagedDevice withTotalStorageSpaceInBytes(Long totalStorageSpaceInBytes)

Set the totalStorageSpaceInBytes property: Total Storage in Bytes.

MicrosoftGraphManagedDevice withUserDisplayName(String userDisplayName)

Set the userDisplayName property: User display name.

MicrosoftGraphManagedDevice withUserId(String userId)

Set the userId property: Unique Identifier for the user associated with the device.

MicrosoftGraphManagedDevice withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: Device user principal name.

MicrosoftGraphManagedDevice withWiFiMacAddress(String wiFiMacAddress)

Set the wiFiMacAddress property: Wi-Fi MAC.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphManagedDevice

public MicrosoftGraphManagedDevice()

Creates an instance of MicrosoftGraphManagedDevice class.

Method Details

activationLockBypassCode

public String activationLockBypassCode()

Get the activationLockBypassCode property: Code that allows the Activation Lock on a device to be bypassed.

Returns:

the activationLockBypassCode value.

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Devices that are managed or pre-enrolled through Intune.

Overrides:

MicrosoftGraphManagedDevice.additionalProperties()

Returns:

the additionalProperties value.

androidSecurityPatchLevel

public String androidSecurityPatchLevel()

Get the androidSecurityPatchLevel property: Android security patch level.

Returns:

the androidSecurityPatchLevel value.

azureADDeviceId

public String azureADDeviceId()

Get the azureADDeviceId property: The unique identifier for the Azure Active Directory device. Read only.

Returns:

the azureADDeviceId value.

azureADRegistered

public Boolean azureADRegistered()

Get the azureADRegistered property: Whether the device is Azure Active Directory registered.

Returns:

the azureADRegistered value.

complianceGracePeriodExpirationDateTime

public OffsetDateTime complianceGracePeriodExpirationDateTime()

Get the complianceGracePeriodExpirationDateTime property: The DateTime when device compliance grace period expires.

Returns:

the complianceGracePeriodExpirationDateTime value.

complianceState

public MicrosoftGraphComplianceState complianceState()

Get the complianceState property: complianceState.

Returns:

the complianceState value.

configurationManagerClientEnabledFeatures

public MicrosoftGraphConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures()

Get the configurationManagerClientEnabledFeatures property: configuration Manager client enabled features.

Returns:

the configurationManagerClientEnabledFeatures value.

deviceActionResults

public List deviceActionResults()

Get the deviceActionResults property: List of ComplexType deviceActionResult objects.

Returns:

the deviceActionResults value.

deviceCategory

public MicrosoftGraphDeviceCategory deviceCategory()

Get the deviceCategory property: Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.

Returns:

the deviceCategory value.

deviceCategoryDisplayName

public String deviceCategoryDisplayName()

Get the deviceCategoryDisplayName property: Device category display name.

Returns:

the deviceCategoryDisplayName value.

deviceCompliancePolicyStates

public List deviceCompliancePolicyStates()

Get the deviceCompliancePolicyStates property: Device compliance policy states for this device.

Returns:

the deviceCompliancePolicyStates value.

deviceConfigurationStates

public List deviceConfigurationStates()

Get the deviceConfigurationStates property: Device configuration states for this device.

Returns:

the deviceConfigurationStates value.

deviceEnrollmentType

public MicrosoftGraphDeviceEnrollmentType deviceEnrollmentType()

Get the deviceEnrollmentType property: deviceEnrollmentType.

Returns:

the deviceEnrollmentType value.

deviceHealthAttestationState

public MicrosoftGraphDeviceHealthAttestationState deviceHealthAttestationState()

Get the deviceHealthAttestationState property: deviceHealthAttestationState.

Returns:

the deviceHealthAttestationState value.

deviceName

public String deviceName()

Get the deviceName property: Name of the device.

Returns:

the deviceName value.

deviceRegistrationState

public MicrosoftGraphDeviceRegistrationState deviceRegistrationState()

Get the deviceRegistrationState property: deviceRegistrationState.

Returns:

the deviceRegistrationState value.

easActivated

public Boolean easActivated()

Get the easActivated property: Whether the device is Exchange ActiveSync activated.

Returns:

the easActivated value.

easActivationDateTime

public OffsetDateTime easActivationDateTime()

Get the easActivationDateTime property: Exchange ActivationSync activation time of the device.

Returns:

the easActivationDateTime value.

easDeviceId

public String easDeviceId()

Get the easDeviceId property: Exchange ActiveSync Id of the device.

Returns:

the easDeviceId value.

emailAddress

public String emailAddress()

Get the emailAddress property: Email(s) for the user associated with the device.

Returns:

the emailAddress value.

enrolledDateTime

public OffsetDateTime enrolledDateTime()

Get the enrolledDateTime property: Enrollment time of the device.

Returns:

the enrolledDateTime value.

exchangeAccessState

public MicrosoftGraphDeviceManagementExchangeAccessState exchangeAccessState()

Get the exchangeAccessState property: deviceManagementExchangeAccessState.

Returns:

the exchangeAccessState value.

exchangeAccessStateReason

public MicrosoftGraphDeviceManagementExchangeAccessStateReason exchangeAccessStateReason()

Get the exchangeAccessStateReason property: deviceManagementExchangeAccessStateReason.

Returns:

the exchangeAccessStateReason value.

exchangeLastSuccessfulSyncDateTime

public OffsetDateTime exchangeLastSuccessfulSyncDateTime()

Get the exchangeLastSuccessfulSyncDateTime property: Last time the device contacted Exchange.

Returns:

the exchangeLastSuccessfulSyncDateTime value.

freeStorageSpaceInBytes

public Long freeStorageSpaceInBytes()

Get the freeStorageSpaceInBytes property: Free Storage in Bytes.

Returns:

the freeStorageSpaceInBytes value.

fromJson

public static MicrosoftGraphManagedDevice fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphManagedDevice from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphManagedDevice if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphManagedDevice.

imei

public String imei()

Get the imei property: IMEI.

Returns:

the imei value.

isEncrypted

public Boolean isEncrypted()

Get the isEncrypted property: Device encryption status.

Returns:

the isEncrypted value.

isSupervised

public Boolean isSupervised()

Get the isSupervised property: Device supervised status.

Returns:

the isSupervised value.

jailBroken

public String jailBroken()

Get the jailBroken property: whether the device is jail broken or rooted.

Returns:

the jailBroken value.

lastSyncDateTime

public OffsetDateTime lastSyncDateTime()

Get the lastSyncDateTime property: The date and time that the device last completed a successful sync with Intune.

Returns:

the lastSyncDateTime value.

managedDeviceName

public String managedDeviceName()

Get the managedDeviceName property: Automatically generated name to identify a device. Can be overwritten to a user friendly name.

Returns:

the managedDeviceName value.

managedDeviceOwnerType

public MicrosoftGraphManagedDeviceOwnerType managedDeviceOwnerType()

Get the managedDeviceOwnerType property: managedDeviceOwnerType.

Returns:

the managedDeviceOwnerType value.

managementAgent

public MicrosoftGraphManagementAgentType managementAgent()

Get the managementAgent property: managementAgentType.

Returns:

the managementAgent value.

manufacturer

public String manufacturer()

Get the manufacturer property: Manufacturer of the device.

Returns:

the manufacturer value.

meid

public String meid()

Get the meid property: MEID.

Returns:

the meid value.

model

public String model()

Get the model property: Model of the device.

Returns:

the model value.

operatingSystem

public String operatingSystem()

Get the operatingSystem property: Operating system of the device. Windows, iOS, etc.

Returns:

the operatingSystem value.

osVersion

public String osVersion()

Get the osVersion property: Operating system version of the device.

Returns:

the osVersion value.

partnerReportedThreatState

public MicrosoftGraphManagedDevicePartnerReportedHealthState partnerReportedThreatState()

Get the partnerReportedThreatState property: managedDevicePartnerReportedHealthState.

Returns:

the partnerReportedThreatState value.

phoneNumber

public String phoneNumber()

Get the phoneNumber property: Phone number of the device.

Returns:

the phoneNumber value.

remoteAssistanceSessionErrorDetails

public String remoteAssistanceSessionErrorDetails()

Get the remoteAssistanceSessionErrorDetails property: An error string that identifies issues when creating Remote Assistance session objects.

Returns:

the remoteAssistanceSessionErrorDetails value.

remoteAssistanceSessionUrl

public String remoteAssistanceSessionUrl()

Get the remoteAssistanceSessionUrl property: Url that allows a Remote Assistance session to be established with the device.

Returns:

the remoteAssistanceSessionUrl value.

serialNumber

public String serialNumber()

Get the serialNumber property: SerialNumber.

Returns:

the serialNumber value.

subscriberCarrier

public String subscriberCarrier()

Get the subscriberCarrier property: Subscriber Carrier.

Returns:

the subscriberCarrier value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphManagedDevice.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalStorageSpaceInBytes

public Long totalStorageSpaceInBytes()

Get the totalStorageSpaceInBytes property: Total Storage in Bytes.

Returns:

the totalStorageSpaceInBytes value.

userDisplayName

public String userDisplayName()

Get the userDisplayName property: User display name.

Returns:

the userDisplayName value.

userId

public String userId()

Get the userId property: Unique Identifier for the user associated with the device.

Returns:

the userId value.

userPrincipalName

public String userPrincipalName()

Get the userPrincipalName property: Device user principal name.

Returns:

the userPrincipalName value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphManagedDevice.validate()

wiFiMacAddress

public String wiFiMacAddress()

Get the wiFiMacAddress property: Wi-Fi MAC.

Returns:

the wiFiMacAddress value.

withActivationLockBypassCode

public MicrosoftGraphManagedDevice withActivationLockBypassCode(String activationLockBypassCode)

Set the activationLockBypassCode property: Code that allows the Activation Lock on a device to be bypassed.

Parameters:

activationLockBypassCode - the activationLockBypassCode value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withAdditionalProperties

public MicrosoftGraphManagedDevice withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Devices that are managed or pre-enrolled through Intune.

Overrides:

MicrosoftGraphManagedDevice.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withAndroidSecurityPatchLevel

public MicrosoftGraphManagedDevice withAndroidSecurityPatchLevel(String androidSecurityPatchLevel)

Set the androidSecurityPatchLevel property: Android security patch level.

Parameters:

androidSecurityPatchLevel - the androidSecurityPatchLevel value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withAzureADDeviceId

public MicrosoftGraphManagedDevice withAzureADDeviceId(String azureADDeviceId)

Set the azureADDeviceId property: The unique identifier for the Azure Active Directory device. Read only.

Parameters:

azureADDeviceId - the azureADDeviceId value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withAzureADRegistered

public MicrosoftGraphManagedDevice withAzureADRegistered(Boolean azureADRegistered)

Set the azureADRegistered property: Whether the device is Azure Active Directory registered.

Parameters:

azureADRegistered - the azureADRegistered value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withComplianceGracePeriodExpirationDateTime

public MicrosoftGraphManagedDevice withComplianceGracePeriodExpirationDateTime(OffsetDateTime complianceGracePeriodExpirationDateTime)

Set the complianceGracePeriodExpirationDateTime property: The DateTime when device compliance grace period expires.

Parameters:

complianceGracePeriodExpirationDateTime - the complianceGracePeriodExpirationDateTime value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withComplianceState

public MicrosoftGraphManagedDevice withComplianceState(MicrosoftGraphComplianceState complianceState)

Set the complianceState property: complianceState.

Parameters:

complianceState - the complianceState value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withConfigurationManagerClientEnabledFeatures

public MicrosoftGraphManagedDevice withConfigurationManagerClientEnabledFeatures(MicrosoftGraphConfigurationManagerClientEnabledFeatures configurationManagerClientEnabledFeatures)

Set the configurationManagerClientEnabledFeatures property: configuration Manager client enabled features.

Parameters:

configurationManagerClientEnabledFeatures - the configurationManagerClientEnabledFeatures value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceActionResults

public MicrosoftGraphManagedDevice withDeviceActionResults(List deviceActionResults)

Set the deviceActionResults property: List of ComplexType deviceActionResult objects.

Parameters:

deviceActionResults - the deviceActionResults value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceCategory

public MicrosoftGraphManagedDevice withDeviceCategory(MicrosoftGraphDeviceCategory deviceCategory)

Set the deviceCategory property: Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.

Parameters:

deviceCategory - the deviceCategory value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceCategoryDisplayName

public MicrosoftGraphManagedDevice withDeviceCategoryDisplayName(String deviceCategoryDisplayName)

Set the deviceCategoryDisplayName property: Device category display name.

Parameters:

deviceCategoryDisplayName - the deviceCategoryDisplayName value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceCompliancePolicyStates

public MicrosoftGraphManagedDevice withDeviceCompliancePolicyStates(List deviceCompliancePolicyStates)

Set the deviceCompliancePolicyStates property: Device compliance policy states for this device.

Parameters:

deviceCompliancePolicyStates - the deviceCompliancePolicyStates value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceConfigurationStates

public MicrosoftGraphManagedDevice withDeviceConfigurationStates(List deviceConfigurationStates)

Set the deviceConfigurationStates property: Device configuration states for this device.

Parameters:

deviceConfigurationStates - the deviceConfigurationStates value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceEnrollmentType

public MicrosoftGraphManagedDevice withDeviceEnrollmentType(MicrosoftGraphDeviceEnrollmentType deviceEnrollmentType)

Set the deviceEnrollmentType property: deviceEnrollmentType.

Parameters:

deviceEnrollmentType - the deviceEnrollmentType value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceHealthAttestationState

public MicrosoftGraphManagedDevice withDeviceHealthAttestationState(MicrosoftGraphDeviceHealthAttestationState deviceHealthAttestationState)

Set the deviceHealthAttestationState property: deviceHealthAttestationState.

Parameters:

deviceHealthAttestationState - the deviceHealthAttestationState value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceName

public MicrosoftGraphManagedDevice withDeviceName(String deviceName)

Set the deviceName property: Name of the device.

Parameters:

deviceName - the deviceName value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withDeviceRegistrationState

public MicrosoftGraphManagedDevice withDeviceRegistrationState(MicrosoftGraphDeviceRegistrationState deviceRegistrationState)

Set the deviceRegistrationState property: deviceRegistrationState.

Parameters:

deviceRegistrationState - the deviceRegistrationState value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withEasActivated

public MicrosoftGraphManagedDevice withEasActivated(Boolean easActivated)

Set the easActivated property: Whether the device is Exchange ActiveSync activated.

Parameters:

easActivated - the easActivated value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withEasActivationDateTime

public MicrosoftGraphManagedDevice withEasActivationDateTime(OffsetDateTime easActivationDateTime)

Set the easActivationDateTime property: Exchange ActivationSync activation time of the device.

Parameters:

easActivationDateTime - the easActivationDateTime value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withEasDeviceId

public MicrosoftGraphManagedDevice withEasDeviceId(String easDeviceId)

Set the easDeviceId property: Exchange ActiveSync Id of the device.

Parameters:

easDeviceId - the easDeviceId value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withEmailAddress

public MicrosoftGraphManagedDevice withEmailAddress(String emailAddress)

Set the emailAddress property: Email(s) for the user associated with the device.

Parameters:

emailAddress - the emailAddress value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withEnrolledDateTime

public MicrosoftGraphManagedDevice withEnrolledDateTime(OffsetDateTime enrolledDateTime)

Set the enrolledDateTime property: Enrollment time of the device.

Parameters:

enrolledDateTime - the enrolledDateTime value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withExchangeAccessState

public MicrosoftGraphManagedDevice withExchangeAccessState(MicrosoftGraphDeviceManagementExchangeAccessState exchangeAccessState)

Set the exchangeAccessState property: deviceManagementExchangeAccessState.

Parameters:

exchangeAccessState - the exchangeAccessState value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withExchangeAccessStateReason

public MicrosoftGraphManagedDevice withExchangeAccessStateReason(MicrosoftGraphDeviceManagementExchangeAccessStateReason exchangeAccessStateReason)

Set the exchangeAccessStateReason property: deviceManagementExchangeAccessStateReason.

Parameters:

exchangeAccessStateReason - the exchangeAccessStateReason value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withExchangeLastSuccessfulSyncDateTime

public MicrosoftGraphManagedDevice withExchangeLastSuccessfulSyncDateTime(OffsetDateTime exchangeLastSuccessfulSyncDateTime)

Set the exchangeLastSuccessfulSyncDateTime property: Last time the device contacted Exchange.

Parameters:

exchangeLastSuccessfulSyncDateTime - the exchangeLastSuccessfulSyncDateTime value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withFreeStorageSpaceInBytes

public MicrosoftGraphManagedDevice withFreeStorageSpaceInBytes(Long freeStorageSpaceInBytes)

Set the freeStorageSpaceInBytes property: Free Storage in Bytes.

Parameters:

freeStorageSpaceInBytes - the freeStorageSpaceInBytes value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withId

public MicrosoftGraphManagedDevice withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphManagedDevice.withId(String id)

Parameters:

id

withImei

public MicrosoftGraphManagedDevice withImei(String imei)

Set the imei property: IMEI.

Parameters:

imei - the imei value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withIsEncrypted

public MicrosoftGraphManagedDevice withIsEncrypted(Boolean isEncrypted)

Set the isEncrypted property: Device encryption status.

Parameters:

isEncrypted - the isEncrypted value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withIsSupervised

public MicrosoftGraphManagedDevice withIsSupervised(Boolean isSupervised)

Set the isSupervised property: Device supervised status.

Parameters:

isSupervised - the isSupervised value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withJailBroken

public MicrosoftGraphManagedDevice withJailBroken(String jailBroken)

Set the jailBroken property: whether the device is jail broken or rooted.

Parameters:

jailBroken - the jailBroken value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withLastSyncDateTime

public MicrosoftGraphManagedDevice withLastSyncDateTime(OffsetDateTime lastSyncDateTime)

Set the lastSyncDateTime property: The date and time that the device last completed a successful sync with Intune.

Parameters:

lastSyncDateTime - the lastSyncDateTime value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withManagedDeviceName

public MicrosoftGraphManagedDevice withManagedDeviceName(String managedDeviceName)

Set the managedDeviceName property: Automatically generated name to identify a device. Can be overwritten to a user friendly name.

Parameters:

managedDeviceName - the managedDeviceName value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withManagedDeviceOwnerType

public MicrosoftGraphManagedDevice withManagedDeviceOwnerType(MicrosoftGraphManagedDeviceOwnerType managedDeviceOwnerType)

Set the managedDeviceOwnerType property: managedDeviceOwnerType.

Parameters:

managedDeviceOwnerType - the managedDeviceOwnerType value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withManagementAgent

public MicrosoftGraphManagedDevice withManagementAgent(MicrosoftGraphManagementAgentType managementAgent)

Set the managementAgent property: managementAgentType.

Parameters:

managementAgent - the managementAgent value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withManufacturer

public MicrosoftGraphManagedDevice withManufacturer(String manufacturer)

Set the manufacturer property: Manufacturer of the device.

Parameters:

manufacturer - the manufacturer value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withMeid

public MicrosoftGraphManagedDevice withMeid(String meid)

Set the meid property: MEID.

Parameters:

meid - the meid value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withModel

public MicrosoftGraphManagedDevice withModel(String model)

Set the model property: Model of the device.

Parameters:

model - the model value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withOperatingSystem

public MicrosoftGraphManagedDevice withOperatingSystem(String operatingSystem)

Set the operatingSystem property: Operating system of the device. Windows, iOS, etc.

Parameters:

operatingSystem - the operatingSystem value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withOsVersion

public MicrosoftGraphManagedDevice withOsVersion(String osVersion)

Set the osVersion property: Operating system version of the device.

Parameters:

osVersion - the osVersion value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withPartnerReportedThreatState

public MicrosoftGraphManagedDevice withPartnerReportedThreatState(MicrosoftGraphManagedDevicePartnerReportedHealthState partnerReportedThreatState)

Set the partnerReportedThreatState property: managedDevicePartnerReportedHealthState.

Parameters:

partnerReportedThreatState - the partnerReportedThreatState value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withPhoneNumber

public MicrosoftGraphManagedDevice withPhoneNumber(String phoneNumber)

Set the phoneNumber property: Phone number of the device.

Parameters:

phoneNumber - the phoneNumber value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withRemoteAssistanceSessionErrorDetails

public MicrosoftGraphManagedDevice withRemoteAssistanceSessionErrorDetails(String remoteAssistanceSessionErrorDetails)

Set the remoteAssistanceSessionErrorDetails property: An error string that identifies issues when creating Remote Assistance session objects.

Parameters:

remoteAssistanceSessionErrorDetails - the remoteAssistanceSessionErrorDetails value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withRemoteAssistanceSessionUrl

public MicrosoftGraphManagedDevice withRemoteAssistanceSessionUrl(String remoteAssistanceSessionUrl)

Set the remoteAssistanceSessionUrl property: Url that allows a Remote Assistance session to be established with the device.

Parameters:

remoteAssistanceSessionUrl - the remoteAssistanceSessionUrl value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withSerialNumber

public MicrosoftGraphManagedDevice withSerialNumber(String serialNumber)

Set the serialNumber property: SerialNumber.

Parameters:

serialNumber - the serialNumber value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withSubscriberCarrier

public MicrosoftGraphManagedDevice withSubscriberCarrier(String subscriberCarrier)

Set the subscriberCarrier property: Subscriber Carrier.

Parameters:

subscriberCarrier - the subscriberCarrier value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withTotalStorageSpaceInBytes

public MicrosoftGraphManagedDevice withTotalStorageSpaceInBytes(Long totalStorageSpaceInBytes)

Set the totalStorageSpaceInBytes property: Total Storage in Bytes.

Parameters:

totalStorageSpaceInBytes - the totalStorageSpaceInBytes value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withUserDisplayName

public MicrosoftGraphManagedDevice withUserDisplayName(String userDisplayName)

Set the userDisplayName property: User display name.

Parameters:

userDisplayName - the userDisplayName value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withUserId

public MicrosoftGraphManagedDevice withUserId(String userId)

Set the userId property: Unique Identifier for the user associated with the device.

Parameters:

userId - the userId value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withUserPrincipalName

public MicrosoftGraphManagedDevice withUserPrincipalName(String userPrincipalName)

Set the userPrincipalName property: Device user principal name.

Parameters:

userPrincipalName - the userPrincipalName value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

withWiFiMacAddress

public MicrosoftGraphManagedDevice withWiFiMacAddress(String wiFiMacAddress)

Set the wiFiMacAddress property: Wi-Fi MAC.

Parameters:

wiFiMacAddress - the wiFiMacAddress value to set.

Returns:

the MicrosoftGraphManagedDevice object itself.

Applies to