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\CloudRedis;
19
20class Cluster extends \Google\Collection
21{
22  protected $collection_key = 'slots';
23  /**
24   * @var string
25   */
26  public $clusterUid;
27  /**
28   * @var string
29   */
30  public $createTime;
31  /**
32   * @var string
33   */
34  public $customerManagedKey;
35  /**
36   * @var int
37   */
38  public $defaultReplicaCount;
39  /**
40   * @var string
41   */
42  public $displayName;
43  protected $endpointsType = Endpoint::class;
44  protected $endpointsDataType = 'array';
45  /**
46   * @var string
47   */
48  public $name;
49  protected $privateServiceConnectType = PrivateServiceConnect::class;
50  protected $privateServiceConnectDataType = '';
51  /**
52   * @var string[]
53   */
54  public $redisConfigs;
55  protected $slotsType = ClusterSlots::class;
56  protected $slotsDataType = 'array';
57  /**
58   * @var string
59   */
60  public $state;
61  /**
62   * @var int
63   */
64  public $totalMemorySizeGb;
65
66  /**
67   * @param string
68   */
69  public function setClusterUid($clusterUid)
70  {
71    $this->clusterUid = $clusterUid;
72  }
73  /**
74   * @return string
75   */
76  public function getClusterUid()
77  {
78    return $this->clusterUid;
79  }
80  /**
81   * @param string
82   */
83  public function setCreateTime($createTime)
84  {
85    $this->createTime = $createTime;
86  }
87  /**
88   * @return string
89   */
90  public function getCreateTime()
91  {
92    return $this->createTime;
93  }
94  /**
95   * @param string
96   */
97  public function setCustomerManagedKey($customerManagedKey)
98  {
99    $this->customerManagedKey = $customerManagedKey;
100  }
101  /**
102   * @return string
103   */
104  public function getCustomerManagedKey()
105  {
106    return $this->customerManagedKey;
107  }
108  /**
109   * @param int
110   */
111  public function setDefaultReplicaCount($defaultReplicaCount)
112  {
113    $this->defaultReplicaCount = $defaultReplicaCount;
114  }
115  /**
116   * @return int
117   */
118  public function getDefaultReplicaCount()
119  {
120    return $this->defaultReplicaCount;
121  }
122  /**
123   * @param string
124   */
125  public function setDisplayName($displayName)
126  {
127    $this->displayName = $displayName;
128  }
129  /**
130   * @return string
131   */
132  public function getDisplayName()
133  {
134    return $this->displayName;
135  }
136  /**
137   * @param Endpoint[]
138   */
139  public function setEndpoints($endpoints)
140  {
141    $this->endpoints = $endpoints;
142  }
143  /**
144   * @return Endpoint[]
145   */
146  public function getEndpoints()
147  {
148    return $this->endpoints;
149  }
150  /**
151   * @param string
152   */
153  public function setName($name)
154  {
155    $this->name = $name;
156  }
157  /**
158   * @return string
159   */
160  public function getName()
161  {
162    return $this->name;
163  }
164  /**
165   * @param PrivateServiceConnect
166   */
167  public function setPrivateServiceConnect(PrivateServiceConnect $privateServiceConnect)
168  {
169    $this->privateServiceConnect = $privateServiceConnect;
170  }
171  /**
172   * @return PrivateServiceConnect
173   */
174  public function getPrivateServiceConnect()
175  {
176    return $this->privateServiceConnect;
177  }
178  /**
179   * @param string[]
180   */
181  public function setRedisConfigs($redisConfigs)
182  {
183    $this->redisConfigs = $redisConfigs;
184  }
185  /**
186   * @return string[]
187   */
188  public function getRedisConfigs()
189  {
190    return $this->redisConfigs;
191  }
192  /**
193   * @param ClusterSlots[]
194   */
195  public function setSlots($slots)
196  {
197    $this->slots = $slots;
198  }
199  /**
200   * @return ClusterSlots[]
201   */
202  public function getSlots()
203  {
204    return $this->slots;
205  }
206  /**
207   * @param string
208   */
209  public function setState($state)
210  {
211    $this->state = $state;
212  }
213  /**
214   * @return string
215   */
216  public function getState()
217  {
218    return $this->state;
219  }
220  /**
221   * @param int
222   */
223  public function setTotalMemorySizeGb($totalMemorySizeGb)
224  {
225    $this->totalMemorySizeGb = $totalMemorySizeGb;
226  }
227  /**
228   * @return int
229   */
230  public function getTotalMemorySizeGb()
231  {
232    return $this->totalMemorySizeGb;
233  }
234}
235
236// Adding a class alias for backwards compatibility with the previous class name.
237class_alias(Cluster::class, 'Google_Service_CloudRedis_Cluster');
238