# Google Cloud OsConfig V1 Client - Class PatchJobInstanceDetails (2.2.3)

2.2.3 (latest) 2.2.2 2.1.0 2.0.5 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud OsConfig V1 Client class PatchJobInstanceDetails.

Patch details for a VM instance. For more information about reviewing VM
instance details, see
[Listing all VM instance details for a specific patch
job](https://cloud.google.com/compute/docs/os-patch-management/manage-patch-jobs#list-instance-details).

Generated from protobuf message `google.cloud.osconfig.v1.PatchJobInstanceDetails`

## Namespace

Google \\ Cloud \\ OsConfig \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getName

The instance name in the form `projects/*/zones/*/instances/*`

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

### setName

The instance name in the form `projects/*/zones/*/instances/*`

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

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

### getInstanceSystemId

The unique identifier for the instance. This identifier is
defined by the server.

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

### setInstanceSystemId

The unique identifier for the instance. This identifier is
defined by the server.

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

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

### getState

Current state of instance patch.

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

### setState

Current state of instance patch.

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

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

### getFailureReason

If the patch fails, this field provides the reason.

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

### setFailureReason

If the patch fails, this field provides the reason.

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

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

### getAttemptCount

The number of times the agent that the agent attempts to apply the patch.

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

### setAttemptCount

The number of times the agent that the agent attempts to apply the patch.

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

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