Module com.github.copilot.sdk.java
Record Class SlashCommandInfo
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.SlashCommandInfo
@Generated("copilot-sdk-codegen")
public record SlashCommandInfo(String name, List<String> aliases, String description, SlashCommandKind kind, SlashCommandInput input, Boolean allowDuringAgentExecution, Boolean experimental)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSlashCommandInfo(String name, List<String> aliases, String description, SlashCommandKind kind, SlashCommandInput input, Boolean allowDuringAgentExecution, Boolean experimental) Creates an instance of aSlashCommandInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionaliases()Returns the value of thealiasesrecord component.Returns the value of theallowDuringAgentExecutionrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentalrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.kind()Returns the value of thekindrecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SlashCommandInfo
public SlashCommandInfo(String name, List<String> aliases, String description, SlashCommandKind kind, SlashCommandInput input, Boolean allowDuringAgentExecution, Boolean experimental) Creates an instance of aSlashCommandInforecord class.- Parameters:
name- the value for thenamerecord componentaliases- the value for thealiasesrecord componentdescription- the value for thedescriptionrecord componentkind- the value for thekindrecord componentinput- the value for theinputrecord componentallowDuringAgentExecution- the value for theallowDuringAgentExecutionrecord componentexperimental- the value for theexperimentalrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
aliases
Returns the value of thealiasesrecord component.- Returns:
- the value of the
aliasesrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
kind
Returns the value of thekindrecord component.- Returns:
- the value of the
kindrecord component
-
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
allowDuringAgentExecution
Returns the value of theallowDuringAgentExecutionrecord component.- Returns:
- the value of the
allowDuringAgentExecutionrecord component
-
experimental
Returns the value of theexperimentalrecord component.- Returns:
- the value of the
experimentalrecord component
-