as

Settings
Sign out
Notifications
Alexa
Amazonアプリストア
AWS
ドキュメント
Support
Contact Us
My Cases
開発
設計と開発
公開
リファレンス
サポート

ContentInteractionBuilder

ContentInteractionBuilder

ContentInteractionオブジェクトを作成するためのビルダー。

コンストラクタ

new ContentInteractionBuilder()

new ContentInteractionBuilder(): ContentInteractionBuilder

戻り値

ContentInteractionBuilder

メソッド

build()

build(): ContentInteraction

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

戻り値

ContentInteraction

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

スロー

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


contentId()

contentId(contentId): ContentInteractionBuilder

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

パラメーター

contentId

IContentId

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

戻り値

ContentInteractionBuilder

現在のContentInteractionBuilderオブジェクト。


contentInteractionType()

contentInteractionType(contentInteractionType): ContentInteractionBuilder

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

パラメーター

contentInteractionType

ContentInteractionType

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

戻り値

ContentInteractionBuilder

現在のContentInteractionBuilderオブジェクト。


interactionTimestamp()

interactionTimestamp(interactionTimestamp): ContentInteractionBuilder

インタラクションが発生した日付を設定します。

パラメーター

interactionTimestamp

Date

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

戻り値

ContentInteractionBuilder

現在のContentInteractionBuilderオブジェクト。


profileId()

profileId(profileId): ContentInteractionBuilder

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

パラメーター

profileId

IProfileId

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

戻り値

ContentInteractionBuilder

現在のContentInteractionBuilderオブジェクト。


Last updated: 2025年10月2日