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\CloudBillingBudget;
19
20class GoogleCloudBillingBudgetsV1Budget extends \Google\Collection
21{
22  protected $collection_key = 'thresholdRules';
23  protected $amountType = GoogleCloudBillingBudgetsV1BudgetAmount::class;
24  protected $amountDataType = '';
25  protected $budgetFilterType = GoogleCloudBillingBudgetsV1Filter::class;
26  protected $budgetFilterDataType = '';
27  /**
28   * @var string
29   */
30  public $displayName;
31  /**
32   * @var string
33   */
34  public $etag;
35  /**
36   * @var string
37   */
38  public $name;
39  protected $notificationsRuleType = GoogleCloudBillingBudgetsV1NotificationsRule::class;
40  protected $notificationsRuleDataType = '';
41  protected $thresholdRulesType = GoogleCloudBillingBudgetsV1ThresholdRule::class;
42  protected $thresholdRulesDataType = 'array';
43
44  /**
45   * @param GoogleCloudBillingBudgetsV1BudgetAmount
46   */
47  public function setAmount(GoogleCloudBillingBudgetsV1BudgetAmount $amount)
48  {
49    $this->amount = $amount;
50  }
51  /**
52   * @return GoogleCloudBillingBudgetsV1BudgetAmount
53   */
54  public function getAmount()
55  {
56    return $this->amount;
57  }
58  /**
59   * @param GoogleCloudBillingBudgetsV1Filter
60   */
61  public function setBudgetFilter(GoogleCloudBillingBudgetsV1Filter $budgetFilter)
62  {
63    $this->budgetFilter = $budgetFilter;
64  }
65  /**
66   * @return GoogleCloudBillingBudgetsV1Filter
67   */
68  public function getBudgetFilter()
69  {
70    return $this->budgetFilter;
71  }
72  /**
73   * @param string
74   */
75  public function setDisplayName($displayName)
76  {
77    $this->displayName = $displayName;
78  }
79  /**
80   * @return string
81   */
82  public function getDisplayName()
83  {
84    return $this->displayName;
85  }
86  /**
87   * @param string
88   */
89  public function setEtag($etag)
90  {
91    $this->etag = $etag;
92  }
93  /**
94   * @return string
95   */
96  public function getEtag()
97  {
98    return $this->etag;
99  }
100  /**
101   * @param string
102   */
103  public function setName($name)
104  {
105    $this->name = $name;
106  }
107  /**
108   * @return string
109   */
110  public function getName()
111  {
112    return $this->name;
113  }
114  /**
115   * @param GoogleCloudBillingBudgetsV1NotificationsRule
116   */
117  public function setNotificationsRule(GoogleCloudBillingBudgetsV1NotificationsRule $notificationsRule)
118  {
119    $this->notificationsRule = $notificationsRule;
120  }
121  /**
122   * @return GoogleCloudBillingBudgetsV1NotificationsRule
123   */
124  public function getNotificationsRule()
125  {
126    return $this->notificationsRule;
127  }
128  /**
129   * @param GoogleCloudBillingBudgetsV1ThresholdRule[]
130   */
131  public function setThresholdRules($thresholdRules)
132  {
133    $this->thresholdRules = $thresholdRules;
134  }
135  /**
136   * @return GoogleCloudBillingBudgetsV1ThresholdRule[]
137   */
138  public function getThresholdRules()
139  {
140    return $this->thresholdRules;
141  }
142}
143
144// Adding a class alias for backwards compatibility with the previous class name.
145class_alias(GoogleCloudBillingBudgetsV1Budget::class, 'Google_Service_CloudBillingBudget_GoogleCloudBillingBudgetsV1Budget');
146