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 NetworkPeering extends \Google\Model
21{
22  /**
23   * @var bool
24   */
25  public $autoCreateRoutes;
26  /**
27   * @var bool
28   */
29  public $exchangeSubnetRoutes;
30  /**
31   * @var bool
32   */
33  public $exportCustomRoutes;
34  /**
35   * @var bool
36   */
37  public $exportSubnetRoutesWithPublicIp;
38  /**
39   * @var bool
40   */
41  public $importCustomRoutes;
42  /**
43   * @var bool
44   */
45  public $importSubnetRoutesWithPublicIp;
46  /**
47   * @var string
48   */
49  public $name;
50  /**
51   * @var string
52   */
53  public $network;
54  /**
55   * @var int
56   */
57  public $peerMtu;
58  /**
59   * @var string
60   */
61  public $state;
62  /**
63   * @var string
64   */
65  public $stateDetails;
66
67  /**
68   * @param bool
69   */
70  public function setAutoCreateRoutes($autoCreateRoutes)
71  {
72    $this->autoCreateRoutes = $autoCreateRoutes;
73  }
74  /**
75   * @return bool
76   */
77  public function getAutoCreateRoutes()
78  {
79    return $this->autoCreateRoutes;
80  }
81  /**
82   * @param bool
83   */
84  public function setExchangeSubnetRoutes($exchangeSubnetRoutes)
85  {
86    $this->exchangeSubnetRoutes = $exchangeSubnetRoutes;
87  }
88  /**
89   * @return bool
90   */
91  public function getExchangeSubnetRoutes()
92  {
93    return $this->exchangeSubnetRoutes;
94  }
95  /**
96   * @param bool
97   */
98  public function setExportCustomRoutes($exportCustomRoutes)
99  {
100    $this->exportCustomRoutes = $exportCustomRoutes;
101  }
102  /**
103   * @return bool
104   */
105  public function getExportCustomRoutes()
106  {
107    return $this->exportCustomRoutes;
108  }
109  /**
110   * @param bool
111   */
112  public function setExportSubnetRoutesWithPublicIp($exportSubnetRoutesWithPublicIp)
113  {
114    $this->exportSubnetRoutesWithPublicIp = $exportSubnetRoutesWithPublicIp;
115  }
116  /**
117   * @return bool
118   */
119  public function getExportSubnetRoutesWithPublicIp()
120  {
121    return $this->exportSubnetRoutesWithPublicIp;
122  }
123  /**
124   * @param bool
125   */
126  public function setImportCustomRoutes($importCustomRoutes)
127  {
128    $this->importCustomRoutes = $importCustomRoutes;
129  }
130  /**
131   * @return bool
132   */
133  public function getImportCustomRoutes()
134  {
135    return $this->importCustomRoutes;
136  }
137  /**
138   * @param bool
139   */
140  public function setImportSubnetRoutesWithPublicIp($importSubnetRoutesWithPublicIp)
141  {
142    $this->importSubnetRoutesWithPublicIp = $importSubnetRoutesWithPublicIp;
143  }
144  /**
145   * @return bool
146   */
147  public function getImportSubnetRoutesWithPublicIp()
148  {
149    return $this->importSubnetRoutesWithPublicIp;
150  }
151  /**
152   * @param string
153   */
154  public function setName($name)
155  {
156    $this->name = $name;
157  }
158  /**
159   * @return string
160   */
161  public function getName()
162  {
163    return $this->name;
164  }
165  /**
166   * @param string
167   */
168  public function setNetwork($network)
169  {
170    $this->network = $network;
171  }
172  /**
173   * @return string
174   */
175  public function getNetwork()
176  {
177    return $this->network;
178  }
179  /**
180   * @param int
181   */
182  public function setPeerMtu($peerMtu)
183  {
184    $this->peerMtu = $peerMtu;
185  }
186  /**
187   * @return int
188   */
189  public function getPeerMtu()
190  {
191    return $this->peerMtu;
192  }
193  /**
194   * @param string
195   */
196  public function setState($state)
197  {
198    $this->state = $state;
199  }
200  /**
201   * @return string
202   */
203  public function getState()
204  {
205    return $this->state;
206  }
207  /**
208   * @param string
209   */
210  public function setStateDetails($stateDetails)
211  {
212    $this->stateDetails = $stateDetails;
213  }
214  /**
215   * @return string
216   */
217  public function getStateDetails()
218  {
219    return $this->stateDetails;
220  }
221}
222
223// Adding a class alias for backwards compatibility with the previous class name.
224class_alias(NetworkPeering::class, 'Google_Service_Compute_NetworkPeering');
225