Class ResourceContent

java.lang.Object
com.mulesoft.connectors.mcp.api.client.tool.ResourceContent
All Implemented Interfaces:
Serializable

public class ResourceContent extends Object implements Serializable
A flattened representation of a resource content. The resource can be of either text or blob types. The text property will be set for text resources, while the blob one will be used for the latter
Since:
0.1.0
See Also:
  • Constructor Details

    • ResourceContent

      public ResourceContent()
  • Method Details

    • getUri

      public String getUri()
    • setUri

      public void setUri(String uri)
    • getMimeType

      public String getMimeType()
    • setMimeType

      public void setMimeType(String mimeType)
    • getText

      public String getText()
    • setText

      public void setText(String text)
    • getBlob

      public byte[] getBlob()
    • setBlob

      public void setBlob(byte[] blob)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object