Record Class ConversationRelayRequest.Prompt
java.lang.Object
java.lang.Record
dev.enola.audio.voice.twilio.relay.ConversationRelayRequest.Prompt
- All Implemented Interfaces:
ConversationRelayRequest
- Enclosing interface:
ConversationRelayRequest
public static record ConversationRelayRequest.Prompt(String voicePrompt, Locale lang, boolean last)
extends Record
implements ConversationRelayRequest
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.enola.audio.voice.twilio.relay.ConversationRelayRequest
ConversationRelayRequest.DTMF, ConversationRelayRequest.Error, ConversationRelayRequest.Interrupt, ConversationRelayRequest.Prompt, ConversationRelayRequest.Setup -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lang()Returns the value of thelangrecord component.booleanlast()Returns the value of thelastrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevoicePromptrecord component.
-
Constructor Details
-
Prompt
Creates an instance of aPromptrecord class.- Parameters:
voicePrompt- the value for thevoicePromptrecord componentlang- the value for thelangrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
voicePrompt
Returns the value of thevoicePromptrecord component.- Returns:
- the value of the
voicePromptrecord component
-
lang
Returns the value of thelangrecord component.- Returns:
- the value of the
langrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-