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 AlertPolicy extends \Google\Collection
21{
22  protected $collection_key = 'notificationChannels';
23  protected $alertStrategyType = AlertStrategy::class;
24  protected $alertStrategyDataType = '';
25  /**
26   * @var string
27   */
28  public $combiner;
29  protected $conditionsType = Condition::class;
30  protected $conditionsDataType = 'array';
31  protected $creationRecordType = MutationRecord::class;
32  protected $creationRecordDataType = '';
33  /**
34   * @var string
35   */
36  public $displayName;
37  protected $documentationType = Documentation::class;
38  protected $documentationDataType = '';
39  /**
40   * @var bool
41   */
42  public $enabled;
43  protected $mutationRecordType = MutationRecord::class;
44  protected $mutationRecordDataType = '';
45  /**
46   * @var string
47   */
48  public $name;
49  /**
50   * @var string[]
51   */
52  public $notificationChannels;
53  /**
54   * @var string[]
55   */
56  public $userLabels;
57  protected $validityType = Status::class;
58  protected $validityDataType = '';
59
60  /**
61   * @param AlertStrategy
62   */
63  public function setAlertStrategy(AlertStrategy $alertStrategy)
64  {
65    $this->alertStrategy = $alertStrategy;
66  }
67  /**
68   * @return AlertStrategy
69   */
70  public function getAlertStrategy()
71  {
72    return $this->alertStrategy;
73  }
74  /**
75   * @param string
76   */
77  public function setCombiner($combiner)
78  {
79    $this->combiner = $combiner;
80  }
81  /**
82   * @return string
83   */
84  public function getCombiner()
85  {
86    return $this->combiner;
87  }
88  /**
89   * @param Condition[]
90   */
91  public function setConditions($conditions)
92  {
93    $this->conditions = $conditions;
94  }
95  /**
96   * @return Condition[]
97   */
98  public function getConditions()
99  {
100    return $this->conditions;
101  }
102  /**
103   * @param MutationRecord
104   */
105  public function setCreationRecord(MutationRecord $creationRecord)
106  {
107    $this->creationRecord = $creationRecord;
108  }
109  /**
110   * @return MutationRecord
111   */
112  public function getCreationRecord()
113  {
114    return $this->creationRecord;
115  }
116  /**
117   * @param string
118   */
119  public function setDisplayName($displayName)
120  {
121    $this->displayName = $displayName;
122  }
123  /**
124   * @return string
125   */
126  public function getDisplayName()
127  {
128    return $this->displayName;
129  }
130  /**
131   * @param Documentation
132   */
133  public function setDocumentation(Documentation $documentation)
134  {
135    $this->documentation = $documentation;
136  }
137  /**
138   * @return Documentation
139   */
140  public function getDocumentation()
141  {
142    return $this->documentation;
143  }
144  /**
145   * @param bool
146   */
147  public function setEnabled($enabled)
148  {
149    $this->enabled = $enabled;
150  }
151  /**
152   * @return bool
153   */
154  public function getEnabled()
155  {
156    return $this->enabled;
157  }
158  /**
159   * @param MutationRecord
160   */
161  public function setMutationRecord(MutationRecord $mutationRecord)
162  {
163    $this->mutationRecord = $mutationRecord;
164  }
165  /**
166   * @return MutationRecord
167   */
168  public function getMutationRecord()
169  {
170    return $this->mutationRecord;
171  }
172  /**
173   * @param string
174   */
175  public function setName($name)
176  {
177    $this->name = $name;
178  }
179  /**
180   * @return string
181   */
182  public function getName()
183  {
184    return $this->name;
185  }
186  /**
187   * @param string[]
188   */
189  public function setNotificationChannels($notificationChannels)
190  {
191    $this->notificationChannels = $notificationChannels;
192  }
193  /**
194   * @return string[]
195   */
196  public function getNotificationChannels()
197  {
198    return $this->notificationChannels;
199  }
200  /**
201   * @param string[]
202   */
203  public function setUserLabels($userLabels)
204  {
205    $this->userLabels = $userLabels;
206  }
207  /**
208   * @return string[]
209   */
210  public function getUserLabels()
211  {
212    return $this->userLabels;
213  }
214  /**
215   * @param Status
216   */
217  public function setValidity(Status $validity)
218  {
219    $this->validity = $validity;
220  }
221  /**
222   * @return Status
223   */
224  public function getValidity()
225  {
226    return $this->validity;
227  }
228}
229
230// Adding a class alias for backwards compatibility with the previous class name.
231class_alias(AlertPolicy::class, 'Google_Service_Monitoring_AlertPolicy');
232