# Google Cloud Vmware Engine V1 Client - Class HcxActivationKey (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class HcxActivationKey.

HCX activation key. A default key is created during
private cloud provisioning, but this behavior is subject to change
and you should always verify active keys.

Use
[VmwareEngine.ListHcxActivationKeys](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Client.VmwareEngineClient#_Google_Cloud_VmwareEngine_V1_Client_VmwareEngineClient__listHcxActivationKeys__)
to retrieve existing keys and
[VmwareEngine.CreateHcxActivationKey](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.Client.VmwareEngineClient#_Google_Cloud_VmwareEngine_V1_Client_VmwareEngineClient__createHcxActivationKey__)
to create new ones.

Generated from protobuf message `google.cloud.vmwareengine.v1.HcxActivationKey`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The resource name of this HcxActivationKey. Resource names are schemeless URIs that follow the conventions in <https://cloud.google.com/apis/design/resource_names>. For example: `projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key` |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Creation time of HCX activation key. |
| `↳ state` | `int` Output only. State of HCX activation key. |
| `↳ activation_key` | `string` Output only. HCX activation key. |
| `↳ uid` | `string` Output only. System-generated unique identifier for the resource. |

### getName

Output only. The resource name of this HcxActivationKey.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Output only. The resource name of this HcxActivationKey.

Resource names are schemeless URIs that follow the conventions in
<https://cloud.google.com/apis/design/resource_names>.
For example:
`projects/my-project/locations/us-central1/privateClouds/my-cloud/hcxActivationKeys/my-key`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Output only. Creation time of HCX activation key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. Creation time of HCX activation key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. State of HCX activation key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.HcxActivationKey.State). |

### setState

Output only. State of HCX activation key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vmware-engine/latest/V1.HcxActivationKey.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getActivationKey

Output only. HCX activation key.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setActivationKey

Output only. HCX activation key.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getUid

Output only. System-generated unique identifier for the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setUid

Output only. System-generated unique identifier for the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |