# Google Cloud Vm Migration V1 Client - Class ShieldedInstanceConfig (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 ShieldedInstanceConfig.

Shielded instance configuration.

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

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ secure_boot` | `int` Optional. Defines whether the instance created by the machine image has Secure Boot enabled. This can be set to true only if the image boot option is EFI. |
| `↳ enable_vtpm` | `bool` Optional. Defines whether the instance created by the machine image has vTPM enabled. This can be set to true only if the image boot option is EFI. |
| `↳ enable_integrity_monitoring` | `bool` Optional. Defines whether the instance created by the machine image has integrity monitoring enabled. This can be set to true only if the image boot option is EFI, and vTPM is enabled. |

### getSecureBoot

Optional. Defines whether the instance created by the machine image has
Secure Boot enabled. This can be set to true only if the image boot option
is EFI.

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

### setSecureBoot

Optional. Defines whether the instance created by the machine image has
Secure Boot enabled. This can be set to true only if the image boot option
is EFI.

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

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

### getEnableVtpm

Optional. Defines whether the instance created by the machine image has
vTPM enabled. This can be set to true only if the image boot option is EFI.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableVtpm

Optional. Defines whether the instance created by the machine image has
vTPM enabled. This can be set to true only if the image boot option is EFI.

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

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

### getEnableIntegrityMonitoring

Optional. Defines whether the instance created by the machine image has
integrity monitoring enabled. This can be set to true only if the image
boot option is EFI, and vTPM is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setEnableIntegrityMonitoring

Optional. Defines whether the instance created by the machine image has
integrity monitoring enabled. This can be set to true only if the image
boot option is EFI, and vTPM is enabled.

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

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