# CloudFilesVariable

A named document-generation variable, holding a string value or a nested collection.

> Kind: Apex type · Updated: 2026-07-03

CloudFilesVariable represents a named document-generation variable. Each entry of the cloudFilesVariables field on Types.DocGenRequestInput is a CloudFilesVariable. A variable holds either a string value or a nested collection of further variables.

## Fields

### Fields
| Parameter | Type | Required | Description |
|---|---|---|---|
| key | String | optional | Variable name. |
| valueString | String | optional | Value as a string. |
| valueCollection | List&lt;CloudFilesVariable&gt; | optional | Nested collection value — a list of CloudFilesVariable entries for structured variables. |
