Record Class SessionShutdownParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionShutdownParams
@Generated("copilot-sdk-codegen")
public record SessionShutdownParams(String sessionId, ShutdownType type, String reason)
extends Record
Parameters for shutting down the session
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionShutdownParams(String sessionId, ShutdownType type, String reason) Creates an instance of aSessionShutdownParamsrecord class. -
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.reason()Returns the value of thereasonrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SessionShutdownParams
Creates an instance of aSessionShutdownParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componenttype- the value for thetyperecord componentreason- the value for thereasonrecord 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). -
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-