BatchClientBuilder Class
- java.
lang. Object - com.
azure. compute. batch. BatchClientBuilder
- com.
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 Batch |
Method Summary
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:
buildAsyncClient
public BatchAsyncClient buildAsyncClient()
Builds an instance of BatchAsyncClient class.
Returns:
buildClient
public BatchClient buildClient()
Builds an instance of BatchClient class.
Returns:
clientOptions
public BatchClientBuilder clientOptions(ClientOptions clientOptions)
.
Parameters:
configuration
public BatchClientBuilder configuration(Configuration configuration)
.
Parameters:
credential
public BatchClientBuilder credential(AzureNamedKeyCredential azureNamedKeyCredential)
The AzureNamedKeyCredential used for authentication.
Parameters:
Returns:
credential
public BatchClientBuilder credential(TokenCredential tokenCredential)
.
Parameters:
endpoint
public BatchClientBuilder endpoint(String endpoint)
.
Parameters:
httpClient
public BatchClientBuilder httpClient(HttpClient httpClient)
.
Parameters:
httpLogOptions
public BatchClientBuilder httpLogOptions(HttpLogOptions httpLogOptions)
.
Parameters:
pipeline
public BatchClientBuilder pipeline(HttpPipeline pipeline)
.
Parameters:
retryOptions
public BatchClientBuilder retryOptions(RetryOptions retryOptions)
.
Parameters:
retryPolicy
public BatchClientBuilder retryPolicy(RetryPolicy retryPolicy)
Sets The retry policy that will attempt to retry failed requests, if applicable.
Parameters:
Returns:
serviceVersion
public BatchClientBuilder serviceVersion(BatchServiceVersion serviceVersion)
Sets Service version.
Parameters:
Returns: