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 Condition extends \Google\Model
21{
22  protected $conditionAbsentType = MetricAbsence::class;
23  protected $conditionAbsentDataType = '';
24  protected $conditionMatchedLogType = LogMatch::class;
25  protected $conditionMatchedLogDataType = '';
26  protected $conditionMonitoringQueryLanguageType = MonitoringQueryLanguageCondition::class;
27  protected $conditionMonitoringQueryLanguageDataType = '';
28  protected $conditionThresholdType = MetricThreshold::class;
29  protected $conditionThresholdDataType = '';
30  /**
31   * @var string
32   */
33  public $displayName;
34  /**
35   * @var string
36   */
37  public $name;
38
39  /**
40   * @param MetricAbsence
41   */
42  public function setConditionAbsent(MetricAbsence $conditionAbsent)
43  {
44    $this->conditionAbsent = $conditionAbsent;
45  }
46  /**
47   * @return MetricAbsence
48   */
49  public function getConditionAbsent()
50  {
51    return $this->conditionAbsent;
52  }
53  /**
54   * @param LogMatch
55   */
56  public function setConditionMatchedLog(LogMatch $conditionMatchedLog)
57  {
58    $this->conditionMatchedLog = $conditionMatchedLog;
59  }
60  /**
61   * @return LogMatch
62   */
63  public function getConditionMatchedLog()
64  {
65    return $this->conditionMatchedLog;
66  }
67  /**
68   * @param MonitoringQueryLanguageCondition
69   */
70  public function setConditionMonitoringQueryLanguage(MonitoringQueryLanguageCondition $conditionMonitoringQueryLanguage)
71  {
72    $this->conditionMonitoringQueryLanguage = $conditionMonitoringQueryLanguage;
73  }
74  /**
75   * @return MonitoringQueryLanguageCondition
76   */
77  public function getConditionMonitoringQueryLanguage()
78  {
79    return $this->conditionMonitoringQueryLanguage;
80  }
81  /**
82   * @param MetricThreshold
83   */
84  public function setConditionThreshold(MetricThreshold $conditionThreshold)
85  {
86    $this->conditionThreshold = $conditionThreshold;
87  }
88  /**
89   * @return MetricThreshold
90   */
91  public function getConditionThreshold()
92  {
93    return $this->conditionThreshold;
94  }
95  /**
96   * @param string
97   */
98  public function setDisplayName($displayName)
99  {
100    $this->displayName = $displayName;
101  }
102  /**
103   * @return string
104   */
105  public function getDisplayName()
106  {
107    return $this->displayName;
108  }
109  /**
110   * @param string
111   */
112  public function setName($name)
113  {
114    $this->name = $name;
115  }
116  /**
117   * @return string
118   */
119  public function getName()
120  {
121    return $this->name;
122  }
123}
124
125// Adding a class alias for backwards compatibility with the previous class name.
126class_alias(Condition::class, 'Google_Service_Monitoring_Condition');
127