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
Native
Skip to main content

Interface IChannelDescriptorBuilder

interface IChannelDescriptorBuilder
Extends com.amazon.apmf.IStandard Builder that will create the ChannelDescriptor object

Methods

identifier()

IChannelDescriptorBuilder* identifier(string identifier)
Sets the identifier string of the channel builder and returns an instance of the builder.

Parameters

identifier
string — Required A string that represents a unique identifier for the channel. This identifier should be unique across all channels within the application package. This field is mandatory and has a maximum length of 8192.

Returns

IChannelDescriptorBuilder* The ChannelDescriptorBuilder object with channel identifier set.

Throws


majorNumber()

IChannelDescriptorBuilder* majorNumber(i32 majorNumber)
Sets the major number of the channel builder and returns an instance of the builder.

Parameters

majorNumber
i32 — Required A number that indicates the channel major number value (for example, using ATSC format). When the channel number is expressed as a string, such as “13.1” or “256”, the major number would be 13 or 256, respectively. This field should be set to 0 for channels that are not represented by a major or minor number.

Returns

IChannelDescriptorBuilder* The ChannelDescriptorBuilder object with majorNumber set.

Throws

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

minorNumber()

IChannelDescriptorBuilder* minorNumber(i32 minorNumber)
Sets the minor number of the channel builder and returns an instance of the builder.

Parameters

minorNumber
i32 — Required The minor number indicates the channel minor number value (for example, using ATSC format). When the channel number is expressed as a string, such as “13.1” or “256”, the minor number would be 1 or 0, respectively. This field should be set to 0 for channels that are not represented by a major or minor number.

Returns

IChannelDescriptorBuilder* The ChannelDescriptorBuilder object with minorNumber set.

Throws

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

build()

IChannelDescriptor* build()
Builds and returns a pointer to an instance of the IChannelDescriptor object. This function should be called after the desired fields of the channel descriptor builder have been set using the other builder functions. The build() function should only be called once per builder object.

Returns

IChannelDescriptor* An instance of a ChannelDescriptor object with all of the data that was set.

Throws

  • InvalidArgumentError — if one or more of the required fields are not provided to the builder.
  • IllegalStateError — if the function is called after this builder instance has already built an object once.

Last modified on October 29, 2026