# Google Cloud Dms V1 Client - Class MachineConfig (2.1.3)

2.1.3 (latest) 2.1.2 2.0.6 1.5.5 1.4.2 1.3.0 1.2.1 1.1.0 1.0.5 Reference documentation and code samples for the Google Cloud Dms V1 Client class MachineConfig.

MachineConfig describes the configuration of a machine.

Generated from protobuf message `google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig`

## Namespace

Google \\ Cloud \\ CloudDms \\ V1 \\ AlloyDbSettings \\ PrimaryInstanceSettings

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ cpu_count` | `int` The number of CPU's in the VM instance. |

### getCpuCount

The number of CPU's in the VM instance.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setCpuCount

The number of CPU's in the VM instance.

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

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