Interface ResourceLink.Builder

All Superinterfaces:
MetaCarrier.Builder<ResourceLink.Builder>
Enclosing interface:
ResourceLink

public static interface ResourceLink.Builder extends MetaCarrier.Builder<ResourceLink.Builder>
A builder for creating resource link contents
  • Method Details

    • setTitle

      ResourceLink.Builder setTitle(String title)
      Sets the human-friendly name for this resource
      Parameters:
      title - the human-friendly name
      Returns:
      this builder
    • setDescription

      ResourceLink.Builder setDescription(String description)
      Sets the description of this resource
      Parameters:
      description - the description
      Returns:
      this builder
    • setMimeType

      ResourceLink.Builder setMimeType(String mimeType)
      Sets the MIME type of this resource, if known
      Parameters:
      mimeType - the MIME type
      Returns:
      this builder
    • setAnnotations

      ResourceLink.Builder setAnnotations(Annotations annotations)
      Sets the annotations for the content
      Parameters:
      annotations - the annotations
      Returns:
      this builder
    • setSize

      ResourceLink.Builder setSize(long size)
      Sets the size of the resource content
      Parameters:
      size - the size in bytes
      Returns:
      this builder
    • build

      ResourceLink build()
      Builds the resource link content
      Returns:
      the new resource link content