Record Class UserInputRequestedEvent.UserInputRequestedEventData
java.lang.Object
java.lang.Record
com.github.copilot.generated.UserInputRequestedEvent.UserInputRequestedEventData
- Enclosing class:
UserInputRequestedEvent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowFreeformrecord component.choices()Returns the value of thechoicesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.question()Returns the value of thequestionrecord component.Returns the value of therequestIdrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UserInputRequestedEventData
public UserInputRequestedEventData(String requestId, String question, List<String> choices, Boolean allowFreeform, String toolCallId) Creates an instance of aUserInputRequestedEventDatarecord class.- Parameters:
requestId- the value for therequestIdrecord componentquestion- the value for thequestionrecord componentchoices- the value for thechoicesrecord componentallowFreeform- the value for theallowFreeformrecord componenttoolCallId- the value for thetoolCallIdrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
question
Returns the value of thequestionrecord component.- Returns:
- the value of the
questionrecord component
-
choices
-
allowFreeform
Returns the value of theallowFreeformrecord component.- Returns:
- the value of the
allowFreeformrecord component
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-