Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Builder that creates an instance of the SeriesInfo object.

Extends

Constructors

new SeriesInfoBuilder()

new SeriesInfoBuilder(): SeriesInfoBuilder

Returns

SeriesInfoBuilder

Inherited from

Builder.constructor

Methods

build()

build(): ISeriesInfo Builds the SeriesInfo object based on the parameters provided.

Returns

ISeriesInfo The built SeriesInfo object containing season/episode number info for a program.

Throws

InvalidArgumentError if one or more of the required fields are missing.

Throws

IllegalStateError if the function is called after this builder instance has already built an object once.

Overrides

Builder.build

episode()

episode(episode): SeriesInfoBuilder Sets the episode number.

Parameters

episode
string The string representing the episode number. The string will be truncated if its length exceeds 256 bytes and the last 3 bytes will be replaced with ”…”.

Returns

SeriesInfoBuilder The SeriesInfoBuilder object with episode number set.

Details

This field is required in order to build the SeriesInfo object.

Throws

IllegalStateError if the function is called after this builder instance has already built an object once.

Throws

InvalidArgumentError if a string that is not valid UTF-8 is passed in.
Last modified on September 30, 2025