1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Monitoring;
19
20class UptimeCheckConfig extends \Google\Collection
21{
22  protected $collection_key = 'selectedRegions';
23  /**
24   * @var string
25   */
26  public $checkerType;
27  protected $contentMatchersType = ContentMatcher::class;
28  protected $contentMatchersDataType = 'array';
29  /**
30   * @var string
31   */
32  public $displayName;
33  protected $httpCheckType = HttpCheck::class;
34  protected $httpCheckDataType = '';
35  protected $internalCheckersType = InternalChecker::class;
36  protected $internalCheckersDataType = 'array';
37  /**
38   * @var bool
39   */
40  public $isInternal;
41  protected $monitoredResourceType = MonitoredResource::class;
42  protected $monitoredResourceDataType = '';
43  /**
44   * @var string
45   */
46  public $name;
47  /**
48   * @var string
49   */
50  public $period;
51  protected $resourceGroupType = ResourceGroup::class;
52  protected $resourceGroupDataType = '';
53  /**
54   * @var string[]
55   */
56  public $selectedRegions;
57  protected $tcpCheckType = TcpCheck::class;
58  protected $tcpCheckDataType = '';
59  /**
60   * @var string
61   */
62  public $timeout;
63
64  /**
65   * @param string
66   */
67  public function setCheckerType($checkerType)
68  {
69    $this->checkerType = $checkerType;
70  }
71  /**
72   * @return string
73   */
74  public function getCheckerType()
75  {
76    return $this->checkerType;
77  }
78  /**
79   * @param ContentMatcher[]
80   */
81  public function setContentMatchers($contentMatchers)
82  {
83    $this->contentMatchers = $contentMatchers;
84  }
85  /**
86   * @return ContentMatcher[]
87   */
88  public function getContentMatchers()
89  {
90    return $this->contentMatchers;
91  }
92  /**
93   * @param string
94   */
95  public function setDisplayName($displayName)
96  {
97    $this->displayName = $displayName;
98  }
99  /**
100   * @return string
101   */
102  public function getDisplayName()
103  {
104    return $this->displayName;
105  }
106  /**
107   * @param HttpCheck
108   */
109  public function setHttpCheck(HttpCheck $httpCheck)
110  {
111    $this->httpCheck = $httpCheck;
112  }
113  /**
114   * @return HttpCheck
115   */
116  public function getHttpCheck()
117  {
118    return $this->httpCheck;
119  }
120  /**
121   * @param InternalChecker[]
122   */
123  public function setInternalCheckers($internalCheckers)
124  {
125    $this->internalCheckers = $internalCheckers;
126  }
127  /**
128   * @return InternalChecker[]
129   */
130  public function getInternalCheckers()
131  {
132    return $this->internalCheckers;
133  }
134  /**
135   * @param bool
136   */
137  public function setIsInternal($isInternal)
138  {
139    $this->isInternal = $isInternal;
140  }
141  /**
142   * @return bool
143   */
144  public function getIsInternal()
145  {
146    return $this->isInternal;
147  }
148  /**
149   * @param MonitoredResource
150   */
151  public function setMonitoredResource(MonitoredResource $monitoredResource)
152  {
153    $this->monitoredResource = $monitoredResource;
154  }
155  /**
156   * @return MonitoredResource
157   */
158  public function getMonitoredResource()
159  {
160    return $this->monitoredResource;
161  }
162  /**
163   * @param string
164   */
165  public function setName($name)
166  {
167    $this->name = $name;
168  }
169  /**
170   * @return string
171   */
172  public function getName()
173  {
174    return $this->name;
175  }
176  /**
177   * @param string
178   */
179  public function setPeriod($period)
180  {
181    $this->period = $period;
182  }
183  /**
184   * @return string
185   */
186  public function getPeriod()
187  {
188    return $this->period;
189  }
190  /**
191   * @param ResourceGroup
192   */
193  public function setResourceGroup(ResourceGroup $resourceGroup)
194  {
195    $this->resourceGroup = $resourceGroup;
196  }
197  /**
198   * @return ResourceGroup
199   */
200  public function getResourceGroup()
201  {
202    return $this->resourceGroup;
203  }
204  /**
205   * @param string[]
206   */
207  public function setSelectedRegions($selectedRegions)
208  {
209    $this->selectedRegions = $selectedRegions;
210  }
211  /**
212   * @return string[]
213   */
214  public function getSelectedRegions()
215  {
216    return $this->selectedRegions;
217  }
218  /**
219   * @param TcpCheck
220   */
221  public function setTcpCheck(TcpCheck $tcpCheck)
222  {
223    $this->tcpCheck = $tcpCheck;
224  }
225  /**
226   * @return TcpCheck
227   */
228  public function getTcpCheck()
229  {
230    return $this->tcpCheck;
231  }
232  /**
233   * @param string
234   */
235  public function setTimeout($timeout)
236  {
237    $this->timeout = $timeout;
238  }
239  /**
240   * @return string
241   */
242  public function getTimeout()
243  {
244    return $this->timeout;
245  }
246}
247
248// Adding a class alias for backwards compatibility with the previous class name.
249class_alias(UptimeCheckConfig::class, 'Google_Service_Monitoring_UptimeCheckConfig');
250