Record Class SessionAuthGetStatusResult
java.lang.Object
java.lang.Record
com.github.copilot.sdk.generated.rpc.SessionAuthGetStatusResult
@Generated("copilot-sdk-codegen")
public record SessionAuthGetStatusResult(Boolean isAuthenticated, AuthInfoType authType, String host, String login, String statusMessage, String copilotPlan)
extends Record
Result for the
session.auth.getStatus RPC method.- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionAuthGetStatusResult(Boolean isAuthenticated, AuthInfoType authType, String host, String login, String statusMessage, String copilotPlan) Creates an instance of aSessionAuthGetStatusResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthType()Returns the value of theauthTyperecord component.Returns the value of thecopilotPlanrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.Returns the value of theisAuthenticatedrecord component.login()Returns the value of theloginrecord component.Returns the value of thestatusMessagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionAuthGetStatusResult
public SessionAuthGetStatusResult(Boolean isAuthenticated, AuthInfoType authType, String host, String login, String statusMessage, String copilotPlan) Creates an instance of aSessionAuthGetStatusResultrecord class.- Parameters:
isAuthenticated- the value for theisAuthenticatedrecord componentauthType- the value for theauthTyperecord componenthost- the value for thehostrecord componentlogin- the value for theloginrecord componentstatusMessage- the value for thestatusMessagerecord componentcopilotPlan- the value for thecopilotPlanrecord 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). -
isAuthenticated
Returns the value of theisAuthenticatedrecord component.- Returns:
- the value of the
isAuthenticatedrecord component
-
authType
Returns the value of theauthTyperecord component.- Returns:
- the value of the
authTyperecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
login
Returns the value of theloginrecord component.- Returns:
- the value of the
loginrecord component
-
statusMessage
Returns the value of thestatusMessagerecord component.- Returns:
- the value of the
statusMessagerecord component
-
copilotPlan
Returns the value of thecopilotPlanrecord component.- Returns:
- the value of the
copilotPlanrecord component
-