Package io.micronaut.rss.jsonfeed
Class JsonFeedAttachment.Builder
java.lang.Object
io.micronaut.rss.jsonfeed.JsonFeedAttachment.Builder
- Enclosing class:
- JsonFeedAttachment
JSON Feed Attachment Builder.
-
Method Summary
Modifier and TypeMethodDescription@NonNull JsonFeedAttachment
build()
@NonNull JsonFeedAttachment.Builder
durationInSeconds
(@NonNull Integer durationInSeconds) Specifies how long it takes to listen to or watch, when played at normal speed.@NonNull JsonFeedAttachment.Builder
@NonNull JsonFeedAttachment.Builder
sizeInBytes
(@NonNull Long sizeInBytes) Specifies how large the file is in bytes.@NonNull JsonFeedAttachment.Builder
Name of the attachment.@NonNull JsonFeedAttachment.Builder
-
Method Details
-
url
- Parameters:
url
- the location of the attachment- Returns:
- The Builder
-
mimeType
- Parameters:
mimeType
- mime type of the attachment- Returns:
- the Builder
-
title
Name of the attachment.- Parameters:
title
- name of the attachment- Returns:
- The Builder
-
sizeInBytes
Specifies how large the file is in bytes.- Parameters:
sizeInBytes
- sive of the file in bytes- Returns:
- The Builder
-
durationInSeconds
@NonNull public @NonNull JsonFeedAttachment.Builder durationInSeconds(@NonNull @NonNull Integer durationInSeconds) Specifies how long it takes to listen to or watch, when played at normal speed.- Parameters:
durationInSeconds
- duration of the attachment in seconds- Returns:
- The Builder
-
build
- Returns:
- The Attachment.
-