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 IContentIdBuilder

interface IContentIdBuilder
Extends com.amazon.apmf.IStandard Builder interface to create a ContentId object.

Methods

id()

IContentIdBuilder* id(string id)
Sets the ID resolvable under the associated namespace. This is a required field. build() will fail if this field is not set.

Parameters

id
string — Required ID resolvable under the associated namespace.

Returns

IContentIdBuilder* a non-null pointer to the current IContentIdBuilder instance.

idNamespace()

IContentIdBuilder* idNamespace(string idNamespace)
Sets the namespace the ID should be resolved under. See NAMESPACE_ values on IContentIdBuilder for accepted values. This is a required field. build() will fail if this field is not set.

Parameters

idNamespace
string — Required The namespace to resolved the ID under.

Returns

IContentIdBuilder* a non-null pointer to the current IContentIdBuilder instance.

build()

IContentId* build()
Builds a ContentId object with the fields set on the builder.

Returns

IContentId* a non-null pointer to the IContentId object created.

Throws


Constants

NAMESPACE_CDF_ID

string = "cdf_id"
Indicates the content ID is in the namespace of the IDs specified in your Amazon catalog integration.

NAMESPACE_GVD

string = "gvd"
Indicates the content ID is in the Gracenote GVD namespace.

NAMESPACE_ONTV

string = "ontv"
Indicates the content ID is in the Gracenote ONTV namespace.
Last modified on October 29, 2026