Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
Ring
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート
Skip to main content
ContentInteractionオブジェクトを作成するためのビルダー。

コンストラクタ

new ContentInteractionBuilder()

new ContentInteractionBuilder(): ContentInteractionBuilder

戻り値

ContentInteractionBuilder

メソッド

build()

build(): ContentInteraction ビルダーに設定されたフィールドを使用して、ContentInteractionオブジェクトを構築します。

エラー

  • 必須フィールドが設定されていない場合、InvalidArgumentErrorがスローされます。

戻り値

ContentInteraction ContentInteraction:作成されたContentInteractionオブジェクト。

contentId()

contentId(contentId: IContentId): ContentInteractionBuilder インタラクションが実行されるコンテンツの(Amazonカタログで解決可能な)IDを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。

パラメーター

contentId
IContentId Amazonカタログで解決可能なID。

戻り値

ContentInteractionBuilder ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。

ContentInteractionType

contentInteractionType(contentInteractionType: ContentInteractionType): ContentInteractionBuilder コンテンツインタラクションのタイプを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。

パラメーター

ContentInteractionType
ContentInteractionType コンテンツインタラクションのタイプ。

戻り値

ContentInteractionBuilder ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。

interactionTimestamp

interactionTimestamp(interactionTimestamp: Date): ContentInteractionBuilder インタラクションが発生した日付を設定します。

パラメーター

interactionTimestamp
Date インタラクションの日付。

戻り値

ContentInteractionBuilder ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。

profileId()

profileId(profileId: IProfileId): ContentInteractionBuilder インタラクションを実行するユーザーに関連付けられたprofileIdを設定します。

パラメーター

profileId
IProfileId ユーザーに関連付けられたprofileId。

戻り値

ContentInteractionBuilder ContentInteractionBuilder:現在のContentInteractionBuilderオブジェクト。
最終更新日 2026年10月26日