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\AlertCenter;
19
20class RuleViolationInfo extends \Google\Collection
21{
22  protected $collection_key = 'triggeredActionTypes';
23  /**
24   * @var string
25   */
26  public $dataSource;
27  protected $matchInfoType = MatchInfo::class;
28  protected $matchInfoDataType = 'array';
29  /**
30   * @var string[]
31   */
32  public $recipients;
33  protected $resourceInfoType = ResourceInfo::class;
34  protected $resourceInfoDataType = '';
35  protected $ruleInfoType = RuleInfo::class;
36  protected $ruleInfoDataType = '';
37  /**
38   * @var string[]
39   */
40  public $suppressedActionTypes;
41  /**
42   * @var string
43   */
44  public $trigger;
45  protected $triggeredActionInfoType = ActionInfo::class;
46  protected $triggeredActionInfoDataType = 'array';
47  /**
48   * @var string[]
49   */
50  public $triggeredActionTypes;
51  /**
52   * @var string
53   */
54  public $triggeringUserEmail;
55
56  /**
57   * @param string
58   */
59  public function setDataSource($dataSource)
60  {
61    $this->dataSource = $dataSource;
62  }
63  /**
64   * @return string
65   */
66  public function getDataSource()
67  {
68    return $this->dataSource;
69  }
70  /**
71   * @param MatchInfo[]
72   */
73  public function setMatchInfo($matchInfo)
74  {
75    $this->matchInfo = $matchInfo;
76  }
77  /**
78   * @return MatchInfo[]
79   */
80  public function getMatchInfo()
81  {
82    return $this->matchInfo;
83  }
84  /**
85   * @param string[]
86   */
87  public function setRecipients($recipients)
88  {
89    $this->recipients = $recipients;
90  }
91  /**
92   * @return string[]
93   */
94  public function getRecipients()
95  {
96    return $this->recipients;
97  }
98  /**
99   * @param ResourceInfo
100   */
101  public function setResourceInfo(ResourceInfo $resourceInfo)
102  {
103    $this->resourceInfo = $resourceInfo;
104  }
105  /**
106   * @return ResourceInfo
107   */
108  public function getResourceInfo()
109  {
110    return $this->resourceInfo;
111  }
112  /**
113   * @param RuleInfo
114   */
115  public function setRuleInfo(RuleInfo $ruleInfo)
116  {
117    $this->ruleInfo = $ruleInfo;
118  }
119  /**
120   * @return RuleInfo
121   */
122  public function getRuleInfo()
123  {
124    return $this->ruleInfo;
125  }
126  /**
127   * @param string[]
128   */
129  public function setSuppressedActionTypes($suppressedActionTypes)
130  {
131    $this->suppressedActionTypes = $suppressedActionTypes;
132  }
133  /**
134   * @return string[]
135   */
136  public function getSuppressedActionTypes()
137  {
138    return $this->suppressedActionTypes;
139  }
140  /**
141   * @param string
142   */
143  public function setTrigger($trigger)
144  {
145    $this->trigger = $trigger;
146  }
147  /**
148   * @return string
149   */
150  public function getTrigger()
151  {
152    return $this->trigger;
153  }
154  /**
155   * @param ActionInfo[]
156   */
157  public function setTriggeredActionInfo($triggeredActionInfo)
158  {
159    $this->triggeredActionInfo = $triggeredActionInfo;
160  }
161  /**
162   * @return ActionInfo[]
163   */
164  public function getTriggeredActionInfo()
165  {
166    return $this->triggeredActionInfo;
167  }
168  /**
169   * @param string[]
170   */
171  public function setTriggeredActionTypes($triggeredActionTypes)
172  {
173    $this->triggeredActionTypes = $triggeredActionTypes;
174  }
175  /**
176   * @return string[]
177   */
178  public function getTriggeredActionTypes()
179  {
180    return $this->triggeredActionTypes;
181  }
182  /**
183   * @param string
184   */
185  public function setTriggeringUserEmail($triggeringUserEmail)
186  {
187    $this->triggeringUserEmail = $triggeringUserEmail;
188  }
189  /**
190   * @return string
191   */
192  public function getTriggeringUserEmail()
193  {
194    return $this->triggeringUserEmail;
195  }
196}
197
198// Adding a class alias for backwards compatibility with the previous class name.
199class_alias(RuleViolationInfo::class, 'Google_Service_AlertCenter_RuleViolationInfo');
200