ContentInteractionBuilder
ContentInteractionオブジェクトを作成するためのビルダー。
コンストラクタ
new ContentInteractionBuilder()
new ContentInteractionBuilder():
ContentInteractionBuilder
戻り値
メソッド
build()
build():
ContentInteraction
ビルダーに設定されたフィールドを使用して、ContentInteractionオブジェクトを構築します。
戻り値
ContentInteraction
作成されたContentInteractionオブジェクト。
スロー
必須フィールドが設定されていない場合、InvalidArgumentErrorがスローされます。
contentId()
contentId(
contentId):ContentInteractionBuilder
インタラクションが実行されるコンテンツの(Amazonカタログで解決可能な)IDを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。
パラメーター
contentId
Amazonカタログで解決可能なID。
戻り値
現在のContentInteractionBuilderオブジェクト。
contentInteractionType()
contentInteractionType(
contentInteractionType):ContentInteractionBuilder
コンテンツインタラクションのタイプを設定します。これは必須フィールドです。このフィールドを設定しない場合、build()は失敗します。
パラメーター
contentInteractionType
コンテンツインタラクションのタイプ。
戻り値
現在のContentInteractionBuilderオブジェクト。
interactionTimestamp()
interactionTimestamp(
interactionTimestamp):ContentInteractionBuilder
インタラクションが発生した日付を設定します。
パラメーター
interactionTimestamp
Date
インタラクションの日付。
戻り値
現在のContentInteractionBuilderオブジェクト。
profileId()
profileId(
profileId):ContentInteractionBuilder
インタラクションを実行するユーザーに関連付けられたprofileIdを設定します。
パラメーター
profileId
ユーザーに関連付けられたprofileId。
戻り値
現在のContentInteractionBuilderオブジェクト。
Last updated: 2025年10月2日

