ChannelInfo object.
Extends
Builder
Constructors
new ChannelInfoBuilder()
new ChannelInfoBuilder(): ChannelInfoBuilder
Returns
ChannelInfoBuilderMethods
build()
build(): IChannelInfoBuilds the
ChannelInfo object from the fields set in the ChannelInfoBuilder object.
Throws
InvalidArgumentErrorif one or more of the required fields are missing.IllegalStateErrorif the function is called after this builder instance has already built an object once.
Returns
IChannelInfoIChannelInfo The built ChannelInfo object.
channelDescriptor()
channelDescriptor(channelDescriptor: IChannelDescriptor): ChannelInfoBuilderSets the
ChannelDescriptor of the builder. This is required.
Parameters
channelDescriptor
IChannelDescriptorThrows
IllegalStateErrorif the function is called after this builder instance has already built an object once.
Returns
ChannelInfoBuilderChannelInfoBuilder The ChannelInfoBuilder object with channelDescriptor set.
channelMetadata()
channelMetadata(metadata: IChannelMetadata): ChannelInfoBuilderSets the
ChannelMetadata of the builder. This is required.
Parameters
metadata
IChannelMetadataThrows
IllegalStateErrorif the function is called after this builder instance has already built an object once.
Returns
ChannelInfoBuilderChannelInfoBuilder The ChannelInfoBuilder object with channelMetadata set.
