Interface TextContent

All Superinterfaces:
ContentBlock, MetaCarrier

public non-sealed interface TextContent extends ContentBlock
Text content
  • Method Details

    • text

      String text()
      Returns the text
      Returns:
      the text
    • annotations

      Optional<Annotations> annotations()
      Optional annotations for the client
      Returns:
      the annotations
    • builder

      static TextContent.Builder builder(String text)
      Creates a new builder for a TextContent
      Parameters:
      text - the text
      Returns:
      the text content builder
    • of

      static TextContent of(String text)
      Creates a new TextContent
      Parameters:
      text - the text
      Returns:
      the new text content object