# Google Cloud Migration Center V1 Client - Class VmwareDiskConfig (1.2.3)

1.2.3 (latest) 1.2.2 1.1.2 1.0.3 0.4.5 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Migration Center V1 Client class VmwareDiskConfig.

VMware disk config details.

Generated from protobuf message `google.cloud.migrationcenter.v1.VmwareDiskConfig`

## Namespace

Google \\ Cloud \\ MigrationCenter \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ backing_type` | `int` VMDK backing type. |
| `↳ shared` | `bool` Is VMDK shared with other VMs. |
| `↳ vmdk_mode` | `int` VMDK disk mode. |
| `↳ rdm_compatibility` | `int` RDM compatibility mode. |

### getBackingType

VMDK backing type.

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

### setBackingType

VMDK backing type.

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

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

### getShared

Is VMDK shared with other VMs.

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

### setShared

Is VMDK shared with other VMs.

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

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

### getVmdkMode

VMDK disk mode.

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

### setVmdkMode

VMDK disk mode.

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

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

### getRdmCompatibility

RDM compatibility mode.

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

### setRdmCompatibility

RDM compatibility mode.

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

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