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()Content copied to clipboard
Properties
Functions
Link copied to clipboard
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.