@Introspected
public class JsonFeedAttachment
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonFeedAttachment.Builder
JSON Feed Attachment Builder.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_DURATION_IN_SECONDS |
static java.lang.String |
KEY_MIME_TYPE |
static java.lang.String |
KEY_SIZE_IN_BYTES |
static java.lang.String |
KEY_TITLE |
static java.lang.String |
KEY_URL |
Modifier and Type | Method and Description |
---|---|
static JsonFeedAttachment.Builder |
builder()
Gets a Builder with the required fields.
|
static JsonFeedAttachment.Builder |
builder(java.lang.String url,
java.lang.String mimeType)
Gets a Builder with the required fields.
|
java.lang.Integer |
getDurationInSeconds()
Specifies how long it takes to listen to or watch, when played at normal speed.
|
java.lang.String |
getMimeType()
Mime type of the attachment.
|
java.lang.Long |
getSizeInBytes()
Specifies how large the file is in bytes.
|
java.lang.String |
getTitle()
Name of the attachment.
|
java.lang.String |
getUrl()
Location of the attachment.
|
void |
setDurationInSeconds(java.lang.Integer durationInSeconds)
Specifies how long it takes to listen to or watch, when played at normal speed.
|
void |
setMimeType(java.lang.String mimeType)
Mime type of the attachment.
|
void |
setSizeInBytes(java.lang.Long sizeInBytes)
Specifies how large the file is in bytes.
|
void |
setTitle(java.lang.String title)
Name of the attachment.
|
void |
setUrl(java.lang.String url)
Specifies the location of the attachment.
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap() |
public static final java.lang.String KEY_URL
public static final java.lang.String KEY_MIME_TYPE
public static final java.lang.String KEY_TITLE
public static final java.lang.String KEY_SIZE_IN_BYTES
public static final java.lang.String KEY_DURATION_IN_SECONDS
public static JsonFeedAttachment.Builder builder(@NonNull java.lang.String url, @NonNull java.lang.String mimeType)
url
- the location of the attachmentmimeType
- mime type of the attachmentpublic static JsonFeedAttachment.Builder builder()
@NonNull public java.lang.String getUrl()
public void setUrl(@NonNull java.lang.String url)
url
- the location of the attachment@NonNull public java.lang.String getMimeType()
public void setMimeType(@NonNull java.lang.String mimeType)
mimeType
- mime type of the attachment@Nullable public java.lang.String getTitle()
public void setTitle(@Nullable java.lang.String title)
title
- name of the attachment@Nullable public java.lang.Long getSizeInBytes()
public void setSizeInBytes(@Nullable java.lang.Long sizeInBytes)
sizeInBytes
- specifies how large the file is in bytes@Nullable public java.lang.Integer getDurationInSeconds()
public void setDurationInSeconds(@Nullable java.lang.Integer durationInSeconds)
durationInSeconds
- duration of the attachment@NonNull public java.util.Map<java.lang.String,java.lang.Object> toMap()