Record Class GitHubTokenProviderArgs
java.lang.Object
java.lang.Record
com.github.copilot.rpc.GitHubTokenProviderArgs
- Record Components:
host- effective GitHub host for which a token is requiredsessionId- session receiving the token, ornullbefore a cloud session has been assigned an IDreason- whether this is the initial acquisition or a refresh
public record GitHubTokenProviderArgs(String host, String sessionId, GitHubTokenAcquireReason reason)
extends Record
Context supplied when a session needs a GitHub token.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubTokenProviderArgs(String host, String sessionId, GitHubTokenAcquireReason reason) Creates an instance of aGitHubTokenProviderArgsrecord 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.host()Returns the value of thehostrecord component.reason()Returns the value of thereasonrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
host
-
sessionId
-
reason
-