public static final class JsonFeedItem.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JsonFeedItem.Builder |
attachment(JsonFeedAttachment attachment)
Attachments associated with the item.
|
JsonFeedItem.Builder |
author(JsonFeedAuthor author)
Adds an author to the feed.
|
JsonFeedItem.Builder |
bannerImage(java.lang.String bannerImage)
The URL of an image to use as a banner.
|
JsonFeedItem |
build() |
JsonFeedItem.Builder |
contentHtml(java.lang.String contentHtml)
The html content of the item in the feed.
|
JsonFeedItem.Builder |
contentText(java.lang.String contentText)
The text content of the item in the feed.
|
JsonFeedItem.Builder |
dateModified(java.lang.String dateModified)
Specifies the last modified date in RFC 3339.
|
JsonFeedItem.Builder |
dateModified(java.time.ZonedDateTime dateModified)
Specifies the last modified date in RFC 3339.
|
JsonFeedItem.Builder |
datePublished(java.lang.String datePublished)
Specifies the publishing date in RFC 3339.
|
JsonFeedItem.Builder |
datePublished(java.time.ZonedDateTime datePublished)
Specifies the publishing date in RFC 3339.
|
JsonFeedItem.Builder |
externalUrl(java.lang.String externalUrl)
The URL of a page elsewhere.
|
JsonFeedItem.Builder |
id(java.lang.String id) |
JsonFeedItem.Builder |
image(java.lang.String image)
The URL of the main image for the item.
|
JsonFeedItem.Builder |
language(RssLanguage language)
The primary language for the feed in the format specified in RFC 5646.
|
JsonFeedItem.Builder |
summary(java.lang.String summary)
Plain text sentence or two describing the item.
|
JsonFeedItem.Builder |
tag(java.lang.String tag)
Associate a tag with the item.
|
JsonFeedItem.Builder |
title(java.lang.String title)
Title of the item in feed.
|
JsonFeedItem.Builder |
url(java.lang.String url)
The URL of the resource described by the item.
|
@NonNull public JsonFeedItem.Builder id(@NonNull java.lang.String id)
id
- unique for the item for that feed over time.@NonNull public JsonFeedItem.Builder url(java.lang.String url)
url
- the URL of the resource described by the item@NonNull public JsonFeedItem.Builder externalUrl(java.lang.String externalUrl)
externalUrl
- the URL of a page@NonNull public JsonFeedItem.Builder title(java.lang.String title)
title
- title of the item in feed@NonNull public JsonFeedItem.Builder contentHtml(java.lang.String contentHtml)
contentHtml
- the html content of the item in the feed@NonNull public JsonFeedItem.Builder contentText(java.lang.String contentText)
contentText
- the text content of the item in the feed@NonNull public JsonFeedItem.Builder summary(java.lang.String summary)
summary
- plain text sentence or two describing the item@NonNull public JsonFeedItem.Builder image(java.lang.String image)
image
- the URL of the main image for the item@NonNull public JsonFeedItem.Builder bannerImage(java.lang.String bannerImage)
bannerImage
- the URL of an image to use as a banner@NonNull public JsonFeedItem.Builder datePublished(java.time.ZonedDateTime datePublished)
datePublished
- specifies the publishing date in RFC 3339@NonNull public JsonFeedItem.Builder datePublished(java.lang.String datePublished)
datePublished
- specifies the publishing date in RFC 3339@NonNull public JsonFeedItem.Builder dateModified(java.lang.String dateModified)
dateModified
- specifies the last modified date in RFC 3339@NonNull public JsonFeedItem.Builder dateModified(java.time.ZonedDateTime dateModified)
dateModified
- specifies the last modified date in RFC 3339@NonNull public JsonFeedItem.Builder author(JsonFeedAuthor author)
author
- An author of the feed@NonNull public JsonFeedItem.Builder tag(@NonNull java.lang.String tag)
tag
- associate a tag with the item@NonNull public JsonFeedItem.Builder language(@NonNull RssLanguage language)
language
- the primary language for the feed@NonNull public JsonFeedItem.Builder attachment(@NonNull JsonFeedAttachment attachment)
attachment
- attachments associated with the item@NonNull public JsonFeedItem build()