@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ChannelDefinition extends Object implements Serializable, Cloneable, StructuredPojo
Makes it possible to specify which speaker is on which channel. For example, if your agent is the first participant
to speak, you would set ChannelId to 0 (to indicate the first channel) and
ParticipantRole to AGENT (to indicate that it's the agent speaking).
| Constructor and Description |
|---|
ChannelDefinition() |
| Modifier and Type | Method and Description |
|---|---|
ChannelDefinition |
clone() |
boolean |
equals(Object obj) |
Integer |
getChannelId()
Specify the audio channel you want to define.
|
String |
getParticipantRole()
Specify the speaker you want to define.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setChannelId(Integer channelId)
Specify the audio channel you want to define.
|
void |
setParticipantRole(String participantRole)
Specify the speaker you want to define.
|
String |
toString()
Returns a string representation of this object.
|
ChannelDefinition |
withChannelId(Integer channelId)
Specify the audio channel you want to define.
|
ChannelDefinition |
withParticipantRole(ParticipantRole participantRole)
Specify the speaker you want to define.
|
ChannelDefinition |
withParticipantRole(String participantRole)
Specify the speaker you want to define.
|
public void setChannelId(Integer channelId)
Specify the audio channel you want to define.
channelId - Specify the audio channel you want to define.public Integer getChannelId()
Specify the audio channel you want to define.
public ChannelDefinition withChannelId(Integer channelId)
Specify the audio channel you want to define.
channelId - Specify the audio channel you want to define.public void setParticipantRole(String participantRole)
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic String getParticipantRole()
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
ParticipantRolepublic ChannelDefinition withParticipantRole(String participantRole)
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic ChannelDefinition withParticipantRole(ParticipantRole participantRole)
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
participantRole - Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both
participants.ParticipantRolepublic String toString()
toString in class ObjectObject.toString()public ChannelDefinition clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.