<?php
/**
* Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the MIT License.  See License in the project root for license information.
* 
* WindowsAutopilotDeviceIdentity File
* PHP version 7
*
* @category  Library
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
namespace Beta\Microsoft\Graph\Model;

/**
* WindowsAutopilotDeviceIdentity class
*
* @category  Model
* @package   Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license   https://opensource.org/licenses/MIT MIT License
* @link      https://graph.microsoft.com
*/
class WindowsAutopilotDeviceIdentity extends Entity
{
    /**
    * Gets the addressableUserName
    * Addressable user name.
    *
    * @return string|null The addressableUserName
    */
    public function getAddressableUserName()
    {
        if (array_key_exists("addressableUserName", $this->_propDict)) {
            return $this->_propDict["addressableUserName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the addressableUserName
    * Addressable user name.
    *
    * @param string $val The addressableUserName
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setAddressableUserName($val)
    {
        $this->_propDict["addressableUserName"] = $val;
        return $this;
    }

    /**
    * Gets the azureActiveDirectoryDeviceId
    * AAD Device ID - to be deprecated
    *
    * @return string|null The azureActiveDirectoryDeviceId
    */
    public function getAzureActiveDirectoryDeviceId()
    {
        if (array_key_exists("azureActiveDirectoryDeviceId", $this->_propDict)) {
            return $this->_propDict["azureActiveDirectoryDeviceId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the azureActiveDirectoryDeviceId
    * AAD Device ID - to be deprecated
    *
    * @param string $val The azureActiveDirectoryDeviceId
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setAzureActiveDirectoryDeviceId($val)
    {
        $this->_propDict["azureActiveDirectoryDeviceId"] = $val;
        return $this;
    }

    /**
    * Gets the azureAdDeviceId
    * AAD Device ID
    *
    * @return string|null The azureAdDeviceId
    */
    public function getAzureAdDeviceId()
    {
        if (array_key_exists("azureAdDeviceId", $this->_propDict)) {
            return $this->_propDict["azureAdDeviceId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the azureAdDeviceId
    * AAD Device ID
    *
    * @param string $val The azureAdDeviceId
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setAzureAdDeviceId($val)
    {
        $this->_propDict["azureAdDeviceId"] = $val;
        return $this;
    }

    /**
    * Gets the deploymentProfileAssignedDateTime
    * Profile set time of the Windows autopilot device.
    *
    * @return \DateTime|null The deploymentProfileAssignedDateTime
    */
    public function getDeploymentProfileAssignedDateTime()
    {
        if (array_key_exists("deploymentProfileAssignedDateTime", $this->_propDict)) {
            if (is_a($this->_propDict["deploymentProfileAssignedDateTime"], "\DateTime") || is_null($this->_propDict["deploymentProfileAssignedDateTime"])) {
                return $this->_propDict["deploymentProfileAssignedDateTime"];
            } else {
                $this->_propDict["deploymentProfileAssignedDateTime"] = new \DateTime($this->_propDict["deploymentProfileAssignedDateTime"]);
                return $this->_propDict["deploymentProfileAssignedDateTime"];
            }
        }
        return null;
    }

    /**
    * Sets the deploymentProfileAssignedDateTime
    * Profile set time of the Windows autopilot device.
    *
    * @param \DateTime $val The deploymentProfileAssignedDateTime
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeploymentProfileAssignedDateTime($val)
    {
        $this->_propDict["deploymentProfileAssignedDateTime"] = $val;
        return $this;
    }

    /**
    * Gets the deploymentProfileAssignmentDetailedStatus
    * Profile assignment detailed status of the Windows autopilot device. Possible values are: none, hardwareRequirementsNotMet, surfaceHubProfileNotSupported, holoLensProfileNotSupported, windowsPcProfileNotSupported, surfaceHub2SProfileNotSupported, unknownFutureValue.
    *
    * @return WindowsAutopilotProfileAssignmentDetailedStatus|null The deploymentProfileAssignmentDetailedStatus
    */
    public function getDeploymentProfileAssignmentDetailedStatus()
    {
        if (array_key_exists("deploymentProfileAssignmentDetailedStatus", $this->_propDict)) {
            if (is_a($this->_propDict["deploymentProfileAssignmentDetailedStatus"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotProfileAssignmentDetailedStatus") || is_null($this->_propDict["deploymentProfileAssignmentDetailedStatus"])) {
                return $this->_propDict["deploymentProfileAssignmentDetailedStatus"];
            } else {
                $this->_propDict["deploymentProfileAssignmentDetailedStatus"] = new WindowsAutopilotProfileAssignmentDetailedStatus($this->_propDict["deploymentProfileAssignmentDetailedStatus"]);
                return $this->_propDict["deploymentProfileAssignmentDetailedStatus"];
            }
        }
        return null;
    }

    /**
    * Sets the deploymentProfileAssignmentDetailedStatus
    * Profile assignment detailed status of the Windows autopilot device. Possible values are: none, hardwareRequirementsNotMet, surfaceHubProfileNotSupported, holoLensProfileNotSupported, windowsPcProfileNotSupported, surfaceHub2SProfileNotSupported, unknownFutureValue.
    *
    * @param WindowsAutopilotProfileAssignmentDetailedStatus $val The deploymentProfileAssignmentDetailedStatus
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeploymentProfileAssignmentDetailedStatus($val)
    {
        $this->_propDict["deploymentProfileAssignmentDetailedStatus"] = $val;
        return $this;
    }

    /**
    * Gets the deploymentProfileAssignmentStatus
    * Profile assignment status of the Windows autopilot device. Possible values are: unknown, assignedInSync, assignedOutOfSync, assignedUnkownSyncState, notAssigned, pending, failed.
    *
    * @return WindowsAutopilotProfileAssignmentStatus|null The deploymentProfileAssignmentStatus
    */
    public function getDeploymentProfileAssignmentStatus()
    {
        if (array_key_exists("deploymentProfileAssignmentStatus", $this->_propDict)) {
            if (is_a($this->_propDict["deploymentProfileAssignmentStatus"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotProfileAssignmentStatus") || is_null($this->_propDict["deploymentProfileAssignmentStatus"])) {
                return $this->_propDict["deploymentProfileAssignmentStatus"];
            } else {
                $this->_propDict["deploymentProfileAssignmentStatus"] = new WindowsAutopilotProfileAssignmentStatus($this->_propDict["deploymentProfileAssignmentStatus"]);
                return $this->_propDict["deploymentProfileAssignmentStatus"];
            }
        }
        return null;
    }

    /**
    * Sets the deploymentProfileAssignmentStatus
    * Profile assignment status of the Windows autopilot device. Possible values are: unknown, assignedInSync, assignedOutOfSync, assignedUnkownSyncState, notAssigned, pending, failed.
    *
    * @param WindowsAutopilotProfileAssignmentStatus $val The deploymentProfileAssignmentStatus
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeploymentProfileAssignmentStatus($val)
    {
        $this->_propDict["deploymentProfileAssignmentStatus"] = $val;
        return $this;
    }

    /**
    * Gets the deviceAccountPassword
    * Surface Hub Device Account Password
    *
    * @return string|null The deviceAccountPassword
    */
    public function getDeviceAccountPassword()
    {
        if (array_key_exists("deviceAccountPassword", $this->_propDict)) {
            return $this->_propDict["deviceAccountPassword"];
        } else {
            return null;
        }
    }

    /**
    * Sets the deviceAccountPassword
    * Surface Hub Device Account Password
    *
    * @param string $val The deviceAccountPassword
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeviceAccountPassword($val)
    {
        $this->_propDict["deviceAccountPassword"] = $val;
        return $this;
    }

    /**
    * Gets the deviceAccountUpn
    * Surface Hub Device Account Upn
    *
    * @return string|null The deviceAccountUpn
    */
    public function getDeviceAccountUpn()
    {
        if (array_key_exists("deviceAccountUpn", $this->_propDict)) {
            return $this->_propDict["deviceAccountUpn"];
        } else {
            return null;
        }
    }

    /**
    * Sets the deviceAccountUpn
    * Surface Hub Device Account Upn
    *
    * @param string $val The deviceAccountUpn
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeviceAccountUpn($val)
    {
        $this->_propDict["deviceAccountUpn"] = $val;
        return $this;
    }

    /**
    * Gets the deviceFriendlyName
    * Surface Hub Device Friendly Name
    *
    * @return string|null The deviceFriendlyName
    */
    public function getDeviceFriendlyName()
    {
        if (array_key_exists("deviceFriendlyName", $this->_propDict)) {
            return $this->_propDict["deviceFriendlyName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the deviceFriendlyName
    * Surface Hub Device Friendly Name
    *
    * @param string $val The deviceFriendlyName
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeviceFriendlyName($val)
    {
        $this->_propDict["deviceFriendlyName"] = $val;
        return $this;
    }

    /**
    * Gets the displayName
    * Display Name
    *
    * @return string|null The displayName
    */
    public function getDisplayName()
    {
        if (array_key_exists("displayName", $this->_propDict)) {
            return $this->_propDict["displayName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the displayName
    * Display Name
    *
    * @param string $val The displayName
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDisplayName($val)
    {
        $this->_propDict["displayName"] = $val;
        return $this;
    }

    /**
    * Gets the enrollmentState
    * Intune enrollment state of the Windows autopilot device. Possible values are: unknown, enrolled, pendingReset, failed, notContacted, blocked.
    *
    * @return EnrollmentState|null The enrollmentState
    */
    public function getEnrollmentState()
    {
        if (array_key_exists("enrollmentState", $this->_propDict)) {
            if (is_a($this->_propDict["enrollmentState"], "\Beta\Microsoft\Graph\Model\EnrollmentState") || is_null($this->_propDict["enrollmentState"])) {
                return $this->_propDict["enrollmentState"];
            } else {
                $this->_propDict["enrollmentState"] = new EnrollmentState($this->_propDict["enrollmentState"]);
                return $this->_propDict["enrollmentState"];
            }
        }
        return null;
    }

    /**
    * Sets the enrollmentState
    * Intune enrollment state of the Windows autopilot device. Possible values are: unknown, enrolled, pendingReset, failed, notContacted, blocked.
    *
    * @param EnrollmentState $val The enrollmentState
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setEnrollmentState($val)
    {
        $this->_propDict["enrollmentState"] = $val;
        return $this;
    }

    /**
    * Gets the groupTag
    * Group Tag of the Windows autopilot device.
    *
    * @return string|null The groupTag
    */
    public function getGroupTag()
    {
        if (array_key_exists("groupTag", $this->_propDict)) {
            return $this->_propDict["groupTag"];
        } else {
            return null;
        }
    }

    /**
    * Sets the groupTag
    * Group Tag of the Windows autopilot device.
    *
    * @param string $val The groupTag
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setGroupTag($val)
    {
        $this->_propDict["groupTag"] = $val;
        return $this;
    }

    /**
    * Gets the lastContactedDateTime
    * Intune Last Contacted Date Time of the Windows autopilot device.
    *
    * @return \DateTime|null The lastContactedDateTime
    */
    public function getLastContactedDateTime()
    {
        if (array_key_exists("lastContactedDateTime", $this->_propDict)) {
            if (is_a($this->_propDict["lastContactedDateTime"], "\DateTime") || is_null($this->_propDict["lastContactedDateTime"])) {
                return $this->_propDict["lastContactedDateTime"];
            } else {
                $this->_propDict["lastContactedDateTime"] = new \DateTime($this->_propDict["lastContactedDateTime"]);
                return $this->_propDict["lastContactedDateTime"];
            }
        }
        return null;
    }

    /**
    * Sets the lastContactedDateTime
    * Intune Last Contacted Date Time of the Windows autopilot device.
    *
    * @param \DateTime $val The lastContactedDateTime
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setLastContactedDateTime($val)
    {
        $this->_propDict["lastContactedDateTime"] = $val;
        return $this;
    }

    /**
    * Gets the managedDeviceId
    * Managed Device ID
    *
    * @return string|null The managedDeviceId
    */
    public function getManagedDeviceId()
    {
        if (array_key_exists("managedDeviceId", $this->_propDict)) {
            return $this->_propDict["managedDeviceId"];
        } else {
            return null;
        }
    }

    /**
    * Sets the managedDeviceId
    * Managed Device ID
    *
    * @param string $val The managedDeviceId
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setManagedDeviceId($val)
    {
        $this->_propDict["managedDeviceId"] = $val;
        return $this;
    }

    /**
    * Gets the manufacturer
    * Oem manufacturer of the Windows autopilot device.
    *
    * @return string|null The manufacturer
    */
    public function getManufacturer()
    {
        if (array_key_exists("manufacturer", $this->_propDict)) {
            return $this->_propDict["manufacturer"];
        } else {
            return null;
        }
    }

    /**
    * Sets the manufacturer
    * Oem manufacturer of the Windows autopilot device.
    *
    * @param string $val The manufacturer
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setManufacturer($val)
    {
        $this->_propDict["manufacturer"] = $val;
        return $this;
    }

    /**
    * Gets the model
    * Model name of the Windows autopilot device.
    *
    * @return string|null The model
    */
    public function getModel()
    {
        if (array_key_exists("model", $this->_propDict)) {
            return $this->_propDict["model"];
        } else {
            return null;
        }
    }

    /**
    * Sets the model
    * Model name of the Windows autopilot device.
    *
    * @param string $val The model
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setModel($val)
    {
        $this->_propDict["model"] = $val;
        return $this;
    }

    /**
    * Gets the productKey
    * Product Key of the Windows autopilot device.
    *
    * @return string|null The productKey
    */
    public function getProductKey()
    {
        if (array_key_exists("productKey", $this->_propDict)) {
            return $this->_propDict["productKey"];
        } else {
            return null;
        }
    }

    /**
    * Sets the productKey
    * Product Key of the Windows autopilot device.
    *
    * @param string $val The productKey
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setProductKey($val)
    {
        $this->_propDict["productKey"] = $val;
        return $this;
    }

    /**
    * Gets the purchaseOrderIdentifier
    * Purchase Order Identifier of the Windows autopilot device.
    *
    * @return string|null The purchaseOrderIdentifier
    */
    public function getPurchaseOrderIdentifier()
    {
        if (array_key_exists("purchaseOrderIdentifier", $this->_propDict)) {
            return $this->_propDict["purchaseOrderIdentifier"];
        } else {
            return null;
        }
    }

    /**
    * Sets the purchaseOrderIdentifier
    * Purchase Order Identifier of the Windows autopilot device.
    *
    * @param string $val The purchaseOrderIdentifier
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setPurchaseOrderIdentifier($val)
    {
        $this->_propDict["purchaseOrderIdentifier"] = $val;
        return $this;
    }

    /**
    * Gets the remediationState
    * Device Remediation State. Possible values are: unknown, noRemediationRequired, automaticRemediationRequired, manualRemediationRequired, unknownFutureValue.
    *
    * @return WindowsAutopilotDeviceRemediationState|null The remediationState
    */
    public function getRemediationState()
    {
        if (array_key_exists("remediationState", $this->_propDict)) {
            if (is_a($this->_propDict["remediationState"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotDeviceRemediationState") || is_null($this->_propDict["remediationState"])) {
                return $this->_propDict["remediationState"];
            } else {
                $this->_propDict["remediationState"] = new WindowsAutopilotDeviceRemediationState($this->_propDict["remediationState"]);
                return $this->_propDict["remediationState"];
            }
        }
        return null;
    }

    /**
    * Sets the remediationState
    * Device Remediation State. Possible values are: unknown, noRemediationRequired, automaticRemediationRequired, manualRemediationRequired, unknownFutureValue.
    *
    * @param WindowsAutopilotDeviceRemediationState $val The remediationState
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setRemediationState($val)
    {
        $this->_propDict["remediationState"] = $val;
        return $this;
    }

    /**
    * Gets the remediationStateLastModifiedDateTime
    * RemediationState set time of Autopilot device.
    *
    * @return \DateTime|null The remediationStateLastModifiedDateTime
    */
    public function getRemediationStateLastModifiedDateTime()
    {
        if (array_key_exists("remediationStateLastModifiedDateTime", $this->_propDict)) {
            if (is_a($this->_propDict["remediationStateLastModifiedDateTime"], "\DateTime") || is_null($this->_propDict["remediationStateLastModifiedDateTime"])) {
                return $this->_propDict["remediationStateLastModifiedDateTime"];
            } else {
                $this->_propDict["remediationStateLastModifiedDateTime"] = new \DateTime($this->_propDict["remediationStateLastModifiedDateTime"]);
                return $this->_propDict["remediationStateLastModifiedDateTime"];
            }
        }
        return null;
    }

    /**
    * Sets the remediationStateLastModifiedDateTime
    * RemediationState set time of Autopilot device.
    *
    * @param \DateTime $val The remediationStateLastModifiedDateTime
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setRemediationStateLastModifiedDateTime($val)
    {
        $this->_propDict["remediationStateLastModifiedDateTime"] = $val;
        return $this;
    }

    /**
    * Gets the resourceName
    * Resource Name.
    *
    * @return string|null The resourceName
    */
    public function getResourceName()
    {
        if (array_key_exists("resourceName", $this->_propDict)) {
            return $this->_propDict["resourceName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the resourceName
    * Resource Name.
    *
    * @param string $val The resourceName
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setResourceName($val)
    {
        $this->_propDict["resourceName"] = $val;
        return $this;
    }

    /**
    * Gets the serialNumber
    * Serial number of the Windows autopilot device.
    *
    * @return string|null The serialNumber
    */
    public function getSerialNumber()
    {
        if (array_key_exists("serialNumber", $this->_propDict)) {
            return $this->_propDict["serialNumber"];
        } else {
            return null;
        }
    }

    /**
    * Sets the serialNumber
    * Serial number of the Windows autopilot device.
    *
    * @param string $val The serialNumber
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setSerialNumber($val)
    {
        $this->_propDict["serialNumber"] = $val;
        return $this;
    }

    /**
    * Gets the skuNumber
    * SKU Number
    *
    * @return string|null The skuNumber
    */
    public function getSkuNumber()
    {
        if (array_key_exists("skuNumber", $this->_propDict)) {
            return $this->_propDict["skuNumber"];
        } else {
            return null;
        }
    }

    /**
    * Sets the skuNumber
    * SKU Number
    *
    * @param string $val The skuNumber
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setSkuNumber($val)
    {
        $this->_propDict["skuNumber"] = $val;
        return $this;
    }

    /**
    * Gets the systemFamily
    * System Family
    *
    * @return string|null The systemFamily
    */
    public function getSystemFamily()
    {
        if (array_key_exists("systemFamily", $this->_propDict)) {
            return $this->_propDict["systemFamily"];
        } else {
            return null;
        }
    }

    /**
    * Sets the systemFamily
    * System Family
    *
    * @param string $val The systemFamily
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setSystemFamily($val)
    {
        $this->_propDict["systemFamily"] = $val;
        return $this;
    }

    /**
    * Gets the userlessEnrollmentStatus
    * Enrollment status for userless enrollments.
    *
    * @return WindowsAutopilotUserlessEnrollmentStatus|null The userlessEnrollmentStatus
    */
    public function getUserlessEnrollmentStatus()
    {
        if (array_key_exists("userlessEnrollmentStatus", $this->_propDict)) {
            if (is_a($this->_propDict["userlessEnrollmentStatus"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotUserlessEnrollmentStatus") || is_null($this->_propDict["userlessEnrollmentStatus"])) {
                return $this->_propDict["userlessEnrollmentStatus"];
            } else {
                $this->_propDict["userlessEnrollmentStatus"] = new WindowsAutopilotUserlessEnrollmentStatus($this->_propDict["userlessEnrollmentStatus"]);
                return $this->_propDict["userlessEnrollmentStatus"];
            }
        }
        return null;
    }

    /**
    * Sets the userlessEnrollmentStatus
    * Enrollment status for userless enrollments.
    *
    * @param WindowsAutopilotUserlessEnrollmentStatus $val The userlessEnrollmentStatus
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setUserlessEnrollmentStatus($val)
    {
        $this->_propDict["userlessEnrollmentStatus"] = $val;
        return $this;
    }

    /**
    * Gets the userPrincipalName
    * User Principal Name.
    *
    * @return string|null The userPrincipalName
    */
    public function getUserPrincipalName()
    {
        if (array_key_exists("userPrincipalName", $this->_propDict)) {
            return $this->_propDict["userPrincipalName"];
        } else {
            return null;
        }
    }

    /**
    * Sets the userPrincipalName
    * User Principal Name.
    *
    * @param string $val The userPrincipalName
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setUserPrincipalName($val)
    {
        $this->_propDict["userPrincipalName"] = $val;
        return $this;
    }

    /**
    * Gets the deploymentProfile
    * Deployment profile currently assigned to the Windows autopilot device.
    *
    * @return WindowsAutopilotDeploymentProfile|null The deploymentProfile
    */
    public function getDeploymentProfile()
    {
        if (array_key_exists("deploymentProfile", $this->_propDict)) {
            if (is_a($this->_propDict["deploymentProfile"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotDeploymentProfile") || is_null($this->_propDict["deploymentProfile"])) {
                return $this->_propDict["deploymentProfile"];
            } else {
                $this->_propDict["deploymentProfile"] = new WindowsAutopilotDeploymentProfile($this->_propDict["deploymentProfile"]);
                return $this->_propDict["deploymentProfile"];
            }
        }
        return null;
    }

    /**
    * Sets the deploymentProfile
    * Deployment profile currently assigned to the Windows autopilot device.
    *
    * @param WindowsAutopilotDeploymentProfile $val The deploymentProfile
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setDeploymentProfile($val)
    {
        $this->_propDict["deploymentProfile"] = $val;
        return $this;
    }

    /**
    * Gets the intendedDeploymentProfile
    * Deployment profile intended to be assigned to the Windows autopilot device.
    *
    * @return WindowsAutopilotDeploymentProfile|null The intendedDeploymentProfile
    */
    public function getIntendedDeploymentProfile()
    {
        if (array_key_exists("intendedDeploymentProfile", $this->_propDict)) {
            if (is_a($this->_propDict["intendedDeploymentProfile"], "\Beta\Microsoft\Graph\Model\WindowsAutopilotDeploymentProfile") || is_null($this->_propDict["intendedDeploymentProfile"])) {
                return $this->_propDict["intendedDeploymentProfile"];
            } else {
                $this->_propDict["intendedDeploymentProfile"] = new WindowsAutopilotDeploymentProfile($this->_propDict["intendedDeploymentProfile"]);
                return $this->_propDict["intendedDeploymentProfile"];
            }
        }
        return null;
    }

    /**
    * Sets the intendedDeploymentProfile
    * Deployment profile intended to be assigned to the Windows autopilot device.
    *
    * @param WindowsAutopilotDeploymentProfile $val The intendedDeploymentProfile
    *
    * @return WindowsAutopilotDeviceIdentity
    */
    public function setIntendedDeploymentProfile($val)
    {
        $this->_propDict["intendedDeploymentProfile"] = $val;
        return $this;
    }

}
