as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

SeriesInfoBuilder

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.


season()

season(season): SeriesInfoBuilder

Sets the season number.

Parameters

season

string

The string representing the season 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 season 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 updated: Sep 30, 2025