as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
メインコンテンツへスキップ
Builder to create a ContentEntitlement object.

Constructors

new ContentEntitlementBuilder()

new ContentEntitlementBuilder(): ContentEntitlementBuilder

Returns

ContentEntitlementBuilder

Methods

acquisitionTimestamp()

acquisitionTimestamp(acquisitionTimestamp: Date): ContentEntitlementBuilder
Sets the date the entitlement was acquired.

Parameters

acquisitionTimestamp
Date Acquisition date.

Returns

ContentEntitlementBuilder ContentEntitlementBuilder The current ContentEntitlementBuilder object.

build()

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

Throws

  • InvalidArgumentError if required fields are not set.

Returns

ContentEntitlement ContentEntitlement The ContentEntitlement object created.

contentId()

contentId(contentId: IContentId): 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
IContentId ID of the content entitlement resolvable in the Amazon catalog.

Returns

ContentEntitlementBuilder ContentEntitlementBuilder The current ContentEntitlementBuilder object.

entitlementType()

entitlementType(entitlementType: EntitlementType): ContentEntitlementBuilder
Sets type of entitlement. This is a required field. build() will fail if this field is not set.

Parameters

entitlementType
EntitlementType The type of entitlement.

Returns

ContentEntitlementBuilder ContentEntitlementBuilder The current ContentEntitlementBuilder object.

expirationTimestamp()

expirationTimestamp(expirationTimestamp: Date): ContentEntitlementBuilder
Sets date of expiration for the entitlement.

Parameters

expirationTimestamp
Date Expiration date. Not set or undefined value implies no expiration.

Returns

ContentEntitlementBuilder ContentEntitlementBuilder The current ContentEntitlementBuilder object.
最終更新日 2026年8月25日