Class JsonFeedItem.Builder

java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeedItem.Builder
Enclosing class:
JsonFeedItem

public static final class JsonFeedItem.Builder extends Object
JSON Feed Item Builder.
  • Method Details

    • id

      @NonNull public @NonNull JsonFeedItem.Builder id(@NonNull @NonNull String id)
      Parameters:
      id - unique for the item for that feed over time.
      Returns:
      The Builder
    • url

      @NonNull public @NonNull JsonFeedItem.Builder url(String url)
      The URL of the resource described by the item. It’s the permalink.
      Parameters:
      url - the URL of the resource described by the item
      Returns:
      Builder
    • externalUrl

      @NonNull public @NonNull JsonFeedItem.Builder externalUrl(String externalUrl)
      The URL of a page elsewhere. This is especially useful for linkblogs
      Parameters:
      externalUrl - the URL of a page
      Returns:
      Builder
    • title

      @NonNull public @NonNull JsonFeedItem.Builder title(String title)
      Title of the item in feed.
      Parameters:
      title - title of the item in feed
      Returns:
      Builder
    • contentHtml

      @NonNull public @NonNull JsonFeedItem.Builder contentHtml(String contentHtml)
      The html content of the item in the feed.
      Parameters:
      contentHtml - the html content of the item in the feed
      Returns:
      Builder
    • contentText

      @NonNull public @NonNull JsonFeedItem.Builder contentText(String contentText)
      The text content of the item in the feed.
      Parameters:
      contentText - the text content of the item in the feed
      Returns:
      Builder
    • summary

      @NonNull public @NonNull JsonFeedItem.Builder summary(String summary)
      Plain text sentence or two describing the item.
      Parameters:
      summary - plain text sentence or two describing the item
      Returns:
      Builder
    • image

      @NonNull public @NonNull JsonFeedItem.Builder image(String image)
      The URL of the main image for the item.
      Parameters:
      image - the URL of the main image for the item
      Returns:
      Builder
    • bannerImage

      @NonNull public @NonNull JsonFeedItem.Builder bannerImage(String bannerImage)
      The URL of an image to use as a banner.
      Parameters:
      bannerImage - the URL of an image to use as a banner
      Returns:
      Builder
    • datePublished

      @NonNull public @NonNull JsonFeedItem.Builder datePublished(ZonedDateTime datePublished)
      Specifies the publishing date in RFC 3339.
      Parameters:
      datePublished - specifies the publishing date in RFC 3339
      Returns:
      Builder
    • datePublished

      @NonNull public @NonNull JsonFeedItem.Builder datePublished(String datePublished)
      Specifies the publishing date in RFC 3339.
      Parameters:
      datePublished - specifies the publishing date in RFC 3339
      Returns:
      Builder
    • dateModified

      @NonNull public @NonNull JsonFeedItem.Builder dateModified(String dateModified)
      Specifies the last modified date in RFC 3339.
      Parameters:
      dateModified - specifies the last modified date in RFC 3339
      Returns:
      Builder
    • dateModified

      @NonNull public @NonNull JsonFeedItem.Builder dateModified(ZonedDateTime dateModified)
      Specifies the last modified date in RFC 3339.
      Parameters:
      dateModified - specifies the last modified date in RFC 3339
      Returns:
      Builder
    • author

      @NonNull public @NonNull JsonFeedItem.Builder author(JsonFeedAuthor author)
      Adds an author to the feed.
      Parameters:
      author - An author of the feed
      Returns:
      Builder
    • tag

      @NonNull public @NonNull JsonFeedItem.Builder tag(@NonNull @NonNull String tag)
      Associate a tag with the item.
      Parameters:
      tag - associate a tag with the item
      Returns:
      Builder
    • language

      @NonNull public @NonNull JsonFeedItem.Builder language(@NonNull @NonNull RssLanguage language)
      The primary language for the feed in the format specified in RFC 5646.
      Parameters:
      language - the primary language for the feed
      Returns:
      Builder
    • attachment

      @NonNull public @NonNull JsonFeedItem.Builder attachment(@NonNull @NonNull JsonFeedAttachment attachment)
      Attachments associated with the item.
      Parameters:
      attachment - attachments associated with the item
      Returns:
      Builder
    • build

      @NonNull public @NonNull JsonFeedItem build()