0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class WindowsScheduledTask.

Information about a Windows scheduled task.

Generated from protobuf message `google.backstory.WindowsScheduledTask`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ author` | `string` The account name that authored or last modified the scheduled task. |
| `↳ virtual_path` | `string` The task's path in the Task Scheduler library. |
| `↳ exit_code` | `int` The result which was returned the last time the registered task was run. |
| `↳ state` | `int` The operation state of the task. |
| `↳ logon_type` | `int` The logon type of the task. |
| `↳ task_actions` | `array<WindowsScheduledTask\TaskAction>` The actions of the scheduled task. |
| `↳ task_triggers` | `array<WindowsScheduledTask\TaskTrigger>` The triggers of the scheduled task. |

### getAuthor

The account name that authored or last modified the scheduled task.

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

### setAuthor

The account name that authored or last modified the scheduled task.

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

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

### getVirtualPath

The task's path in the Task Scheduler library.

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

### setVirtualPath

The task's path in the Task Scheduler library.

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

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

### getExitCode

The result which was returned the last time the registered task was run.

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

### setExitCode

The result which was returned the last time the registered task was run.

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

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

### getState

The operation state of the task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TaskState](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskState.md.txt). |

### setState

The operation state of the task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TaskState](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskState.md.txt). |

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

### getLogonType

The logon type of the task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [TaskLogonType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskLogonType.md.txt). |

### setLogonType

The logon type of the task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [TaskLogonType](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.WindowsScheduledTask.TaskLogonType.md.txt). |

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

### getTaskActions

The actions of the scheduled task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<WindowsScheduledTask\TaskAction>` |   |

### setTaskActions

The actions of the scheduled task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<WindowsScheduledTask\TaskAction>` |

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

### getTaskTriggers

The triggers of the scheduled task.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<WindowsScheduledTask\TaskTrigger>` |   |

### setTaskTriggers

The triggers of the scheduled task.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<WindowsScheduledTask\TaskTrigger>` |

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