Class JsonFeedAttachment.Builder

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

public static final class JsonFeedAttachment.Builder extends Object
JSON Feed Attachment Builder.
  • Method Details

    • url

      @NonNull public @NonNull JsonFeedAttachment.Builder url(@NonNull @NonNull String url)
      Parameters:
      url - the location of the attachment
      Returns:
      The Builder
    • mimeType

      @NonNull public @NonNull JsonFeedAttachment.Builder mimeType(@NonNull @NonNull String mimeType)
      Parameters:
      mimeType - mime type of the attachment
      Returns:
      the Builder
    • title

      @NonNull public @NonNull JsonFeedAttachment.Builder title(@NonNull @NonNull String title)
      Name of the attachment.
      Parameters:
      title - name of the attachment
      Returns:
      The Builder
    • sizeInBytes

      @NonNull public @NonNull JsonFeedAttachment.Builder sizeInBytes(@NonNull @NonNull Long 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

      @NonNull public @NonNull JsonFeedAttachment build()
      Returns:
      The Attachment.