public static final class JsonFeedAttachment.Builder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
JsonFeedAttachment |
build() |
JsonFeedAttachment.Builder |
durationInSeconds(java.lang.Integer durationInSeconds)
Specifies how long it takes to listen to or watch, when played at normal speed.
|
JsonFeedAttachment.Builder |
mimeType(java.lang.String mimeType) |
JsonFeedAttachment.Builder |
sizeInBytes(java.lang.Long sizeInBytes)
Specifies how large the file is in bytes.
|
JsonFeedAttachment.Builder |
title(java.lang.String title)
Name of the attachment.
|
JsonFeedAttachment.Builder |
url(java.lang.String url) |
@NonNull public JsonFeedAttachment.Builder url(@NonNull java.lang.String url)
url
- the location of the attachment@NonNull public JsonFeedAttachment.Builder mimeType(@NonNull java.lang.String mimeType)
mimeType
- mime type of the attachment@NonNull public JsonFeedAttachment.Builder title(@NonNull java.lang.String title)
title
- name of the attachment@NonNull public JsonFeedAttachment.Builder sizeInBytes(@NonNull java.lang.Long sizeInBytes)
sizeInBytes
- sive of the file in bytes@NonNull public JsonFeedAttachment.Builder durationInSeconds(@NonNull java.lang.Integer durationInSeconds)
durationInSeconds
- duration of the attachment in seconds@NonNull public JsonFeedAttachment build()