fileContent

Creates a new FileContent using the DSL builder.

Example:

val fileContent = fileContent {
name = "example.txt"
mimeType = "text/plain"
bytes = "Hello World".encodeToByteArray()
}

Return

A new FileContent instance

Parameters

init

The lambda to configure the file content


Creates a new FileContent using the Java-friendly Consumer.

Return

A new FileContent instance

Parameters

init

The consumer to configure the file content