Class BlobResourceContents
java.lang.Object
org.apache.juneau.bean.mcp.v20250618.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBlob()Base64-encoded bytes.Optional MIME type.getUri()Resource URI.Sets the base64 payload.setMimeType(String value) Sets the MIME type.Sets the resource URI.
-
Constructor Details
-
BlobResourceContents
public BlobResourceContents()
-
-
Method Details
-
getUri
Resource URI.- Returns:
- The URI, or
nullif not set.
-
setUri
Sets the resource URI.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getMimeType
Optional MIME type.- Returns:
- The MIME type, or
nullif not set.
-
setMimeType
Sets the MIME type.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getBlob
Base64-encoded bytes.- Returns:
- The blob, or
nullif not set.
-
setBlob
Sets the base64 payload.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-