public static class IFramePlaylist.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IFramePlaylist.Builder |
addAllCodecs(java.lang.Iterable<java.lang.String> elements)
Adds elements to
codecs list. |
IFramePlaylist.Builder |
addCodecs(java.lang.String... elements)
Adds elements to
codecs list. |
IFramePlaylist.Builder |
addCodecs(java.lang.String element)
Adds one element to
codecs list. |
IFramePlaylist.Builder |
averageBandwidth(long averageBandwidth)
Initializes the optional value
averageBandwidth to averageBandwidth. |
IFramePlaylist.Builder |
averageBandwidth(java.util.Optional<java.lang.Long> averageBandwidth)
Initializes the optional value
averageBandwidth to averageBandwidth. |
IFramePlaylist.Builder |
bandwidth(long bandwidth)
Initializes the value for the
bandwidth attribute. |
IFramePlaylist |
build()
Builds a new
IFramePlaylist. |
IFramePlaylist.Builder |
codecs(java.lang.Iterable<java.lang.String> elements)
Sets or replaces all elements for
codecs list. |
IFramePlaylist.Builder |
from(IFramePlaylist instance)
Fill a builder with attribute values from the provided
IFramePlaylist instance. |
IFramePlaylist.Builder |
hdcpLevel(java.util.Optional<java.lang.String> hdcpLevel)
Initializes the optional value
hdcpLevel to hdcpLevel. |
IFramePlaylist.Builder |
hdcpLevel(java.lang.String hdcpLevel)
Initializes the optional value
hdcpLevel to hdcpLevel. |
IFramePlaylist.Builder |
resolution(java.util.Optional<? extends Resolution> resolution)
Initializes the optional value
resolution to resolution. |
IFramePlaylist.Builder |
resolution(Resolution resolution)
Initializes the optional value
resolution to resolution. |
IFramePlaylist.Builder |
uri(java.lang.String uri)
Initializes the value for the
uri attribute. |
IFramePlaylist.Builder |
video(java.util.Optional<java.lang.String> video)
Initializes the optional value
video to video. |
IFramePlaylist.Builder |
video(java.lang.String video)
Initializes the optional value
video to video. |
public final IFramePlaylist.Builder from(IFramePlaylist instance)
IFramePlaylist instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final IFramePlaylist.Builder uri(java.lang.String uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final IFramePlaylist.Builder bandwidth(long bandwidth)
bandwidth attribute.bandwidth - The value for bandwidththis builder for use in a chained invocationpublic final IFramePlaylist.Builder averageBandwidth(long averageBandwidth)
averageBandwidth to averageBandwidth.averageBandwidth - The value for averageBandwidththis builder for chained invocationpublic final IFramePlaylist.Builder averageBandwidth(java.util.Optional<java.lang.Long> averageBandwidth)
averageBandwidth to averageBandwidth.averageBandwidth - The value for averageBandwidththis builder for use in a chained invocationpublic final IFramePlaylist.Builder addCodecs(java.lang.String element)
codecs list.element - A codecs elementthis builder for use in a chained invocationpublic final IFramePlaylist.Builder addCodecs(java.lang.String... elements)
codecs list.elements - An array of codecs elementsthis builder for use in a chained invocationpublic final IFramePlaylist.Builder codecs(java.lang.Iterable<java.lang.String> elements)
codecs list.elements - An iterable of codecs elementsthis builder for use in a chained invocationpublic final IFramePlaylist.Builder addAllCodecs(java.lang.Iterable<java.lang.String> elements)
codecs list.elements - An iterable of codecs elementsthis builder for use in a chained invocationpublic final IFramePlaylist.Builder resolution(Resolution resolution)
resolution to resolution.resolution - The value for resolutionthis builder for chained invocationpublic final IFramePlaylist.Builder resolution(java.util.Optional<? extends Resolution> resolution)
resolution to resolution.resolution - The value for resolutionthis builder for use in a chained invocationpublic final IFramePlaylist.Builder hdcpLevel(java.lang.String hdcpLevel)
hdcpLevel to hdcpLevel.hdcpLevel - The value for hdcpLevelthis builder for chained invocationpublic final IFramePlaylist.Builder hdcpLevel(java.util.Optional<java.lang.String> hdcpLevel)
hdcpLevel to hdcpLevel.hdcpLevel - The value for hdcpLevelthis builder for use in a chained invocationpublic final IFramePlaylist.Builder video(java.lang.String video)
video to video.video - The value for videothis builder for chained invocationpublic final IFramePlaylist.Builder video(java.util.Optional<java.lang.String> video)
video to video.video - The value for videothis builder for use in a chained invocationpublic IFramePlaylist build()
IFramePlaylist.java.lang.IllegalStateException - if any required attributes are missing