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\GKEHub;
19
20class Membership extends \Google\Model
21{
22  protected $authorityType = Authority::class;
23  protected $authorityDataType = '';
24  /**
25   * @var string
26   */
27  public $createTime;
28  /**
29   * @var string
30   */
31  public $deleteTime;
32  /**
33   * @var string
34   */
35  public $description;
36  protected $endpointType = MembershipEndpoint::class;
37  protected $endpointDataType = '';
38  /**
39   * @var string
40   */
41  public $externalId;
42  /**
43   * @var string[]
44   */
45  public $labels;
46  /**
47   * @var string
48   */
49  public $lastConnectionTime;
50  /**
51   * @var string
52   */
53  public $name;
54  protected $stateType = MembershipState::class;
55  protected $stateDataType = '';
56  /**
57   * @var string
58   */
59  public $uniqueId;
60  /**
61   * @var string
62   */
63  public $updateTime;
64
65  /**
66   * @param Authority
67   */
68  public function setAuthority(Authority $authority)
69  {
70    $this->authority = $authority;
71  }
72  /**
73   * @return Authority
74   */
75  public function getAuthority()
76  {
77    return $this->authority;
78  }
79  /**
80   * @param string
81   */
82  public function setCreateTime($createTime)
83  {
84    $this->createTime = $createTime;
85  }
86  /**
87   * @return string
88   */
89  public function getCreateTime()
90  {
91    return $this->createTime;
92  }
93  /**
94   * @param string
95   */
96  public function setDeleteTime($deleteTime)
97  {
98    $this->deleteTime = $deleteTime;
99  }
100  /**
101   * @return string
102   */
103  public function getDeleteTime()
104  {
105    return $this->deleteTime;
106  }
107  /**
108   * @param string
109   */
110  public function setDescription($description)
111  {
112    $this->description = $description;
113  }
114  /**
115   * @return string
116   */
117  public function getDescription()
118  {
119    return $this->description;
120  }
121  /**
122   * @param MembershipEndpoint
123   */
124  public function setEndpoint(MembershipEndpoint $endpoint)
125  {
126    $this->endpoint = $endpoint;
127  }
128  /**
129   * @return MembershipEndpoint
130   */
131  public function getEndpoint()
132  {
133    return $this->endpoint;
134  }
135  /**
136   * @param string
137   */
138  public function setExternalId($externalId)
139  {
140    $this->externalId = $externalId;
141  }
142  /**
143   * @return string
144   */
145  public function getExternalId()
146  {
147    return $this->externalId;
148  }
149  /**
150   * @param string[]
151   */
152  public function setLabels($labels)
153  {
154    $this->labels = $labels;
155  }
156  /**
157   * @return string[]
158   */
159  public function getLabels()
160  {
161    return $this->labels;
162  }
163  /**
164   * @param string
165   */
166  public function setLastConnectionTime($lastConnectionTime)
167  {
168    $this->lastConnectionTime = $lastConnectionTime;
169  }
170  /**
171   * @return string
172   */
173  public function getLastConnectionTime()
174  {
175    return $this->lastConnectionTime;
176  }
177  /**
178   * @param string
179   */
180  public function setName($name)
181  {
182    $this->name = $name;
183  }
184  /**
185   * @return string
186   */
187  public function getName()
188  {
189    return $this->name;
190  }
191  /**
192   * @param MembershipState
193   */
194  public function setState(MembershipState $state)
195  {
196    $this->state = $state;
197  }
198  /**
199   * @return MembershipState
200   */
201  public function getState()
202  {
203    return $this->state;
204  }
205  /**
206   * @param string
207   */
208  public function setUniqueId($uniqueId)
209  {
210    $this->uniqueId = $uniqueId;
211  }
212  /**
213   * @return string
214   */
215  public function getUniqueId()
216  {
217    return $this->uniqueId;
218  }
219  /**
220   * @param string
221   */
222  public function setUpdateTime($updateTime)
223  {
224    $this->updateTime = $updateTime;
225  }
226  /**
227   * @return string
228   */
229  public function getUpdateTime()
230  {
231    return $this->updateTime;
232  }
233}
234
235// Adding a class alias for backwards compatibility with the previous class name.
236class_alias(Membership::class, 'Google_Service_GKEHub_Membership');
237