_propDict)) { return $this->_propDict["accountName"]; } else { return null; } } /** * Sets the accountName * Account name. * * @param string $val The accountName * * @return Windows10EasEmailProfileConfiguration */ public function setAccountName($val) { $this->_propDict["accountName"] = $val; return $this; } /** * Gets the durationOfEmailToSync * Duration of email to sync. Possible values are: userDefined, oneDay, threeDays, oneWeek, twoWeeks, oneMonth, unlimited. * * @return EmailSyncDuration|null The durationOfEmailToSync */ public function getDurationOfEmailToSync() { if (array_key_exists("durationOfEmailToSync", $this->_propDict)) { if (is_a($this->_propDict["durationOfEmailToSync"], "\Beta\Microsoft\Graph\Model\EmailSyncDuration") || is_null($this->_propDict["durationOfEmailToSync"])) { return $this->_propDict["durationOfEmailToSync"]; } else { $this->_propDict["durationOfEmailToSync"] = new EmailSyncDuration($this->_propDict["durationOfEmailToSync"]); return $this->_propDict["durationOfEmailToSync"]; } } return null; } /** * Sets the durationOfEmailToSync * Duration of email to sync. Possible values are: userDefined, oneDay, threeDays, oneWeek, twoWeeks, oneMonth, unlimited. * * @param EmailSyncDuration $val The durationOfEmailToSync * * @return Windows10EasEmailProfileConfiguration */ public function setDurationOfEmailToSync($val) { $this->_propDict["durationOfEmailToSync"] = $val; return $this; } /** * Gets the emailAddressSource * Email attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. * * @return UserEmailSource|null The emailAddressSource */ public function getEmailAddressSource() { if (array_key_exists("emailAddressSource", $this->_propDict)) { if (is_a($this->_propDict["emailAddressSource"], "\Beta\Microsoft\Graph\Model\UserEmailSource") || is_null($this->_propDict["emailAddressSource"])) { return $this->_propDict["emailAddressSource"]; } else { $this->_propDict["emailAddressSource"] = new UserEmailSource($this->_propDict["emailAddressSource"]); return $this->_propDict["emailAddressSource"]; } } return null; } /** * Sets the emailAddressSource * Email attribute that is picked from AAD and injected into this profile before installing on the device. Possible values are: userPrincipalName, primarySmtpAddress. * * @param UserEmailSource $val The emailAddressSource * * @return Windows10EasEmailProfileConfiguration */ public function setEmailAddressSource($val) { $this->_propDict["emailAddressSource"] = $val; return $this; } /** * Gets the emailSyncSchedule * Email sync schedule. Possible values are: userDefined, asMessagesArrive, manual, fifteenMinutes, thirtyMinutes, sixtyMinutes, basedOnMyUsage. * * @return EmailSyncSchedule|null The emailSyncSchedule */ public function getEmailSyncSchedule() { if (array_key_exists("emailSyncSchedule", $this->_propDict)) { if (is_a($this->_propDict["emailSyncSchedule"], "\Beta\Microsoft\Graph\Model\EmailSyncSchedule") || is_null($this->_propDict["emailSyncSchedule"])) { return $this->_propDict["emailSyncSchedule"]; } else { $this->_propDict["emailSyncSchedule"] = new EmailSyncSchedule($this->_propDict["emailSyncSchedule"]); return $this->_propDict["emailSyncSchedule"]; } } return null; } /** * Sets the emailSyncSchedule * Email sync schedule. Possible values are: userDefined, asMessagesArrive, manual, fifteenMinutes, thirtyMinutes, sixtyMinutes, basedOnMyUsage. * * @param EmailSyncSchedule $val The emailSyncSchedule * * @return Windows10EasEmailProfileConfiguration */ public function setEmailSyncSchedule($val) { $this->_propDict["emailSyncSchedule"] = $val; return $this; } /** * Gets the hostName * Exchange location that (URL) that the native mail app connects to. * * @return string|null The hostName */ public function getHostName() { if (array_key_exists("hostName", $this->_propDict)) { return $this->_propDict["hostName"]; } else { return null; } } /** * Sets the hostName * Exchange location that (URL) that the native mail app connects to. * * @param string $val The hostName * * @return Windows10EasEmailProfileConfiguration */ public function setHostName($val) { $this->_propDict["hostName"] = $val; return $this; } /** * Gets the requireSsl * Indicates whether or not to use SSL. * * @return bool|null The requireSsl */ public function getRequireSsl() { if (array_key_exists("requireSsl", $this->_propDict)) { return $this->_propDict["requireSsl"]; } else { return null; } } /** * Sets the requireSsl * Indicates whether or not to use SSL. * * @param bool $val The requireSsl * * @return Windows10EasEmailProfileConfiguration */ public function setRequireSsl($val) { $this->_propDict["requireSsl"] = boolval($val); return $this; } /** * Gets the syncCalendar * Whether or not to sync the calendar. * * @return bool|null The syncCalendar */ public function getSyncCalendar() { if (array_key_exists("syncCalendar", $this->_propDict)) { return $this->_propDict["syncCalendar"]; } else { return null; } } /** * Sets the syncCalendar * Whether or not to sync the calendar. * * @param bool $val The syncCalendar * * @return Windows10EasEmailProfileConfiguration */ public function setSyncCalendar($val) { $this->_propDict["syncCalendar"] = boolval($val); return $this; } /** * Gets the syncContacts * Whether or not to sync contacts. * * @return bool|null The syncContacts */ public function getSyncContacts() { if (array_key_exists("syncContacts", $this->_propDict)) { return $this->_propDict["syncContacts"]; } else { return null; } } /** * Sets the syncContacts * Whether or not to sync contacts. * * @param bool $val The syncContacts * * @return Windows10EasEmailProfileConfiguration */ public function setSyncContacts($val) { $this->_propDict["syncContacts"] = boolval($val); return $this; } /** * Gets the syncTasks * Whether or not to sync tasks. * * @return bool|null The syncTasks */ public function getSyncTasks() { if (array_key_exists("syncTasks", $this->_propDict)) { return $this->_propDict["syncTasks"]; } else { return null; } } /** * Sets the syncTasks * Whether or not to sync tasks. * * @param bool $val The syncTasks * * @return Windows10EasEmailProfileConfiguration */ public function setSyncTasks($val) { $this->_propDict["syncTasks"] = boolval($val); return $this; } }