forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAutomaticRepliesSetting.php
More file actions
216 lines (206 loc) · 7.41 KB
/
Copy pathAutomaticRepliesSetting.php
File metadata and controls
216 lines (206 loc) · 7.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AutomaticRepliesSetting File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 1.4.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* AutomaticRepliesSetting class
*
* @category Model
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 1.4.0
* @link https://graph.microsoft.io/
*/
class AutomaticRepliesSetting extends Entity
{
/**
* Gets the status
* Configurations status for automatic replies. The possible values are: disabled, alwaysEnabled, scheduled.
*
* @return AutomaticRepliesStatus The status
*/
public function getStatus()
{
if (array_key_exists("status", $this->_propDict)) {
if (is_a($this->_propDict["status"], "Microsoft\Graph\Model\AutomaticRepliesStatus")) {
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;
}
/**
* Gets 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.
*
* @return ExternalAudienceScope The externalAudience
*/
public function getExternalAudience()
{
if (array_key_exists("externalAudience", $this->_propDict)) {
if (is_a($this->_propDict["externalAudience"], "Microsoft\Graph\Model\ExternalAudienceScope")) {
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 scheduledStartDateTime
* The date and time that automatic replies are set to begin, if Status is set to Scheduled.
*
* @return DateTimeTimeZone The scheduledStartDateTime
*/
public function getScheduledStartDateTime()
{
if (array_key_exists("scheduledStartDateTime", $this->_propDict)) {
if (is_a($this->_propDict["scheduledStartDateTime"], "Microsoft\Graph\Model\DateTimeTimeZone")) {
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 scheduledEndDateTime
* The date and time that automatic replies are set to end, if Status is set to Scheduled.
*
* @return DateTimeTimeZone The scheduledEndDateTime
*/
public function getScheduledEndDateTime()
{
if (array_key_exists("scheduledEndDateTime", $this->_propDict)) {
if (is_a($this->_propDict["scheduledEndDateTime"], "Microsoft\Graph\Model\DateTimeTimeZone")) {
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 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 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 externalReplyMessage
* The automatic reply to send to the specified external audience, if Status is AlwaysEnabled or Scheduled.
*
* @return string 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;
}
}