as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
用于创建CustomerListEntry对象的构建器。

构造函数

new CustomerListEntryBuilder()

new CustomerListEntryBuilder(): CustomerListEntryBuilder

返回值

CustomerListEntryBuilder

方法

addedTimestamp

addedTimestamp(addedTimestamp: Date): CustomerListEntryBuilder 设置将条目添加到列表的日期。

参数

addedTimestamp
Date 日期已添加到列表。

返回值

CustomerListEntryBuilder CustomerListEntryBuilder 当前的CustomerListEntryBuilder对象。

build()

build(): CustomerListEntry 使用在构建器上设置的字段构建CustomerListEntry对象。

抛出

  • InvalidArgumentError 如果未设置必填字段。

返回值

CustomerListEntry CustomerListEntry 创建的CustomerListEntry对象。

contentId()

contentId(contentId: IContentId): CustomerListEntryBuilder 设置清单条目内容的ID,可在亚马逊目录中解析该ID。这是必填字段。如果未设置此字段,build() 将失败。

参数

contentId
IContentId 可在亚马逊目录中解析的ID。

返回值

CustomerListEntryBuilder CustomerListEntryBuilder 当前的CustomerListEntryBuilder对象。

profileId()

profileId(profileId: IProfileId): CustomerListEntryBuilder 设置列表正在变化的用户的关联profileId。

参数

profileId
IProfileId 用户关联的profileId。

返回值

CustomerListEntryBuilder CustomerListEntryBuilder 当前的CustomerListEntryBuilder对象。
最后修改于 2026年10月26日