Amazon Developer

as

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

ChannelInfoBuilder

ChannelInfoBuilder

ChannelInfoオブジェクトのインスタンスを作成するビルダー。

拡張

  • Builder

コンストラクタ

new ChannelInfoBuilder()

new ChannelInfoBuilder(): ChannelInfoBuilder

戻り値

ChannelInfoBuilder

メソッド

build()

build(): IChannelInfo

ChannelInfoBuilderオブジェクトに設定されているフィールドを使用して、ChannelInfoオブジェクトをビルドします。

エラー

  • 必須フィールドが1つ以上欠落していると、InvalidArgumentErrorが発生します。
  • このビルダーインスタンスが既にオブジェクトを1回ビルドした後に関数が呼び出されると、IllegalStateErrorが発生します。

戻り値

IChannelInfo

IChannelInfo:ビルドされたChannelInfoオブジェクト。


channelDescriptor()

channelDescriptor(channelDescriptor: IChannelDescriptor): ChannelInfoBuilder

ビルダーのChannelDescriptorを設定します。これは必須です。

パラメーター

channelDescriptor

IChannelDescriptor

エラー

  • このビルダーインスタンスが既にオブジェクトを1回ビルドした後に関数が呼び出されると、IllegalStateErrorが発生します。

戻り値

ChannelInfoBuilder

ChannelInfoBuilder:channelDescriptorが設定されたChannelInfoBuilderオブジェクト。


channelMetadata()

channelMetadata(metadata: IChannelMetadata): ChannelInfoBuilder

ビルダーのChannelMetadataを設定します。これは必須です。

パラメーター

metadata

IChannelMetadata

エラー

  • このビルダーインスタンスが既にオブジェクトを1回ビルドした後に関数が呼び出されると、IllegalStateErrorが発生します。

戻り値

ChannelInfoBuilder

ChannelInfoBuilder:channelMetadataが設定されたChannelInfoBuilderオブジェクト。


Last updated: 2026年7月31日