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\DatabaseMigrationService;
19
20class MigrationJob extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $createTime;
26  /**
27   * @var string
28   */
29  public $destination;
30  protected $destinationDatabaseType = DatabaseType::class;
31  protected $destinationDatabaseDataType = '';
32  /**
33   * @var string
34   */
35  public $displayName;
36  protected $dumpFlagsType = DumpFlags::class;
37  protected $dumpFlagsDataType = '';
38  /**
39   * @var string
40   */
41  public $dumpPath;
42  /**
43   * @var string
44   */
45  public $duration;
46  /**
47   * @var string
48   */
49  public $endTime;
50  protected $errorType = Status::class;
51  protected $errorDataType = '';
52  /**
53   * @var string[]
54   */
55  public $labels;
56  /**
57   * @var string
58   */
59  public $name;
60  /**
61   * @var string
62   */
63  public $phase;
64  protected $reverseSshConnectivityType = ReverseSshConnectivity::class;
65  protected $reverseSshConnectivityDataType = '';
66  /**
67   * @var string
68   */
69  public $source;
70  protected $sourceDatabaseType = DatabaseType::class;
71  protected $sourceDatabaseDataType = '';
72  /**
73   * @var string
74   */
75  public $state;
76  protected $staticIpConnectivityType = StaticIpConnectivity::class;
77  protected $staticIpConnectivityDataType = '';
78  /**
79   * @var string
80   */
81  public $type;
82  /**
83   * @var string
84   */
85  public $updateTime;
86  protected $vpcPeeringConnectivityType = VpcPeeringConnectivity::class;
87  protected $vpcPeeringConnectivityDataType = '';
88
89  /**
90   * @param string
91   */
92  public function setCreateTime($createTime)
93  {
94    $this->createTime = $createTime;
95  }
96  /**
97   * @return string
98   */
99  public function getCreateTime()
100  {
101    return $this->createTime;
102  }
103  /**
104   * @param string
105   */
106  public function setDestination($destination)
107  {
108    $this->destination = $destination;
109  }
110  /**
111   * @return string
112   */
113  public function getDestination()
114  {
115    return $this->destination;
116  }
117  /**
118   * @param DatabaseType
119   */
120  public function setDestinationDatabase(DatabaseType $destinationDatabase)
121  {
122    $this->destinationDatabase = $destinationDatabase;
123  }
124  /**
125   * @return DatabaseType
126   */
127  public function getDestinationDatabase()
128  {
129    return $this->destinationDatabase;
130  }
131  /**
132   * @param string
133   */
134  public function setDisplayName($displayName)
135  {
136    $this->displayName = $displayName;
137  }
138  /**
139   * @return string
140   */
141  public function getDisplayName()
142  {
143    return $this->displayName;
144  }
145  /**
146   * @param DumpFlags
147   */
148  public function setDumpFlags(DumpFlags $dumpFlags)
149  {
150    $this->dumpFlags = $dumpFlags;
151  }
152  /**
153   * @return DumpFlags
154   */
155  public function getDumpFlags()
156  {
157    return $this->dumpFlags;
158  }
159  /**
160   * @param string
161   */
162  public function setDumpPath($dumpPath)
163  {
164    $this->dumpPath = $dumpPath;
165  }
166  /**
167   * @return string
168   */
169  public function getDumpPath()
170  {
171    return $this->dumpPath;
172  }
173  /**
174   * @param string
175   */
176  public function setDuration($duration)
177  {
178    $this->duration = $duration;
179  }
180  /**
181   * @return string
182   */
183  public function getDuration()
184  {
185    return $this->duration;
186  }
187  /**
188   * @param string
189   */
190  public function setEndTime($endTime)
191  {
192    $this->endTime = $endTime;
193  }
194  /**
195   * @return string
196   */
197  public function getEndTime()
198  {
199    return $this->endTime;
200  }
201  /**
202   * @param Status
203   */
204  public function setError(Status $error)
205  {
206    $this->error = $error;
207  }
208  /**
209   * @return Status
210   */
211  public function getError()
212  {
213    return $this->error;
214  }
215  /**
216   * @param string[]
217   */
218  public function setLabels($labels)
219  {
220    $this->labels = $labels;
221  }
222  /**
223   * @return string[]
224   */
225  public function getLabels()
226  {
227    return $this->labels;
228  }
229  /**
230   * @param string
231   */
232  public function setName($name)
233  {
234    $this->name = $name;
235  }
236  /**
237   * @return string
238   */
239  public function getName()
240  {
241    return $this->name;
242  }
243  /**
244   * @param string
245   */
246  public function setPhase($phase)
247  {
248    $this->phase = $phase;
249  }
250  /**
251   * @return string
252   */
253  public function getPhase()
254  {
255    return $this->phase;
256  }
257  /**
258   * @param ReverseSshConnectivity
259   */
260  public function setReverseSshConnectivity(ReverseSshConnectivity $reverseSshConnectivity)
261  {
262    $this->reverseSshConnectivity = $reverseSshConnectivity;
263  }
264  /**
265   * @return ReverseSshConnectivity
266   */
267  public function getReverseSshConnectivity()
268  {
269    return $this->reverseSshConnectivity;
270  }
271  /**
272   * @param string
273   */
274  public function setSource($source)
275  {
276    $this->source = $source;
277  }
278  /**
279   * @return string
280   */
281  public function getSource()
282  {
283    return $this->source;
284  }
285  /**
286   * @param DatabaseType
287   */
288  public function setSourceDatabase(DatabaseType $sourceDatabase)
289  {
290    $this->sourceDatabase = $sourceDatabase;
291  }
292  /**
293   * @return DatabaseType
294   */
295  public function getSourceDatabase()
296  {
297    return $this->sourceDatabase;
298  }
299  /**
300   * @param string
301   */
302  public function setState($state)
303  {
304    $this->state = $state;
305  }
306  /**
307   * @return string
308   */
309  public function getState()
310  {
311    return $this->state;
312  }
313  /**
314   * @param StaticIpConnectivity
315   */
316  public function setStaticIpConnectivity(StaticIpConnectivity $staticIpConnectivity)
317  {
318    $this->staticIpConnectivity = $staticIpConnectivity;
319  }
320  /**
321   * @return StaticIpConnectivity
322   */
323  public function getStaticIpConnectivity()
324  {
325    return $this->staticIpConnectivity;
326  }
327  /**
328   * @param string
329   */
330  public function setType($type)
331  {
332    $this->type = $type;
333  }
334  /**
335   * @return string
336   */
337  public function getType()
338  {
339    return $this->type;
340  }
341  /**
342   * @param string
343   */
344  public function setUpdateTime($updateTime)
345  {
346    $this->updateTime = $updateTime;
347  }
348  /**
349   * @return string
350   */
351  public function getUpdateTime()
352  {
353    return $this->updateTime;
354  }
355  /**
356   * @param VpcPeeringConnectivity
357   */
358  public function setVpcPeeringConnectivity(VpcPeeringConnectivity $vpcPeeringConnectivity)
359  {
360    $this->vpcPeeringConnectivity = $vpcPeeringConnectivity;
361  }
362  /**
363   * @return VpcPeeringConnectivity
364   */
365  public function getVpcPeeringConnectivity()
366  {
367    return $this->vpcPeeringConnectivity;
368  }
369}
370
371// Adding a class alias for backwards compatibility with the previous class name.
372class_alias(MigrationJob::class, 'Google_Service_DatabaseMigrationService_MigrationJob');
373