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 ServiceAttachment extends \Google\Collection
21{
22  protected $collection_key = 'natSubnets';
23  protected $connectedEndpointsType = ServiceAttachmentConnectedEndpoint::class;
24  protected $connectedEndpointsDataType = 'array';
25  /**
26   * @var string
27   */
28  public $connectionPreference;
29  protected $consumerAcceptListsType = ServiceAttachmentConsumerProjectLimit::class;
30  protected $consumerAcceptListsDataType = 'array';
31  /**
32   * @var string[]
33   */
34  public $consumerRejectLists;
35  /**
36   * @var string
37   */
38  public $creationTimestamp;
39  /**
40   * @var string
41   */
42  public $description;
43  /**
44   * @var string[]
45   */
46  public $domainNames;
47  /**
48   * @var bool
49   */
50  public $enableProxyProtocol;
51  /**
52   * @var string
53   */
54  public $fingerprint;
55  /**
56   * @var string
57   */
58  public $id;
59  /**
60   * @var string
61   */
62  public $kind;
63  /**
64   * @var string
65   */
66  public $name;
67  /**
68   * @var string[]
69   */
70  public $natSubnets;
71  /**
72   * @var string
73   */
74  public $producerForwardingRule;
75  protected $pscServiceAttachmentIdType = Uint128::class;
76  protected $pscServiceAttachmentIdDataType = '';
77  /**
78   * @var string
79   */
80  public $region;
81  /**
82   * @var string
83   */
84  public $selfLink;
85  /**
86   * @var string
87   */
88  public $targetService;
89
90  /**
91   * @param ServiceAttachmentConnectedEndpoint[]
92   */
93  public function setConnectedEndpoints($connectedEndpoints)
94  {
95    $this->connectedEndpoints = $connectedEndpoints;
96  }
97  /**
98   * @return ServiceAttachmentConnectedEndpoint[]
99   */
100  public function getConnectedEndpoints()
101  {
102    return $this->connectedEndpoints;
103  }
104  /**
105   * @param string
106   */
107  public function setConnectionPreference($connectionPreference)
108  {
109    $this->connectionPreference = $connectionPreference;
110  }
111  /**
112   * @return string
113   */
114  public function getConnectionPreference()
115  {
116    return $this->connectionPreference;
117  }
118  /**
119   * @param ServiceAttachmentConsumerProjectLimit[]
120   */
121  public function setConsumerAcceptLists($consumerAcceptLists)
122  {
123    $this->consumerAcceptLists = $consumerAcceptLists;
124  }
125  /**
126   * @return ServiceAttachmentConsumerProjectLimit[]
127   */
128  public function getConsumerAcceptLists()
129  {
130    return $this->consumerAcceptLists;
131  }
132  /**
133   * @param string[]
134   */
135  public function setConsumerRejectLists($consumerRejectLists)
136  {
137    $this->consumerRejectLists = $consumerRejectLists;
138  }
139  /**
140   * @return string[]
141   */
142  public function getConsumerRejectLists()
143  {
144    return $this->consumerRejectLists;
145  }
146  /**
147   * @param string
148   */
149  public function setCreationTimestamp($creationTimestamp)
150  {
151    $this->creationTimestamp = $creationTimestamp;
152  }
153  /**
154   * @return string
155   */
156  public function getCreationTimestamp()
157  {
158    return $this->creationTimestamp;
159  }
160  /**
161   * @param string
162   */
163  public function setDescription($description)
164  {
165    $this->description = $description;
166  }
167  /**
168   * @return string
169   */
170  public function getDescription()
171  {
172    return $this->description;
173  }
174  /**
175   * @param string[]
176   */
177  public function setDomainNames($domainNames)
178  {
179    $this->domainNames = $domainNames;
180  }
181  /**
182   * @return string[]
183   */
184  public function getDomainNames()
185  {
186    return $this->domainNames;
187  }
188  /**
189   * @param bool
190   */
191  public function setEnableProxyProtocol($enableProxyProtocol)
192  {
193    $this->enableProxyProtocol = $enableProxyProtocol;
194  }
195  /**
196   * @return bool
197   */
198  public function getEnableProxyProtocol()
199  {
200    return $this->enableProxyProtocol;
201  }
202  /**
203   * @param string
204   */
205  public function setFingerprint($fingerprint)
206  {
207    $this->fingerprint = $fingerprint;
208  }
209  /**
210   * @return string
211   */
212  public function getFingerprint()
213  {
214    return $this->fingerprint;
215  }
216  /**
217   * @param string
218   */
219  public function setId($id)
220  {
221    $this->id = $id;
222  }
223  /**
224   * @return string
225   */
226  public function getId()
227  {
228    return $this->id;
229  }
230  /**
231   * @param string
232   */
233  public function setKind($kind)
234  {
235    $this->kind = $kind;
236  }
237  /**
238   * @return string
239   */
240  public function getKind()
241  {
242    return $this->kind;
243  }
244  /**
245   * @param string
246   */
247  public function setName($name)
248  {
249    $this->name = $name;
250  }
251  /**
252   * @return string
253   */
254  public function getName()
255  {
256    return $this->name;
257  }
258  /**
259   * @param string[]
260   */
261  public function setNatSubnets($natSubnets)
262  {
263    $this->natSubnets = $natSubnets;
264  }
265  /**
266   * @return string[]
267   */
268  public function getNatSubnets()
269  {
270    return $this->natSubnets;
271  }
272  /**
273   * @param string
274   */
275  public function setProducerForwardingRule($producerForwardingRule)
276  {
277    $this->producerForwardingRule = $producerForwardingRule;
278  }
279  /**
280   * @return string
281   */
282  public function getProducerForwardingRule()
283  {
284    return $this->producerForwardingRule;
285  }
286  /**
287   * @param Uint128
288   */
289  public function setPscServiceAttachmentId(Uint128 $pscServiceAttachmentId)
290  {
291    $this->pscServiceAttachmentId = $pscServiceAttachmentId;
292  }
293  /**
294   * @return Uint128
295   */
296  public function getPscServiceAttachmentId()
297  {
298    return $this->pscServiceAttachmentId;
299  }
300  /**
301   * @param string
302   */
303  public function setRegion($region)
304  {
305    $this->region = $region;
306  }
307  /**
308   * @return string
309   */
310  public function getRegion()
311  {
312    return $this->region;
313  }
314  /**
315   * @param string
316   */
317  public function setSelfLink($selfLink)
318  {
319    $this->selfLink = $selfLink;
320  }
321  /**
322   * @return string
323   */
324  public function getSelfLink()
325  {
326    return $this->selfLink;
327  }
328  /**
329   * @param string
330   */
331  public function setTargetService($targetService)
332  {
333    $this->targetService = $targetService;
334  }
335  /**
336   * @return string
337   */
338  public function getTargetService()
339  {
340    return $this->targetService;
341  }
342}
343
344// Adding a class alias for backwards compatibility with the previous class name.
345class_alias(ServiceAttachment::class, 'Google_Service_Compute_ServiceAttachment');
346