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\VMMigrationService;
19
20class MigratingVm extends \Google\Collection
21{
22  protected $collection_key = 'recentCutoverJobs';
23  protected $awsSourceVmDetailsType = AwsSourceVmDetails::class;
24  protected $awsSourceVmDetailsDataType = '';
25  protected $computeEngineTargetDefaultsType = ComputeEngineTargetDefaults::class;
26  protected $computeEngineTargetDefaultsDataType = '';
27  /**
28   * @var string
29   */
30  public $createTime;
31  protected $currentSyncInfoType = ReplicationCycle::class;
32  protected $currentSyncInfoDataType = '';
33  /**
34   * @var string
35   */
36  public $description;
37  /**
38   * @var string
39   */
40  public $displayName;
41  protected $errorType = Status::class;
42  protected $errorDataType = '';
43  /**
44   * @var string
45   */
46  public $group;
47  /**
48   * @var string[]
49   */
50  public $labels;
51  protected $lastSyncType = ReplicationSync::class;
52  protected $lastSyncDataType = '';
53  /**
54   * @var string
55   */
56  public $name;
57  protected $policyType = SchedulePolicy::class;
58  protected $policyDataType = '';
59  protected $recentCloneJobsType = CloneJob::class;
60  protected $recentCloneJobsDataType = 'array';
61  protected $recentCutoverJobsType = CutoverJob::class;
62  protected $recentCutoverJobsDataType = 'array';
63  /**
64   * @var string
65   */
66  public $sourceVmId;
67  /**
68   * @var string
69   */
70  public $state;
71  /**
72   * @var string
73   */
74  public $stateTime;
75  /**
76   * @var string
77   */
78  public $updateTime;
79
80  /**
81   * @param AwsSourceVmDetails
82   */
83  public function setAwsSourceVmDetails(AwsSourceVmDetails $awsSourceVmDetails)
84  {
85    $this->awsSourceVmDetails = $awsSourceVmDetails;
86  }
87  /**
88   * @return AwsSourceVmDetails
89   */
90  public function getAwsSourceVmDetails()
91  {
92    return $this->awsSourceVmDetails;
93  }
94  /**
95   * @param ComputeEngineTargetDefaults
96   */
97  public function setComputeEngineTargetDefaults(ComputeEngineTargetDefaults $computeEngineTargetDefaults)
98  {
99    $this->computeEngineTargetDefaults = $computeEngineTargetDefaults;
100  }
101  /**
102   * @return ComputeEngineTargetDefaults
103   */
104  public function getComputeEngineTargetDefaults()
105  {
106    return $this->computeEngineTargetDefaults;
107  }
108  /**
109   * @param string
110   */
111  public function setCreateTime($createTime)
112  {
113    $this->createTime = $createTime;
114  }
115  /**
116   * @return string
117   */
118  public function getCreateTime()
119  {
120    return $this->createTime;
121  }
122  /**
123   * @param ReplicationCycle
124   */
125  public function setCurrentSyncInfo(ReplicationCycle $currentSyncInfo)
126  {
127    $this->currentSyncInfo = $currentSyncInfo;
128  }
129  /**
130   * @return ReplicationCycle
131   */
132  public function getCurrentSyncInfo()
133  {
134    return $this->currentSyncInfo;
135  }
136  /**
137   * @param string
138   */
139  public function setDescription($description)
140  {
141    $this->description = $description;
142  }
143  /**
144   * @return string
145   */
146  public function getDescription()
147  {
148    return $this->description;
149  }
150  /**
151   * @param string
152   */
153  public function setDisplayName($displayName)
154  {
155    $this->displayName = $displayName;
156  }
157  /**
158   * @return string
159   */
160  public function getDisplayName()
161  {
162    return $this->displayName;
163  }
164  /**
165   * @param Status
166   */
167  public function setError(Status $error)
168  {
169    $this->error = $error;
170  }
171  /**
172   * @return Status
173   */
174  public function getError()
175  {
176    return $this->error;
177  }
178  /**
179   * @param string
180   */
181  public function setGroup($group)
182  {
183    $this->group = $group;
184  }
185  /**
186   * @return string
187   */
188  public function getGroup()
189  {
190    return $this->group;
191  }
192  /**
193   * @param string[]
194   */
195  public function setLabels($labels)
196  {
197    $this->labels = $labels;
198  }
199  /**
200   * @return string[]
201   */
202  public function getLabels()
203  {
204    return $this->labels;
205  }
206  /**
207   * @param ReplicationSync
208   */
209  public function setLastSync(ReplicationSync $lastSync)
210  {
211    $this->lastSync = $lastSync;
212  }
213  /**
214   * @return ReplicationSync
215   */
216  public function getLastSync()
217  {
218    return $this->lastSync;
219  }
220  /**
221   * @param string
222   */
223  public function setName($name)
224  {
225    $this->name = $name;
226  }
227  /**
228   * @return string
229   */
230  public function getName()
231  {
232    return $this->name;
233  }
234  /**
235   * @param SchedulePolicy
236   */
237  public function setPolicy(SchedulePolicy $policy)
238  {
239    $this->policy = $policy;
240  }
241  /**
242   * @return SchedulePolicy
243   */
244  public function getPolicy()
245  {
246    return $this->policy;
247  }
248  /**
249   * @param CloneJob[]
250   */
251  public function setRecentCloneJobs($recentCloneJobs)
252  {
253    $this->recentCloneJobs = $recentCloneJobs;
254  }
255  /**
256   * @return CloneJob[]
257   */
258  public function getRecentCloneJobs()
259  {
260    return $this->recentCloneJobs;
261  }
262  /**
263   * @param CutoverJob[]
264   */
265  public function setRecentCutoverJobs($recentCutoverJobs)
266  {
267    $this->recentCutoverJobs = $recentCutoverJobs;
268  }
269  /**
270   * @return CutoverJob[]
271   */
272  public function getRecentCutoverJobs()
273  {
274    return $this->recentCutoverJobs;
275  }
276  /**
277   * @param string
278   */
279  public function setSourceVmId($sourceVmId)
280  {
281    $this->sourceVmId = $sourceVmId;
282  }
283  /**
284   * @return string
285   */
286  public function getSourceVmId()
287  {
288    return $this->sourceVmId;
289  }
290  /**
291   * @param string
292   */
293  public function setState($state)
294  {
295    $this->state = $state;
296  }
297  /**
298   * @return string
299   */
300  public function getState()
301  {
302    return $this->state;
303  }
304  /**
305   * @param string
306   */
307  public function setStateTime($stateTime)
308  {
309    $this->stateTime = $stateTime;
310  }
311  /**
312   * @return string
313   */
314  public function getStateTime()
315  {
316    return $this->stateTime;
317  }
318  /**
319   * @param string
320   */
321  public function setUpdateTime($updateTime)
322  {
323    $this->updateTime = $updateTime;
324  }
325  /**
326   * @return string
327   */
328  public function getUpdateTime()
329  {
330    return $this->updateTime;
331  }
332}
333
334// Adding a class alias for backwards compatibility with the previous class name.
335class_alias(MigratingVm::class, 'Google_Service_VMMigrationService_MigratingVm');
336