Class SparkClientBuilder

java.lang.Object
com.azure.analytics.synapse.spark.SparkClientBuilder

public final class SparkClientBuilder extends Object
A builder for creating a new instance of the SparkClient type.
  • Constructor Details

    • SparkClientBuilder

      public SparkClientBuilder()
      Create an instance of the SparkClientBuilder.
  • Method Details

    • endpoint

      public SparkClientBuilder endpoint(String endpoint)
      Sets The workspace development endpoint, for example https://myworkspace.dev.azuresynapse.net.
      Parameters:
      endpoint - the endpoint value.
      Returns:
      the SparkClientBuilder.
    • livyApiVersion

      public SparkClientBuilder livyApiVersion(String livyApiVersion)
      Sets Valid api-version for the request.
      Parameters:
      livyApiVersion - the livyApiVersion value.
      Returns:
      the SparkClientBuilder.
    • sparkPoolName

      public SparkClientBuilder sparkPoolName(String sparkPoolName)
      Sets Name of the spark pool.
      Parameters:
      sparkPoolName - the sparkPoolName value.
      Returns:
      the SparkClientBuilder.
    • pipeline

      public SparkClientBuilder pipeline(HttpPipeline pipeline)
      Sets The HTTP pipeline to send requests through.
      Parameters:
      pipeline - the pipeline value.
      Returns:
      the SparkClientBuilder.
    • serializerAdapter

      public SparkClientBuilder serializerAdapter(SerializerAdapter serializerAdapter)
      Sets The serializer to serialize an object into a string.
      Parameters:
      serializerAdapter - the serializerAdapter value.
      Returns:
      the SparkClientBuilder.
    • httpClient

      public SparkClientBuilder httpClient(HttpClient httpClient)
      Sets The HTTP client used to send the request.
      Parameters:
      httpClient - the httpClient value.
      Returns:
      the SparkClientBuilder.
    • configuration

      public SparkClientBuilder configuration(Configuration configuration)
      Sets The configuration store that is used during construction of the service client.
      Parameters:
      configuration - the configuration value.
      Returns:
      the SparkClientBuilder.
    • credential

      public SparkClientBuilder credential(TokenCredential tokenCredential)
      Sets The TokenCredential used for authentication.
      Parameters:
      tokenCredential - the tokenCredential value.
      Returns:
      the SparkClientBuilder.
    • httpLogOptions

      public SparkClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
      Sets The logging configuration for HTTP requests and responses.
      Parameters:
      httpLogOptions - the httpLogOptions value.
      Returns:
      the SparkClientBuilder.
    • retryPolicy

      public SparkClientBuilder retryPolicy(RetryPolicy retryPolicy)
      Sets The retry policy that will attempt to retry failed requests, if applicable.
      Parameters:
      retryPolicy - the retryPolicy value.
      Returns:
      the SparkClientBuilder.
    • clientOptions

      public SparkClientBuilder clientOptions(ClientOptions clientOptions)
      Sets The client options such as application ID and custom headers to set on a request.
      Parameters:
      clientOptions - the clientOptions value.
      Returns:
      the SparkClientBuilder.
    • addPolicy

      public SparkClientBuilder addPolicy(HttpPipelinePolicy customPolicy)
      Adds a custom Http pipeline policy.
      Parameters:
      customPolicy - The custom Http pipeline policy to add.
      Returns:
      the SparkClientBuilder.
    • buildSparkBatchAsyncClient

      public SparkBatchAsyncClient buildSparkBatchAsyncClient()
      Builds an instance of SparkBatchAsyncClient async client.
      Returns:
      an instance of SparkBatchAsyncClient.
    • buildSparkSessionAsyncClient

      public SparkSessionAsyncClient buildSparkSessionAsyncClient()
      Builds an instance of SparkSessionAsyncClient async client.
      Returns:
      an instance of SparkSessionAsyncClient.
    • buildSparkBatchClient

      public SparkBatchClient buildSparkBatchClient()
      Builds an instance of SparkBatchClient sync client.
      Returns:
      an instance of SparkBatchClient.
    • buildSparkSessionClient

      public SparkSessionClient buildSparkSessionClient()
      Builds an instance of SparkSessionClient sync client.
      Returns:
      an instance of SparkSessionClient.