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\Compute;
19
20class Route extends \Google\Collection
21{
22  protected $collection_key = 'warnings';
23  protected $asPathsType = RouteAsPath::class;
24  protected $asPathsDataType = 'array';
25  /**
26   * @var string
27   */
28  public $creationTimestamp;
29  /**
30   * @var string
31   */
32  public $description;
33  /**
34   * @var string
35   */
36  public $destRange;
37  /**
38   * @var string
39   */
40  public $id;
41  /**
42   * @var string
43   */
44  public $kind;
45  /**
46   * @var string
47   */
48  public $name;
49  /**
50   * @var string
51   */
52  public $network;
53  /**
54   * @var string
55   */
56  public $nextHopGateway;
57  /**
58   * @var string
59   */
60  public $nextHopIlb;
61  /**
62   * @var string
63   */
64  public $nextHopInstance;
65  /**
66   * @var string
67   */
68  public $nextHopIp;
69  /**
70   * @var string
71   */
72  public $nextHopNetwork;
73  /**
74   * @var string
75   */
76  public $nextHopPeering;
77  /**
78   * @var string
79   */
80  public $nextHopVpnTunnel;
81  /**
82   * @var string
83   */
84  public $priority;
85  /**
86   * @var string
87   */
88  public $routeStatus;
89  /**
90   * @var string
91   */
92  public $routeType;
93  /**
94   * @var string
95   */
96  public $selfLink;
97  /**
98   * @var string[]
99   */
100  public $tags;
101  protected $warningsType = RouteWarnings::class;
102  protected $warningsDataType = 'array';
103
104  /**
105   * @param RouteAsPath[]
106   */
107  public function setAsPaths($asPaths)
108  {
109    $this->asPaths = $asPaths;
110  }
111  /**
112   * @return RouteAsPath[]
113   */
114  public function getAsPaths()
115  {
116    return $this->asPaths;
117  }
118  /**
119   * @param string
120   */
121  public function setCreationTimestamp($creationTimestamp)
122  {
123    $this->creationTimestamp = $creationTimestamp;
124  }
125  /**
126   * @return string
127   */
128  public function getCreationTimestamp()
129  {
130    return $this->creationTimestamp;
131  }
132  /**
133   * @param string
134   */
135  public function setDescription($description)
136  {
137    $this->description = $description;
138  }
139  /**
140   * @return string
141   */
142  public function getDescription()
143  {
144    return $this->description;
145  }
146  /**
147   * @param string
148   */
149  public function setDestRange($destRange)
150  {
151    $this->destRange = $destRange;
152  }
153  /**
154   * @return string
155   */
156  public function getDestRange()
157  {
158    return $this->destRange;
159  }
160  /**
161   * @param string
162   */
163  public function setId($id)
164  {
165    $this->id = $id;
166  }
167  /**
168   * @return string
169   */
170  public function getId()
171  {
172    return $this->id;
173  }
174  /**
175   * @param string
176   */
177  public function setKind($kind)
178  {
179    $this->kind = $kind;
180  }
181  /**
182   * @return string
183   */
184  public function getKind()
185  {
186    return $this->kind;
187  }
188  /**
189   * @param string
190   */
191  public function setName($name)
192  {
193    $this->name = $name;
194  }
195  /**
196   * @return string
197   */
198  public function getName()
199  {
200    return $this->name;
201  }
202  /**
203   * @param string
204   */
205  public function setNetwork($network)
206  {
207    $this->network = $network;
208  }
209  /**
210   * @return string
211   */
212  public function getNetwork()
213  {
214    return $this->network;
215  }
216  /**
217   * @param string
218   */
219  public function setNextHopGateway($nextHopGateway)
220  {
221    $this->nextHopGateway = $nextHopGateway;
222  }
223  /**
224   * @return string
225   */
226  public function getNextHopGateway()
227  {
228    return $this->nextHopGateway;
229  }
230  /**
231   * @param string
232   */
233  public function setNextHopIlb($nextHopIlb)
234  {
235    $this->nextHopIlb = $nextHopIlb;
236  }
237  /**
238   * @return string
239   */
240  public function getNextHopIlb()
241  {
242    return $this->nextHopIlb;
243  }
244  /**
245   * @param string
246   */
247  public function setNextHopInstance($nextHopInstance)
248  {
249    $this->nextHopInstance = $nextHopInstance;
250  }
251  /**
252   * @return string
253   */
254  public function getNextHopInstance()
255  {
256    return $this->nextHopInstance;
257  }
258  /**
259   * @param string
260   */
261  public function setNextHopIp($nextHopIp)
262  {
263    $this->nextHopIp = $nextHopIp;
264  }
265  /**
266   * @return string
267   */
268  public function getNextHopIp()
269  {
270    return $this->nextHopIp;
271  }
272  /**
273   * @param string
274   */
275  public function setNextHopNetwork($nextHopNetwork)
276  {
277    $this->nextHopNetwork = $nextHopNetwork;
278  }
279  /**
280   * @return string
281   */
282  public function getNextHopNetwork()
283  {
284    return $this->nextHopNetwork;
285  }
286  /**
287   * @param string
288   */
289  public function setNextHopPeering($nextHopPeering)
290  {
291    $this->nextHopPeering = $nextHopPeering;
292  }
293  /**
294   * @return string
295   */
296  public function getNextHopPeering()
297  {
298    return $this->nextHopPeering;
299  }
300  /**
301   * @param string
302   */
303  public function setNextHopVpnTunnel($nextHopVpnTunnel)
304  {
305    $this->nextHopVpnTunnel = $nextHopVpnTunnel;
306  }
307  /**
308   * @return string
309   */
310  public function getNextHopVpnTunnel()
311  {
312    return $this->nextHopVpnTunnel;
313  }
314  /**
315   * @param string
316   */
317  public function setPriority($priority)
318  {
319    $this->priority = $priority;
320  }
321  /**
322   * @return string
323   */
324  public function getPriority()
325  {
326    return $this->priority;
327  }
328  /**
329   * @param string
330   */
331  public function setRouteStatus($routeStatus)
332  {
333    $this->routeStatus = $routeStatus;
334  }
335  /**
336   * @return string
337   */
338  public function getRouteStatus()
339  {
340    return $this->routeStatus;
341  }
342  /**
343   * @param string
344   */
345  public function setRouteType($routeType)
346  {
347    $this->routeType = $routeType;
348  }
349  /**
350   * @return string
351   */
352  public function getRouteType()
353  {
354    return $this->routeType;
355  }
356  /**
357   * @param string
358   */
359  public function setSelfLink($selfLink)
360  {
361    $this->selfLink = $selfLink;
362  }
363  /**
364   * @return string
365   */
366  public function getSelfLink()
367  {
368    return $this->selfLink;
369  }
370  /**
371   * @param string[]
372   */
373  public function setTags($tags)
374  {
375    $this->tags = $tags;
376  }
377  /**
378   * @return string[]
379   */
380  public function getTags()
381  {
382    return $this->tags;
383  }
384  /**
385   * @param RouteWarnings[]
386   */
387  public function setWarnings($warnings)
388  {
389    $this->warnings = $warnings;
390  }
391  /**
392   * @return RouteWarnings[]
393   */
394  public function getWarnings()
395  {
396    return $this->warnings;
397  }
398}
399
400// Adding a class alias for backwards compatibility with the previous class name.
401class_alias(Route::class, 'Google_Service_Compute_Route');
402