as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

CustomerListEntryBuilder

CustomerListEntryBuilder

用于创建CustomerListEntry对象的构建器。

构造函数

new CustomerListEntryBuilder()

new CustomerListEntryBuilder(): CustomerListEntryBuilder

返回值

CustomerListEntryBuilder

方法

addedTimestamp()

addedTimestamp(addedTimestamp): CustomerListEntryBuilder

设置将条目添加到列表的日期。

参数

addedTimestamp

Date

日期已添加到列表。

返回值

CustomerListEntryBuilder

当前的CustomerListEntryBuilder对象。


build()

build(): CustomerListEntry

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

返回值

CustomerListEntry

创建的CustomerListEntry对象。

抛出

如果未设置必填字段,则会引发InvalidArgumentError


contentId()

contentId(contentId): CustomerListEntryBuilder

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

参数

contentId

IContentId

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

返回值

CustomerListEntryBuilder

当前的CustomerListEntryBuilder对象。


profileId()

profileId(profileId): CustomerListEntryBuilder

设置列表正在变化的用户的关联profileId

参数

profileId

IProfileId

用户关联的profileId

返回值

CustomerListEntryBuilder

当前的CustomerListEntryBuilder对象。


Last updated: 2025年10月2日