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 AzureCliCredentialbuild()Creates a newAzureCliCredentialwith the current configurations.AzureCliCredentialBuildertenantId(String tenantId)Sets the tenant ID of the application.-
Methods inherited from class com.azure.identity.CredentialBuilderBase
configuration, enableAccountIdentifierLogging, 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 newAzureCliCredentialwith the current configurations.- Returns:
- a
AzureCliCredentialwith the current configurations.
-
-