Class ChannelDefinition
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ChannelDefinition.Builder,ChannelDefinition>
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).
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelDefinition.Builderbuilder()final IntegerSpecify the audio channel you want to define.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ParticipantRoleSpecify the speaker you want to define.final StringSpecify the speaker you want to define.static Class<? extends ChannelDefinition.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
channelId
Specify the audio channel you want to define.
- Returns:
- Specify the audio channel you want to define.
-
participantRole
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
If the service returns an enum value that is not available in the current SDK version,
participantRolewill returnParticipantRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparticipantRoleAsString().- Returns:
- Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
- See Also:
-
participantRoleAsString
Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
If the service returns an enum value that is not available in the current SDK version,
participantRolewill returnParticipantRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromparticipantRoleAsString().- Returns:
- Specify the speaker you want to define. Omitting this parameter is equivalent to specifying both participants.
- See Also:
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ChannelDefinition.Builder,ChannelDefinition>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-