public static class IFrameVariant.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
IFrameVariant.Builder |
addAllCodecs(java.lang.Iterable<java.lang.String> elements)
Adds elements to
codecs list. |
IFrameVariant.Builder |
addCodecs(java.lang.String... elements)
Adds elements to
codecs list. |
IFrameVariant.Builder |
addCodecs(java.lang.String element)
Adds one element to
codecs list. |
IFrameVariant.Builder |
averageBandwidth(long averageBandwidth)
Initializes the optional value
averageBandwidth to averageBandwidth. |
IFrameVariant.Builder |
averageBandwidth(java.util.Optional<java.lang.Long> averageBandwidth)
Initializes the optional value
averageBandwidth to averageBandwidth. |
IFrameVariant.Builder |
bandwidth(long bandwidth)
Initializes the value for the
bandwidth attribute. |
IFrameVariant |
build()
Builds a new
IFrameVariant. |
IFrameVariant.Builder |
codecs(java.lang.Iterable<java.lang.String> elements)
Sets or replaces all elements for
codecs list. |
IFrameVariant.Builder |
from(IFrameVariant instance)
Fill a builder with attribute values from the provided
IFrameVariant instance. |
IFrameVariant.Builder |
hdcpLevel(java.util.Optional<java.lang.String> hdcpLevel)
Initializes the optional value
hdcpLevel to hdcpLevel. |
IFrameVariant.Builder |
hdcpLevel(java.lang.String hdcpLevel)
Initializes the optional value
hdcpLevel to hdcpLevel. |
IFrameVariant.Builder |
resolution(java.util.Optional<? extends Resolution> resolution)
Initializes the optional value
resolution to resolution. |
IFrameVariant.Builder |
resolution(Resolution resolution)
Initializes the optional value
resolution to resolution. |
IFrameVariant.Builder |
uri(java.lang.String uri)
Initializes the value for the
uri attribute. |
IFrameVariant.Builder |
video(java.util.Optional<java.lang.String> video)
Initializes the optional value
video to video. |
IFrameVariant.Builder |
video(java.lang.String video)
Initializes the optional value
video to video. |
public final IFrameVariant.Builder from(IFrameVariant instance)
IFrameVariant 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 IFrameVariant.Builder uri(java.lang.String uri)
uri attribute.uri - The value for urithis builder for use in a chained invocationpublic final IFrameVariant.Builder bandwidth(long bandwidth)
bandwidth attribute.bandwidth - The value for bandwidththis builder for use in a chained invocationpublic final IFrameVariant.Builder averageBandwidth(long averageBandwidth)
averageBandwidth to averageBandwidth.averageBandwidth - The value for averageBandwidththis builder for chained invocationpublic final IFrameVariant.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 IFrameVariant.Builder addCodecs(java.lang.String element)
codecs list.element - A codecs elementthis builder for use in a chained invocationpublic final IFrameVariant.Builder addCodecs(java.lang.String... elements)
codecs list.elements - An array of codecs elementsthis builder for use in a chained invocationpublic final IFrameVariant.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 IFrameVariant.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 IFrameVariant.Builder resolution(Resolution resolution)
resolution to resolution.resolution - The value for resolutionthis builder for chained invocationpublic final IFrameVariant.Builder resolution(java.util.Optional<? extends Resolution> resolution)
resolution to resolution.resolution - The value for resolutionthis builder for use in a chained invocationpublic final IFrameVariant.Builder hdcpLevel(java.lang.String hdcpLevel)
hdcpLevel to hdcpLevel.hdcpLevel - The value for hdcpLevelthis builder for chained invocationpublic final IFrameVariant.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 IFrameVariant.Builder video(java.lang.String video)
video to video.video - The value for videothis builder for chained invocationpublic final IFrameVariant.Builder video(java.util.Optional<java.lang.String> video)
video to video.video - The value for videothis builder for use in a chained invocationpublic IFrameVariant build()
IFrameVariant.java.lang.IllegalStateException - if any required attributes are missing