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 IPlaybackReferenceBuilder

interface IPlaybackReferenceBuilder
Extends com.amazon.apmf.IStandard

Methods

playbackType()

IPlaybackReferenceBuilder* playbackType(PlaybackType playbackType)
Sets the playback type of the playback reference in the builder and returns an instance of the builder.

Parameters

playbackType
PlaybackType — Required Represents the playback type. This field is required. This must be one of the types defined in the PlaybackType struct.

Returns

IPlaybackReferenceBuilder* The PlaybackReferenceBuilder object with playbackType set.

Throws

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

mediaId()

IPlaybackReferenceBuilder* mediaId(com.amazon.kepler.media.types.MediaId* mediaId)
Sets the media ID of the playback reference in the builder and returns an instance of the builder.

Parameters

mediaId
com.amazon.kepler.media.types.MediaId* — Required The Media ID which uniquely identifies the content to selected when initiating playback for the live event. This field is required if playbackType is set to CONTENT.

Returns

IPlaybackReferenceBuilder* The PlaybackReferenceBuilder object with mediaId set.

Throws

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

build()

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

Returns

IPlaybackReference* An instance of a PlaybackReference 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