Class BlobResourceContents

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.BlobResourceContents
All Implemented Interfaces:
ResourceContents

@Marshalled(typeName="resourceBlob") public class BlobResourceContents extends Object implements ResourceContents
Base64 blob body for resources/read results or embedded resource content.

Discriminator type value is resourceBlob (distinct from generic blob tokens elsewhere).

  • Constructor Details

  • Method Details

    • getUri

      public String getUri()
      Resource URI.
      Returns:
      The URI, or null if not set.
    • setUri

      Sets the resource URI.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getMimeType

      public String getMimeType()
      Optional MIME type.
      Returns:
      The MIME type, or null if not set.
    • setMimeType

      Sets the MIME type.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getBlob

      public String getBlob()
      Base64-encoded bytes.
      Returns:
      The blob, or null if not set.
    • setBlob

      Sets the base64 payload.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).