Class SessionAccountsLoginBeginRequest

java.lang.Object
com.github.copilot.generated.rpc.SessionAccountsLoginBeginRequest

@CopilotExperimental @Generated("copilot-sdk-codegen") public final class SessionAccountsLoginBeginRequest extends Object
Begin an interactive login flow for a provider kind, optionally reusing a cached base identity or explicitly requesting provider account selection.

Required inputs are constructor arguments. Optional inputs have fluent setters.

Since:
1.0.0
  • Constructor Details

    • SessionAccountsLoginBeginRequest

      public SessionAccountsLoginBeginRequest(LoginProviderKind kind)
      Creates a request with its required inputs.
      Parameters:
      kind - The provider kind to sign in with.
  • Method Details

    • getKind

      public LoginProviderKind getKind()
      Returns the kind property.
      Returns:
      The provider kind to sign in with.
    • getMode

      public AuthLoginMode getMode()
      Returns the mode property.
      Returns:
      Neutral identity-selection intent. Omitted is equivalent to default.
    • getAccountId

      public String getAccountId()
      Returns the accountId property.
      Returns:
      Opaque cached base identity id returned by accounts.enumerate loginAccounts. Valid only with default mode; consumers must not parse it.
    • setMode

      Sets the mode property.
      Parameters:
      value - Neutral identity-selection intent. Omitted is equivalent to default.
      Returns:
      this request
    • setAccountId

      public SessionAccountsLoginBeginRequest setAccountId(String value)
      Sets the accountId property.
      Parameters:
      value - Opaque cached base identity id returned by accounts.enumerate loginAccounts. Valid only with default mode; consumers must not parse it.
      Returns:
      this request