Record Class SessionMcpOauthLoginParams
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.SessionMcpOauthLoginParams
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record SessionMcpOauthLoginParams(String sessionId, String serverName, Boolean forceReauth, String clientName, String callbackSuccessMessage, String clientId, String clientSecret, Boolean publicClient, McpOauthLoginGrantType grantType)
extends Record
Remote MCP server name and optional overrides controlling reauthentication, OAuth client display name, callback success-page copy, and static OAuth client selection.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionSessionMcpOauthLoginParams(String sessionId, String serverName, Boolean forceReauth, String clientName, String callbackSuccessMessage, String clientId, String clientSecret, Boolean publicClient, McpOauthLoginGrantType grantType) Creates an instance of aSessionMcpOauthLoginParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecallbackSuccessMessagerecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of theclientNamerecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theforceReauthrecord component.Returns the value of thegrantTyperecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepublicClientrecord component.Returns the value of theserverNamerecord component.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SessionMcpOauthLoginParams
public SessionMcpOauthLoginParams(String sessionId, String serverName, Boolean forceReauth, String clientName, String callbackSuccessMessage, String clientId, String clientSecret, Boolean publicClient, McpOauthLoginGrantType grantType) Creates an instance of aSessionMcpOauthLoginParamsrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentserverName- the value for theserverNamerecord componentforceReauth- the value for theforceReauthrecord componentclientName- the value for theclientNamerecord componentcallbackSuccessMessage- the value for thecallbackSuccessMessagerecord componentclientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentpublicClient- the value for thepublicClientrecord componentgrantType- the value for thegrantTyperecord 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
-
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
forceReauth
Returns the value of theforceReauthrecord component.- Returns:
- the value of the
forceReauthrecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
callbackSuccessMessage
Returns the value of thecallbackSuccessMessagerecord component.- Returns:
- the value of the
callbackSuccessMessagerecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
publicClient
Returns the value of thepublicClientrecord component.- Returns:
- the value of the
publicClientrecord component
-
grantType
Returns the value of thegrantTyperecord component.- Returns:
- the value of the
grantTyperecord component
-