public class ChannelsResponse extends Object implements Serializable
Constructor and Description |
---|
ChannelsResponse() |
Modifier and Type | Method and Description |
---|---|
ChannelsResponse |
addChannelsEntry(String key,
ChannelResponse value)
A map of channels, with the ChannelType as the key and the Channel as the
value.
|
ChannelsResponse |
clearChannelsEntries()
Removes all the entries added into Channels.
|
boolean |
equals(Object obj) |
Map<String,ChannelResponse> |
getChannels()
A map of channels, with the ChannelType as the key and the Channel as the
value.
|
int |
hashCode() |
void |
setChannels(Map<String,ChannelResponse> channels)
A map of channels, with the ChannelType as the key and the Channel as the
value.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ChannelsResponse |
withChannels(Map<String,ChannelResponse> channels)
A map of channels, with the ChannelType as the key and the Channel as the
value.
|
public Map<String,ChannelResponse> getChannels()
public void setChannels(Map<String,ChannelResponse> channels)
channels
- A map of channels, with the ChannelType as the key and
the Channel as the value.public ChannelsResponse withChannels(Map<String,ChannelResponse> channels)
Returns a reference to this object so that method calls can be chained together.
channels
- A map of channels, with the ChannelType as the key and
the Channel as the value.public ChannelsResponse addChannelsEntry(String key, ChannelResponse value)
The method adds a new key-value pair into Channels parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into Channels.value
- The corresponding value of the entry to be added into
Channels.public ChannelsResponse clearChannelsEntries()
Returns a reference to this object so that method calls can be chained together.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.