Record Class AuthIdentity
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AuthIdentity
@Generated("copilot-sdk-codegen")
public record AuthIdentity(AuthInfoType type, String host, String login, String envVar, String registrationId, CopilotUserResponse copilotUser)
extends Record
Credential-free authentication identity safe to expose to hosts and user interfaces.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAuthIdentity(AuthInfoType type, String host, String login, String envVar, String registrationId, CopilotUserResponse copilotUser) Creates an instance of aAuthIdentityrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecopilotUserrecord component.envVar()Returns the value of theenvVarrecord 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.login()Returns the value of theloginrecord component.Returns the value of theregistrationIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AuthIdentity
public AuthIdentity(AuthInfoType type, String host, String login, String envVar, String registrationId, CopilotUserResponse copilotUser) Creates an instance of aAuthIdentityrecord class.- Parameters:
type- the value for thetyperecord componenthost- the value for thehostrecord componentlogin- the value for theloginrecord componentenvVar- the value for theenvVarrecord componentregistrationId- the value for theregistrationIdrecord componentcopilotUser- the value for thecopilotUserrecord 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). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-
envVar
Returns the value of theenvVarrecord component.- Returns:
- the value of the
envVarrecord component
-
registrationId
Returns the value of theregistrationIdrecord component.- Returns:
- the value of the
registrationIdrecord component
-
copilotUser
Returns the value of thecopilotUserrecord component.- Returns:
- the value of the
copilotUserrecord component
-