Fields

Fields
ParameterDescription
templateId
String
requiredId of the template to render.
variables
Map<String, String>
requiredMerge variables passed to the template as key/value pairs.
documentType
String
requiredOutput document type for the generated file.
destination requiredThe Resource that specifies where the generated document is stored.
params requiredAdditional generation parameters. See Types.DocGenParams.
cloudFilesVariables optionalOptional structured CloudFiles variables. Only populated via the overload that accepts them; not part of the constructor documented below.

Constructors

This custom type has a constructor that takes in the parameters in the order shown. Note the argument order differs from the field declaration order in the repo: the constructor takes documentType before destination, whereas the class declares destination before documentType.

global DocGenRequestInput(
      String templateId,
      Map<String, String> variables,
      String documentType,
      Resource destination,
      DocGenParams params
)

Example

// For a more detailed example, see the example section in the
// Generate Document (Sync) article.
Types.DocGenRequestInput input = new Types.DocGenRequestInput(
  templateId,
  variables,
  documentType,
  destination,
  params
);