public final class ClientOptions extends Object
applicationId and a list of
Header on the ClientOptions.
Headers
TheHeader could be set using setHeaders. For example if you set
a header, Header("name", "value"), on ClientOptions, it will be set on the request being sent
to Azure Service.
ApplicationId
TheapplicationId is used to configure UserAgentPolicy for telemetry/monitoring purpose. It can be
set using ClientOptions#setApplicationId(String).
More About Azure Core: Telemetry policy
| Constructor and Description |
|---|
ClientOptions() |
| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationId()
Gets the applicationId.
|
Iterable<Header> |
getHeaders()
|
ClientOptions |
setApplicationId(String applicationId)
Sets the applicationId provided.
|
ClientOptions |
setHeaders(Iterable<Header> headers)
Sets the headers, overwriting all previously set headers in the process.
|
public String getApplicationId()
public ClientOptions setApplicationId(String applicationId)
applicationId is used to configure UserAgentPolicy for
telemetry/monitoring purpose. It can be set using ClientOptions#setApplicationId(String).
More About Azure Core: Telemetry policy
applicationId - to be set.ClientOptions.IllegalArgumentException - If applicationId contains space or larger than 24 in length.public ClientOptions setHeaders(Iterable<Header> headers)
Header("name", "value"), on ClientOptions, it will be set on the request being sent to
Azure Service.headers - to be set on the request being sent to Azure Service.ClientOptions.Copyright © 2020 Microsoft Corporation. All rights reserved.