Module com.github.copilot.sdk.java
Record Class SlashCommandInput
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.SlashCommandInput
@Generated("copilot-sdk-codegen")
public record SlashCommandInput(String hint, Boolean required, SlashCommandInputCompletion completion, Boolean preserveMultilineInput)
extends Record
Optional unstructured input hint
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSlashCommandInput(String hint, Boolean required, SlashCommandInputCompletion completion, Boolean preserveMultilineInput) Creates an instance of aSlashCommandInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.Returns the value of thepreserveMultilineInputrecord component.required()Returns the value of therequiredrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlashCommandInput
public SlashCommandInput(String hint, Boolean required, SlashCommandInputCompletion completion, Boolean preserveMultilineInput) Creates an instance of aSlashCommandInputrecord class.- Parameters:
hint- the value for thehintrecord componentrequired- the value for therequiredrecord componentcompletion- the value for thecompletionrecord componentpreserveMultilineInput- the value for thepreserveMultilineInputrecord 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
public final int 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. All components in this record class are compared withObjects::equals(Object,Object). -
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-
required
Returns the value of therequiredrecord component.- Returns:
- the value of the
requiredrecord component
-
completion
Returns the value of thecompletionrecord component.- Returns:
- the value of the
completionrecord component
-
preserveMultilineInput
Returns the value of thepreserveMultilineInputrecord component.- Returns:
- the value of the
preserveMultilineInputrecord component
-