WorkflowClientBuilder Class

  • java.lang.Object
    • com.azure.analytics.purview.workflow.WorkflowClientBuilder

Implements

public final class WorkflowClientBuilder
implements HttpTrait<WorkflowClientBuilder>, ConfigurationTrait<WorkflowClientBuilder>, TokenCredentialTrait<WorkflowClientBuilder>, EndpointTrait<WorkflowClientBuilder>

A builder for creating a new instance of the WorkflowClient type.

Constructor Summary

Constructor Description
WorkflowClientBuilder()

Create an instance of the WorkflowClientBuilder.

Method Summary

Modifier and Type Method and Description
WorkflowClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

WorkflowAsyncClient buildAsyncClient()

Builds an instance of WorkflowAsyncClient class.

WorkflowClient buildClient()

Builds an instance of WorkflowClient class.

WorkflowClientBuilder clientOptions(ClientOptions clientOptions)

.

WorkflowClientBuilder configuration(Configuration configuration)

.

WorkflowClientBuilder credential(TokenCredential tokenCredential)

.

WorkflowClientBuilder endpoint(String endpoint)

.

WorkflowClientBuilder httpClient(HttpClient httpClient)

.

WorkflowClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

WorkflowClientBuilder pipeline(HttpPipeline pipeline)

.

WorkflowClientBuilder retryOptions(RetryOptions retryOptions)

.

WorkflowClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

WorkflowClientBuilder serviceVersion(PurviewWorkflowServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

WorkflowClientBuilder

public WorkflowClientBuilder()

Create an instance of the WorkflowClientBuilder.

Method Details

addPolicy

public WorkflowClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public WorkflowAsyncClient buildAsyncClient()

Builds an instance of WorkflowAsyncClient class.

Returns:

an instance of WorkflowAsyncClient.

buildClient

public WorkflowClient buildClient()

Builds an instance of WorkflowClient class.

Returns:

an instance of WorkflowClient.

clientOptions

public WorkflowClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public WorkflowClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public WorkflowClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public WorkflowClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public WorkflowClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public WorkflowClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public WorkflowClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public WorkflowClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public WorkflowClientBuilder retryPolicy(RetryPolicy retryPolicy)

Sets The retry policy that will attempt to retry failed requests, if applicable.

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the WorkflowClientBuilder.

serviceVersion

public WorkflowClientBuilder serviceVersion(PurviewWorkflowServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the WorkflowClientBuilder.

Applies to