as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Interface for ChannelResponseBuilder that is used to build a IChangeChannelResponse.

Methods

status()

status(status: ChangeChannelStatus): IChangeChannelResponseBuilder
Add change channel command status to the builder.

Parameters

status
ChangeChannelStatus The change channel command status to add.

Returns

IChangeChannelResponseBuilder An IChangeChannelResponseBuilder.

data()

data(data: string): IChangeChannelResponseBuilder
Add optional app-specific data to the builder.

Parameters

data
string App-specific data to add.

Returns

IChangeChannelResponseBuilder An IChangeChannelResponseBuilder.

build()

build(): IChangeChannelResponse
Build an IChangeChannelResponse.

Throws

  • InvalidArgumentError if it fails to create an IChangeChannelResponse.

Returns

IChangeChannelResponse IChangeChannelResponse The channel response, if built successfully.
最后修改于 2026年8月25日