ContentEntitlementBuilder
Builder to create a ContentEntitlement
object.
Constructors
new ContentEntitlementBuilder()
new ContentEntitlementBuilder():
ContentEntitlementBuilder
Returns
Methods
acquisitionTimestamp()
acquisitionTimestamp(
acquisitionTimestamp
):ContentEntitlementBuilder
Sets the date the entitlement was acquired.
Parameters
acquisitionTimestamp
Date
Acquisition date.
Returns
The current ContentEntitlementBuilder
object.
build()
build():
ContentEntitlement
Builds a ContentEntitlement
object with the fields set on the builder.
Returns
ContentEntitlement
The ContentEntitlement
object created.
Throws
InvalidArgumentError
if required fields are not set.
contentId()
contentId(
contentId
):ContentEntitlementBuilder
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
ID of the content entitlement resolvable in the Amazon catalog.
Returns
The current ContentEntitlementBuilder
object.
entitlementType()
entitlementType(
entitlementType
):ContentEntitlementBuilder
Sets type of entitlement.
This is a required field. build()
will fail if this field is not set.
Parameters
entitlementType
The type of entitlement.
Returns
The current ContentEntitlementBuilder
object.
expirationTimestamp()
expirationTimestamp(
expirationTimestamp
):ContentEntitlementBuilder
Sets date of expiration for the entitlement.
Parameters
expirationTimestamp
Date
Expiration date. Not set or undefined value implies no expiration.
Returns
The current ContentEntitlementBuilder
object.
Last updated: Sep 30, 2025