Interface GetSessionEndpointResponse.Builder

  • Method Details

    • endpoint

      The Spark Connect endpoint URL to use in the PySpark client.

      Parameters:
      endpoint - The Spark Connect endpoint URL to use in the PySpark client.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authToken

      A time-limited authentication token used to connect to the Spark Connect endpoint.

      Parameters:
      authToken - A time-limited authentication token used to connect to the Spark Connect endpoint.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • authTokenExpirationTime

      GetSessionEndpointResponse.Builder authTokenExpirationTime(Instant authTokenExpirationTime)

      The time at which the authentication token expires. After this time, call GetSessionEndpoint again to obtain a new token.

      Parameters:
      authTokenExpirationTime - The time at which the authentication token expires. After this time, call GetSessionEndpoint again to obtain a new token.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • credentials

      Username and password used to authenticate with the Spark Connect server when connecting directly over VPC peering.

      Parameters:
      credentials - Username and password used to authenticate with the Spark Connect server when connecting directly over VPC peering.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • credentials

      Username and password used to authenticate with the Spark Connect server when connecting directly over VPC peering.

      This is a convenience method that creates an instance of the Credentials.Builder avoiding the need to create one manually via Credentials.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to credentials(Credentials).

      Parameters:
      credentials - a consumer that will call methods on Credentials.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: