Record Class GitHubTokenAcquireRequest
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.GitHubTokenAcquireRequest
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record GitHubTokenAcquireRequest(String registrationId, String host, String sessionId, GitHubTokenAcquireReason reason)
extends Record
Asks the SDK client to acquire a GitHub access token from an opaque callback registration.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionGitHubTokenAcquireRequest(String registrationId, String host, String sessionId, GitHubTokenAcquireReason reason) Creates an instance of aGitHubTokenAcquireRequestrecord 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 theregistrationIdrecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GitHubTokenAcquireRequest
public GitHubTokenAcquireRequest(String registrationId, String host, String sessionId, GitHubTokenAcquireReason reason) Creates an instance of aGitHubTokenAcquireRequestrecord class.- Parameters:
registrationId- the value for theregistrationIdrecord componenthost- the value for thehostrecord componentsessionId- the value for thesessionIdrecord 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). -
registrationId
Returns the value of theregistrationIdrecord component.- Returns:
- the value of the
registrationIdrecord component
-
host
Returns the value of thehostrecord component.- Returns:
- the value of the
hostrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-