FileContentBuilder

Builder for creating FileContent instances with a fluent DSL.

Example usage:

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

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var name: String?
Link copied to clipboard
var uri: String?

Functions

Link copied to clipboard
fun build(validate: Boolean = false): FileContent

Builds a FileContent instance with the configured properties.

Link copied to clipboard

Sets the bytes of the file.

Link copied to clipboard

Sets the MIME type of the file.

Link copied to clipboard

Sets the name of the file.

Link copied to clipboard

Sets the URI of the file.