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 |
|
---|
18 | namespace Google\Service\BigQueryReservation;
|
---|
19 |
|
---|
20 | class CapacityCommitment extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $commitmentEndTime;
|
---|
26 | /**
|
---|
27 | * @var string
|
---|
28 | */
|
---|
29 | public $commitmentStartTime;
|
---|
30 | /**
|
---|
31 | * @var string
|
---|
32 | */
|
---|
33 | public $edition;
|
---|
34 | protected $failureStatusType = Status::class;
|
---|
35 | protected $failureStatusDataType = '';
|
---|
36 | /**
|
---|
37 | * @var bool
|
---|
38 | */
|
---|
39 | public $isFlatRate;
|
---|
40 | /**
|
---|
41 | * @var bool
|
---|
42 | */
|
---|
43 | public $multiRegionAuxiliary;
|
---|
44 | /**
|
---|
45 | * @var string
|
---|
46 | */
|
---|
47 | public $name;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $plan;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $renewalPlan;
|
---|
56 | /**
|
---|
57 | * @var string
|
---|
58 | */
|
---|
59 | public $slotCount;
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $state;
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @param string
|
---|
67 | */
|
---|
68 | public function setCommitmentEndTime($commitmentEndTime)
|
---|
69 | {
|
---|
70 | $this->commitmentEndTime = $commitmentEndTime;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return string
|
---|
74 | */
|
---|
75 | public function getCommitmentEndTime()
|
---|
76 | {
|
---|
77 | return $this->commitmentEndTime;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param string
|
---|
81 | */
|
---|
82 | public function setCommitmentStartTime($commitmentStartTime)
|
---|
83 | {
|
---|
84 | $this->commitmentStartTime = $commitmentStartTime;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return string
|
---|
88 | */
|
---|
89 | public function getCommitmentStartTime()
|
---|
90 | {
|
---|
91 | return $this->commitmentStartTime;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param string
|
---|
95 | */
|
---|
96 | public function setEdition($edition)
|
---|
97 | {
|
---|
98 | $this->edition = $edition;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return string
|
---|
102 | */
|
---|
103 | public function getEdition()
|
---|
104 | {
|
---|
105 | return $this->edition;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param Status
|
---|
109 | */
|
---|
110 | public function setFailureStatus(Status $failureStatus)
|
---|
111 | {
|
---|
112 | $this->failureStatus = $failureStatus;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return Status
|
---|
116 | */
|
---|
117 | public function getFailureStatus()
|
---|
118 | {
|
---|
119 | return $this->failureStatus;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param bool
|
---|
123 | */
|
---|
124 | public function setIsFlatRate($isFlatRate)
|
---|
125 | {
|
---|
126 | $this->isFlatRate = $isFlatRate;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return bool
|
---|
130 | */
|
---|
131 | public function getIsFlatRate()
|
---|
132 | {
|
---|
133 | return $this->isFlatRate;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param bool
|
---|
137 | */
|
---|
138 | public function setMultiRegionAuxiliary($multiRegionAuxiliary)
|
---|
139 | {
|
---|
140 | $this->multiRegionAuxiliary = $multiRegionAuxiliary;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return bool
|
---|
144 | */
|
---|
145 | public function getMultiRegionAuxiliary()
|
---|
146 | {
|
---|
147 | return $this->multiRegionAuxiliary;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param string
|
---|
151 | */
|
---|
152 | public function setName($name)
|
---|
153 | {
|
---|
154 | $this->name = $name;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return string
|
---|
158 | */
|
---|
159 | public function getName()
|
---|
160 | {
|
---|
161 | return $this->name;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param string
|
---|
165 | */
|
---|
166 | public function setPlan($plan)
|
---|
167 | {
|
---|
168 | $this->plan = $plan;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return string
|
---|
172 | */
|
---|
173 | public function getPlan()
|
---|
174 | {
|
---|
175 | return $this->plan;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param string
|
---|
179 | */
|
---|
180 | public function setRenewalPlan($renewalPlan)
|
---|
181 | {
|
---|
182 | $this->renewalPlan = $renewalPlan;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return string
|
---|
186 | */
|
---|
187 | public function getRenewalPlan()
|
---|
188 | {
|
---|
189 | return $this->renewalPlan;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param string
|
---|
193 | */
|
---|
194 | public function setSlotCount($slotCount)
|
---|
195 | {
|
---|
196 | $this->slotCount = $slotCount;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return string
|
---|
200 | */
|
---|
201 | public function getSlotCount()
|
---|
202 | {
|
---|
203 | return $this->slotCount;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param string
|
---|
207 | */
|
---|
208 | public function setState($state)
|
---|
209 | {
|
---|
210 | $this->state = $state;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return string
|
---|
214 | */
|
---|
215 | public function getState()
|
---|
216 | {
|
---|
217 | return $this->state;
|
---|
218 | }
|
---|
219 | }
|
---|
220 |
|
---|
221 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
222 | class_alias(CapacityCommitment::class, 'Google_Service_BigQueryReservation_CapacityCommitment');
|
---|