# Google Cloud Vm Migration V1 Client - Class AppliedLicense (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class AppliedLicense.

AppliedLicense holds the license data returned by adaptation module report.

Generated from protobuf message `google.cloud.vmmigration.v1.AppliedLicense`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `int` The license type that was used in OS adaptation. |
| `↳ os_license` | `string` The OS license returned from the adaptation module's report. |

### getType

The license type that was used in OS adaptation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AppliedLicense.Type). |

### setType

The license type that was used in OS adaptation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AppliedLicense.Type). |

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

### getOsLicense

The OS license returned from the adaptation module's report.

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

### setOsLicense

The OS license returned from the adaptation module's report.

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

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