Package com.azure.identity
Class AzureCliCredentialBuilder
- java.lang.Object
-
- com.azure.identity.CredentialBuilderBase<AzureCliCredentialBuilder>
-
- com.azure.identity.AzureCliCredentialBuilder
-
public class AzureCliCredentialBuilder extends CredentialBuilderBase<AzureCliCredentialBuilder>
Fluent credential builder for instantiating aAzureCliCredential
.- See Also:
AzureCliCredential
-
-
Constructor Summary
Constructors Constructor Description AzureCliCredentialBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AzureCliCredential
build()
Creates a newAzureCliCredential
with the current configurations.AzureCliCredentialBuilder
tenantId(String tenantId)
Sets the tenant ID of the application.-
Methods inherited from class com.azure.identity.CredentialBuilderBase
configuration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
-
-
-
-
Method Detail
-
tenantId
public AzureCliCredentialBuilder tenantId(String tenantId)
Sets the tenant ID of the application.- Parameters:
tenantId
- the tenant ID of the application.- Returns:
- An updated instance of this builder with the tenant id set as specified.
-
build
public AzureCliCredential build()
Creates a newAzureCliCredential
with the current configurations.- Returns:
- a
AzureCliCredential
with the current configurations.
-
-