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 IContentEntitlementBuilder

interface IContentEntitlementBuilder
Extends com.amazon.apmf.IStandard Builder interface to create a ContentEntitlement object.

Methods

acquisitionTimestamp()

IContentEntitlementBuilder* acquisitionTimestamp(com.amazon.apmf.RealTimeInstant acquisitionTimestamp)
Sets the date the entitlement was acquired.

Parameters

acquisitionTimestamp
com.amazon.apmf.RealTimeInstant — Required Acquisition date in time since epoch.

Returns

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

Throws


contentId()

IContentEntitlementBuilder* contentId(IContentId* contentId)
Sets the ID of the content entitlement resolvable in the Amazon catalog. This is a required field. build() will fail if this field is not set.

Parameters

contentId
IContentId* — Required ID of the content entitlement resolvable in the Amazon catalog.

Returns

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

expirationTimestamp()

IContentEntitlementBuilder* expirationTimestamp(com.amazon.apmf.RealTimeInstant expirationTimestamp)
Sets date of expiration for the entitlement.

Parameters

expirationTimestamp
com.amazon.apmf.RealTimeInstant — Required Expiration date in time since epoch. Value of to 0 implies no expiration.

Returns

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

Throws


entitlementType()

IContentEntitlementBuilder* entitlementType(EntitlementTypeEnum entitlementType)
Sets type of entitlement. This is a required field. build() will fail if this field is not set.

Parameters

entitlementType
EntitlementTypeEnum — Required The type of entitlement.

Returns

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

build()

IContentEntitlement* build()
Builds a ContentEntitlement object with the fields set on the builder.

Returns

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

Throws


Last modified on October 29, 2026