Share via


BatchClientBuilder Class

  • java.lang.Object
    • com.azure.compute.batch.BatchClientBuilder

Implements

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

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

Constructor Summary

Constructor Description
BatchClientBuilder()

Create an instance of the BatchClientBuilder.

Method Summary

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

.

BatchAsyncClient buildAsyncClient()

Builds an instance of BatchAsyncClient class.

BatchClient buildClient()

Builds an instance of BatchClient class.

BatchClientBuilder clientOptions(ClientOptions clientOptions)

.

BatchClientBuilder configuration(Configuration configuration)

.

BatchClientBuilder credential(AzureNamedKeyCredential azureNamedKeyCredential)

The AzureNamedKeyCredential used for authentication.

BatchClientBuilder credential(TokenCredential tokenCredential)

.

BatchClientBuilder endpoint(String endpoint)

.

BatchClientBuilder httpClient(HttpClient httpClient)

.

BatchClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

BatchClientBuilder pipeline(HttpPipeline pipeline)

.

BatchClientBuilder retryOptions(RetryOptions retryOptions)

.

BatchClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

BatchClientBuilder serviceVersion(BatchServiceVersion serviceVersion)

Sets Service version.

Methods inherited from java.lang.Object

Constructor Details

BatchClientBuilder

public BatchClientBuilder()

Create an instance of the BatchClientBuilder.

Method Details

addPolicy

public BatchClientBuilder addPolicy(HttpPipelinePolicy customPolicy)

.

Parameters:

customPolicy

buildAsyncClient

public BatchAsyncClient buildAsyncClient()

Builds an instance of BatchAsyncClient class.

Returns:

an instance of BatchAsyncClient.

buildClient

public BatchClient buildClient()

Builds an instance of BatchClient class.

Returns:

an instance of BatchClient.

clientOptions

public BatchClientBuilder clientOptions(ClientOptions clientOptions)

.

Parameters:

clientOptions

configuration

public BatchClientBuilder configuration(Configuration configuration)

.

Parameters:

configuration

credential

public BatchClientBuilder credential(AzureNamedKeyCredential azureNamedKeyCredential)

The AzureNamedKeyCredential used for authentication.

Parameters:

azureNamedKeyCredential - the AzureNamedKeyCredential.

Returns:

the credential.

credential

public BatchClientBuilder credential(TokenCredential tokenCredential)

.

Parameters:

tokenCredential

endpoint

public BatchClientBuilder endpoint(String endpoint)

.

Parameters:

endpoint

httpClient

public BatchClientBuilder httpClient(HttpClient httpClient)

.

Parameters:

httpClient

httpLogOptions

public BatchClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)

.

Parameters:

httpLogOptions

pipeline

public BatchClientBuilder pipeline(HttpPipeline pipeline)

.

Parameters:

pipeline

retryOptions

public BatchClientBuilder retryOptions(RetryOptions retryOptions)

.

Parameters:

retryOptions

retryPolicy

public BatchClientBuilder retryPolicy(RetryPolicy retryPolicy)

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

Parameters:

retryPolicy - the retryPolicy value.

Returns:

the BatchClientBuilder.

serviceVersion

public BatchClientBuilder serviceVersion(BatchServiceVersion serviceVersion)

Sets Service version.

Parameters:

serviceVersion - the serviceVersion value.

Returns:

the BatchClientBuilder.

Applies to