Class Resource

java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Resource

@Marshalled public class Resource extends Object
MCP resource descriptor (resources/list entry).
  • Constructor Details

  • Method Details

    • getUri

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

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

      public String getName()
      Short resource name.
      Returns:
      The name, or null if not set.
    • setName

      public Resource setName(String value)
      Sets the short name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getTitle

      public String getTitle()
      Human-readable title.
      Returns:
      The title, or null if not set.
    • setTitle

      public Resource setTitle(String value)
      Sets the title.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getDescription

      Resource description.
      Returns:
      The description, or null if not set.
    • setDescription

      public Resource setDescription(String value)
      Sets the description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getMimeType

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

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

      public Long getSize()
      Optional size in bytes when known statically.
      Returns:
      The size, or null if not set.
    • setSize

      public Resource setSize(Long value)
      Sets the size hint.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).