_propDict)) { if (is_a($this->_propDict["externalAudience"], "\Microsoft\Graph\Model\ExternalAudienceScope") || is_null($this->_propDict["externalAudience"])) { return $this->_propDict["externalAudience"]; } else { $this->_propDict["externalAudience"] = new ExternalAudienceScope($this->_propDict["externalAudience"]); return $this->_propDict["externalAudience"]; } } return null; } /** * Sets the externalAudience * The set of audience external to the signed-in user's organization who will receive the ExternalReplyMessage, if Status is AlwaysEnabled or Scheduled. The possible values are: none, contactsOnly, all. * * @param ExternalAudienceScope $val The value to assign to the externalAudience * * @return AutomaticRepliesSetting The AutomaticRepliesSetting */ public function setExternalAudience($val) { $this->_propDict["externalAudience"] = $val; return $this; } /** * Gets the externalReplyMessage * The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled. * * @return string|null The externalReplyMessage */ public function getExternalReplyMessage() { if (array_key_exists("externalReplyMessage", $this->_propDict)) { return $this->_propDict["externalReplyMessage"]; } else { return null; } } /** * Sets the externalReplyMessage * The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled. * * @param string $val The value of the externalReplyMessage * * @return AutomaticRepliesSetting */ public function setExternalReplyMessage($val) { $this->_propDict["externalReplyMessage"] = $val; return $this; } /** * Gets the internalReplyMessage * The automatic reply to send to the audience internal to the signed-in user's organization, if Status is AlwaysEnabled or Scheduled. * * @return string|null The internalReplyMessage */ public function getInternalReplyMessage() { if (array_key_exists("internalReplyMessage", $this->_propDict)) { return $this->_propDict["internalReplyMessage"]; } else { return null; } } /** * Sets the internalReplyMessage * The automatic reply to send to the audience internal to the signed-in user's organization, if Status is AlwaysEnabled or Scheduled. * * @param string $val The value of the internalReplyMessage * * @return AutomaticRepliesSetting */ public function setInternalReplyMessage($val) { $this->_propDict["internalReplyMessage"] = $val; return $this; } /** * Gets the scheduledEndDateTime * The date and time that automatic replies are set to end, if Status is set to Scheduled. * * @return DateTimeTimeZone|null The scheduledEndDateTime */ public function getScheduledEndDateTime() { if (array_key_exists("scheduledEndDateTime", $this->_propDict)) { if (is_a($this->_propDict["scheduledEndDateTime"], "\Microsoft\Graph\Model\DateTimeTimeZone") || is_null($this->_propDict["scheduledEndDateTime"])) { return $this->_propDict["scheduledEndDateTime"]; } else { $this->_propDict["scheduledEndDateTime"] = new DateTimeTimeZone($this->_propDict["scheduledEndDateTime"]); return $this->_propDict["scheduledEndDateTime"]; } } return null; } /** * Sets the scheduledEndDateTime * The date and time that automatic replies are set to end, if Status is set to Scheduled. * * @param DateTimeTimeZone $val The value to assign to the scheduledEndDateTime * * @return AutomaticRepliesSetting The AutomaticRepliesSetting */ public function setScheduledEndDateTime($val) { $this->_propDict["scheduledEndDateTime"] = $val; return $this; } /** * Gets the scheduledStartDateTime * The date and time that automatic replies are set to begin, if Status is set to Scheduled. * * @return DateTimeTimeZone|null The scheduledStartDateTime */ public function getScheduledStartDateTime() { if (array_key_exists("scheduledStartDateTime", $this->_propDict)) { if (is_a($this->_propDict["scheduledStartDateTime"], "\Microsoft\Graph\Model\DateTimeTimeZone") || is_null($this->_propDict["scheduledStartDateTime"])) { return $this->_propDict["scheduledStartDateTime"]; } else { $this->_propDict["scheduledStartDateTime"] = new DateTimeTimeZone($this->_propDict["scheduledStartDateTime"]); return $this->_propDict["scheduledStartDateTime"]; } } return null; } /** * Sets the scheduledStartDateTime * The date and time that automatic replies are set to begin, if Status is set to Scheduled. * * @param DateTimeTimeZone $val The value to assign to the scheduledStartDateTime * * @return AutomaticRepliesSetting The AutomaticRepliesSetting */ public function setScheduledStartDateTime($val) { $this->_propDict["scheduledStartDateTime"] = $val; return $this; } /** * Gets the status * Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled. * * @return AutomaticRepliesStatus|null The status */ public function getStatus() { if (array_key_exists("status", $this->_propDict)) { if (is_a($this->_propDict["status"], "\Microsoft\Graph\Model\AutomaticRepliesStatus") || is_null($this->_propDict["status"])) { return $this->_propDict["status"]; } else { $this->_propDict["status"] = new AutomaticRepliesStatus($this->_propDict["status"]); return $this->_propDict["status"]; } } return null; } /** * Sets the status * Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled. * * @param AutomaticRepliesStatus $val The value to assign to the status * * @return AutomaticRepliesSetting The AutomaticRepliesSetting */ public function setStatus($val) { $this->_propDict["status"] = $val; return $this; } }