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\CloudMemorystoreforMemcached;
19
20class Instance extends \Google\Collection
21{
22  protected $collection_key = 'zones';
23  /**
24   * @var string
25   */
26  public $authorizedNetwork;
27  /**
28   * @var string
29   */
30  public $createTime;
31  /**
32   * @var string
33   */
34  public $discoveryEndpoint;
35  /**
36   * @var string
37   */
38  public $displayName;
39  protected $instanceMessagesType = InstanceMessage::class;
40  protected $instanceMessagesDataType = 'array';
41  /**
42   * @var string[]
43   */
44  public $labels;
45  protected $maintenancePolicyType = GoogleCloudMemcacheV1MaintenancePolicy::class;
46  protected $maintenancePolicyDataType = '';
47  protected $maintenanceScheduleType = MaintenanceSchedule::class;
48  protected $maintenanceScheduleDataType = '';
49  /**
50   * @var string
51   */
52  public $memcacheFullVersion;
53  protected $memcacheNodesType = Node::class;
54  protected $memcacheNodesDataType = 'array';
55  /**
56   * @var string
57   */
58  public $memcacheVersion;
59  /**
60   * @var string
61   */
62  public $name;
63  protected $nodeConfigType = NodeConfig::class;
64  protected $nodeConfigDataType = '';
65  /**
66   * @var int
67   */
68  public $nodeCount;
69  protected $parametersType = MemcacheParameters::class;
70  protected $parametersDataType = '';
71  /**
72   * @var string
73   */
74  public $state;
75  /**
76   * @var string
77   */
78  public $updateTime;
79  /**
80   * @var string[]
81   */
82  public $zones;
83
84  /**
85   * @param string
86   */
87  public function setAuthorizedNetwork($authorizedNetwork)
88  {
89    $this->authorizedNetwork = $authorizedNetwork;
90  }
91  /**
92   * @return string
93   */
94  public function getAuthorizedNetwork()
95  {
96    return $this->authorizedNetwork;
97  }
98  /**
99   * @param string
100   */
101  public function setCreateTime($createTime)
102  {
103    $this->createTime = $createTime;
104  }
105  /**
106   * @return string
107   */
108  public function getCreateTime()
109  {
110    return $this->createTime;
111  }
112  /**
113   * @param string
114   */
115  public function setDiscoveryEndpoint($discoveryEndpoint)
116  {
117    $this->discoveryEndpoint = $discoveryEndpoint;
118  }
119  /**
120   * @return string
121   */
122  public function getDiscoveryEndpoint()
123  {
124    return $this->discoveryEndpoint;
125  }
126  /**
127   * @param string
128   */
129  public function setDisplayName($displayName)
130  {
131    $this->displayName = $displayName;
132  }
133  /**
134   * @return string
135   */
136  public function getDisplayName()
137  {
138    return $this->displayName;
139  }
140  /**
141   * @param InstanceMessage[]
142   */
143  public function setInstanceMessages($instanceMessages)
144  {
145    $this->instanceMessages = $instanceMessages;
146  }
147  /**
148   * @return InstanceMessage[]
149   */
150  public function getInstanceMessages()
151  {
152    return $this->instanceMessages;
153  }
154  /**
155   * @param string[]
156   */
157  public function setLabels($labels)
158  {
159    $this->labels = $labels;
160  }
161  /**
162   * @return string[]
163   */
164  public function getLabels()
165  {
166    return $this->labels;
167  }
168  /**
169   * @param GoogleCloudMemcacheV1MaintenancePolicy
170   */
171  public function setMaintenancePolicy(GoogleCloudMemcacheV1MaintenancePolicy $maintenancePolicy)
172  {
173    $this->maintenancePolicy = $maintenancePolicy;
174  }
175  /**
176   * @return GoogleCloudMemcacheV1MaintenancePolicy
177   */
178  public function getMaintenancePolicy()
179  {
180    return $this->maintenancePolicy;
181  }
182  /**
183   * @param MaintenanceSchedule
184   */
185  public function setMaintenanceSchedule(MaintenanceSchedule $maintenanceSchedule)
186  {
187    $this->maintenanceSchedule = $maintenanceSchedule;
188  }
189  /**
190   * @return MaintenanceSchedule
191   */
192  public function getMaintenanceSchedule()
193  {
194    return $this->maintenanceSchedule;
195  }
196  /**
197   * @param string
198   */
199  public function setMemcacheFullVersion($memcacheFullVersion)
200  {
201    $this->memcacheFullVersion = $memcacheFullVersion;
202  }
203  /**
204   * @return string
205   */
206  public function getMemcacheFullVersion()
207  {
208    return $this->memcacheFullVersion;
209  }
210  /**
211   * @param Node[]
212   */
213  public function setMemcacheNodes($memcacheNodes)
214  {
215    $this->memcacheNodes = $memcacheNodes;
216  }
217  /**
218   * @return Node[]
219   */
220  public function getMemcacheNodes()
221  {
222    return $this->memcacheNodes;
223  }
224  /**
225   * @param string
226   */
227  public function setMemcacheVersion($memcacheVersion)
228  {
229    $this->memcacheVersion = $memcacheVersion;
230  }
231  /**
232   * @return string
233   */
234  public function getMemcacheVersion()
235  {
236    return $this->memcacheVersion;
237  }
238  /**
239   * @param string
240   */
241  public function setName($name)
242  {
243    $this->name = $name;
244  }
245  /**
246   * @return string
247   */
248  public function getName()
249  {
250    return $this->name;
251  }
252  /**
253   * @param NodeConfig
254   */
255  public function setNodeConfig(NodeConfig $nodeConfig)
256  {
257    $this->nodeConfig = $nodeConfig;
258  }
259  /**
260   * @return NodeConfig
261   */
262  public function getNodeConfig()
263  {
264    return $this->nodeConfig;
265  }
266  /**
267   * @param int
268   */
269  public function setNodeCount($nodeCount)
270  {
271    $this->nodeCount = $nodeCount;
272  }
273  /**
274   * @return int
275   */
276  public function getNodeCount()
277  {
278    return $this->nodeCount;
279  }
280  /**
281   * @param MemcacheParameters
282   */
283  public function setParameters(MemcacheParameters $parameters)
284  {
285    $this->parameters = $parameters;
286  }
287  /**
288   * @return MemcacheParameters
289   */
290  public function getParameters()
291  {
292    return $this->parameters;
293  }
294  /**
295   * @param string
296   */
297  public function setState($state)
298  {
299    $this->state = $state;
300  }
301  /**
302   * @return string
303   */
304  public function getState()
305  {
306    return $this->state;
307  }
308  /**
309   * @param string
310   */
311  public function setUpdateTime($updateTime)
312  {
313    $this->updateTime = $updateTime;
314  }
315  /**
316   * @return string
317   */
318  public function getUpdateTime()
319  {
320    return $this->updateTime;
321  }
322  /**
323   * @param string[]
324   */
325  public function setZones($zones)
326  {
327    $this->zones = $zones;
328  }
329  /**
330   * @return string[]
331   */
332  public function getZones()
333  {
334    return $this->zones;
335  }
336}
337
338// Adding a class alias for backwards compatibility with the previous class name.
339class_alias(Instance::class, 'Google_Service_CloudMemorystoreforMemcached_Instance');
340