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\CloudKMS;
19
20class CryptoKeyVersion extends \Google\Model
21{
22  /**
23   * @var string
24   */
25  public $algorithm;
26  protected $attestationType = KeyOperationAttestation::class;
27  protected $attestationDataType = '';
28  /**
29   * @var string
30   */
31  public $createTime;
32  /**
33   * @var string
34   */
35  public $destroyEventTime;
36  /**
37   * @var string
38   */
39  public $destroyTime;
40  protected $externalProtectionLevelOptionsType = ExternalProtectionLevelOptions::class;
41  protected $externalProtectionLevelOptionsDataType = '';
42  /**
43   * @var string
44   */
45  public $generateTime;
46  /**
47   * @var string
48   */
49  public $importFailureReason;
50  /**
51   * @var string
52   */
53  public $importJob;
54  /**
55   * @var string
56   */
57  public $importTime;
58  /**
59   * @var string
60   */
61  public $name;
62  /**
63   * @var string
64   */
65  public $protectionLevel;
66  /**
67   * @var bool
68   */
69  public $reimportEligible;
70  /**
71   * @var string
72   */
73  public $state;
74
75  /**
76   * @param string
77   */
78  public function setAlgorithm($algorithm)
79  {
80    $this->algorithm = $algorithm;
81  }
82  /**
83   * @return string
84   */
85  public function getAlgorithm()
86  {
87    return $this->algorithm;
88  }
89  /**
90   * @param KeyOperationAttestation
91   */
92  public function setAttestation(KeyOperationAttestation $attestation)
93  {
94    $this->attestation = $attestation;
95  }
96  /**
97   * @return KeyOperationAttestation
98   */
99  public function getAttestation()
100  {
101    return $this->attestation;
102  }
103  /**
104   * @param string
105   */
106  public function setCreateTime($createTime)
107  {
108    $this->createTime = $createTime;
109  }
110  /**
111   * @return string
112   */
113  public function getCreateTime()
114  {
115    return $this->createTime;
116  }
117  /**
118   * @param string
119   */
120  public function setDestroyEventTime($destroyEventTime)
121  {
122    $this->destroyEventTime = $destroyEventTime;
123  }
124  /**
125   * @return string
126   */
127  public function getDestroyEventTime()
128  {
129    return $this->destroyEventTime;
130  }
131  /**
132   * @param string
133   */
134  public function setDestroyTime($destroyTime)
135  {
136    $this->destroyTime = $destroyTime;
137  }
138  /**
139   * @return string
140   */
141  public function getDestroyTime()
142  {
143    return $this->destroyTime;
144  }
145  /**
146   * @param ExternalProtectionLevelOptions
147   */
148  public function setExternalProtectionLevelOptions(ExternalProtectionLevelOptions $externalProtectionLevelOptions)
149  {
150    $this->externalProtectionLevelOptions = $externalProtectionLevelOptions;
151  }
152  /**
153   * @return ExternalProtectionLevelOptions
154   */
155  public function getExternalProtectionLevelOptions()
156  {
157    return $this->externalProtectionLevelOptions;
158  }
159  /**
160   * @param string
161   */
162  public function setGenerateTime($generateTime)
163  {
164    $this->generateTime = $generateTime;
165  }
166  /**
167   * @return string
168   */
169  public function getGenerateTime()
170  {
171    return $this->generateTime;
172  }
173  /**
174   * @param string
175   */
176  public function setImportFailureReason($importFailureReason)
177  {
178    $this->importFailureReason = $importFailureReason;
179  }
180  /**
181   * @return string
182   */
183  public function getImportFailureReason()
184  {
185    return $this->importFailureReason;
186  }
187  /**
188   * @param string
189   */
190  public function setImportJob($importJob)
191  {
192    $this->importJob = $importJob;
193  }
194  /**
195   * @return string
196   */
197  public function getImportJob()
198  {
199    return $this->importJob;
200  }
201  /**
202   * @param string
203   */
204  public function setImportTime($importTime)
205  {
206    $this->importTime = $importTime;
207  }
208  /**
209   * @return string
210   */
211  public function getImportTime()
212  {
213    return $this->importTime;
214  }
215  /**
216   * @param string
217   */
218  public function setName($name)
219  {
220    $this->name = $name;
221  }
222  /**
223   * @return string
224   */
225  public function getName()
226  {
227    return $this->name;
228  }
229  /**
230   * @param string
231   */
232  public function setProtectionLevel($protectionLevel)
233  {
234    $this->protectionLevel = $protectionLevel;
235  }
236  /**
237   * @return string
238   */
239  public function getProtectionLevel()
240  {
241    return $this->protectionLevel;
242  }
243  /**
244   * @param bool
245   */
246  public function setReimportEligible($reimportEligible)
247  {
248    $this->reimportEligible = $reimportEligible;
249  }
250  /**
251   * @return bool
252   */
253  public function getReimportEligible()
254  {
255    return $this->reimportEligible;
256  }
257  /**
258   * @param string
259   */
260  public function setState($state)
261  {
262    $this->state = $state;
263  }
264  /**
265   * @return string
266   */
267  public function getState()
268  {
269    return $this->state;
270  }
271}
272
273// Adding a class alias for backwards compatibility with the previous class name.
274class_alias(CryptoKeyVersion::class, 'Google_Service_CloudKMS_CryptoKeyVersion');
275