Interface ImageContent.Builder

Enclosing interface:
ImageContent

public static interface ImageContent.Builder
Builder for ImageContent.
  • Method Details

    • data

      Sets the base64-encoded image data.
      Parameters:
      data - the image data
      Returns:
      this builder
    • mimeType

      ImageContent.Builder mimeType(String mimeType)
      Sets the MIME type of the image content.
      Parameters:
      mimeType - the image MIME type
      Returns:
      this builder
    • annotations

      ImageContent.Builder annotations(@Nullable Annotations annotations)
      Sets the annotations.
      Parameters:
      annotations - the annotations, or null
      Returns:
      this builder
    • meta

      ImageContent.Builder meta(@Nullable Map<String,?> entries)
      Sets the metadata entries.
      Parameters:
      entries - the metadata map, or null
      Returns:
      this builder
    • build

      ImageContent build()
      Builds the ImageContent instance.
      Returns:
      a new image content