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 ImportJob extends \Google\Model
21{
22  protected $attestationType = KeyOperationAttestation::class;
23  protected $attestationDataType = '';
24  /**
25   * @var string
26   */
27  public $createTime;
28  /**
29   * @var string
30   */
31  public $expireEventTime;
32  /**
33   * @var string
34   */
35  public $expireTime;
36  /**
37   * @var string
38   */
39  public $generateTime;
40  /**
41   * @var string
42   */
43  public $importMethod;
44  /**
45   * @var string
46   */
47  public $name;
48  /**
49   * @var string
50   */
51  public $protectionLevel;
52  protected $publicKeyType = WrappingPublicKey::class;
53  protected $publicKeyDataType = '';
54  /**
55   * @var string
56   */
57  public $state;
58
59  /**
60   * @param KeyOperationAttestation
61   */
62  public function setAttestation(KeyOperationAttestation $attestation)
63  {
64    $this->attestation = $attestation;
65  }
66  /**
67   * @return KeyOperationAttestation
68   */
69  public function getAttestation()
70  {
71    return $this->attestation;
72  }
73  /**
74   * @param string
75   */
76  public function setCreateTime($createTime)
77  {
78    $this->createTime = $createTime;
79  }
80  /**
81   * @return string
82   */
83  public function getCreateTime()
84  {
85    return $this->createTime;
86  }
87  /**
88   * @param string
89   */
90  public function setExpireEventTime($expireEventTime)
91  {
92    $this->expireEventTime = $expireEventTime;
93  }
94  /**
95   * @return string
96   */
97  public function getExpireEventTime()
98  {
99    return $this->expireEventTime;
100  }
101  /**
102   * @param string
103   */
104  public function setExpireTime($expireTime)
105  {
106    $this->expireTime = $expireTime;
107  }
108  /**
109   * @return string
110   */
111  public function getExpireTime()
112  {
113    return $this->expireTime;
114  }
115  /**
116   * @param string
117   */
118  public function setGenerateTime($generateTime)
119  {
120    $this->generateTime = $generateTime;
121  }
122  /**
123   * @return string
124   */
125  public function getGenerateTime()
126  {
127    return $this->generateTime;
128  }
129  /**
130   * @param string
131   */
132  public function setImportMethod($importMethod)
133  {
134    $this->importMethod = $importMethod;
135  }
136  /**
137   * @return string
138   */
139  public function getImportMethod()
140  {
141    return $this->importMethod;
142  }
143  /**
144   * @param string
145   */
146  public function setName($name)
147  {
148    $this->name = $name;
149  }
150  /**
151   * @return string
152   */
153  public function getName()
154  {
155    return $this->name;
156  }
157  /**
158   * @param string
159   */
160  public function setProtectionLevel($protectionLevel)
161  {
162    $this->protectionLevel = $protectionLevel;
163  }
164  /**
165   * @return string
166   */
167  public function getProtectionLevel()
168  {
169    return $this->protectionLevel;
170  }
171  /**
172   * @param WrappingPublicKey
173   */
174  public function setPublicKey(WrappingPublicKey $publicKey)
175  {
176    $this->publicKey = $publicKey;
177  }
178  /**
179   * @return WrappingPublicKey
180   */
181  public function getPublicKey()
182  {
183    return $this->publicKey;
184  }
185  /**
186   * @param string
187   */
188  public function setState($state)
189  {
190    $this->state = $state;
191  }
192  /**
193   * @return string
194   */
195  public function getState()
196  {
197    return $this->state;
198  }
199}
200
201// Adding a class alias for backwards compatibility with the previous class name.
202class_alias(ImportJob::class, 'Google_Service_CloudKMS_ImportJob');
203