Package com.azure.identity
Class VisualStudioCodeCredentialBuilder
- java.lang.Object
-
- com.azure.identity.CredentialBuilderBase<VisualStudioCodeCredentialBuilder>
-
- com.azure.identity.VisualStudioCodeCredentialBuilder
-
public class VisualStudioCodeCredentialBuilder extends CredentialBuilderBase<VisualStudioCodeCredentialBuilder>
Fluent credential builder for instantiating aVisualStudioCodeCredential.- See Also:
VisualStudioCodeCredential
-
-
Constructor Summary
Constructors Constructor Description VisualStudioCodeCredentialBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VisualStudioCodeCredentialbuild()Creates a newVisualStudioCodeCredentialwith the current configurations.VisualStudioCodeCredentialBuildertenantId(String tenantId)Sets the tenant id of the user to authenticate through theVisualStudioCodeCredential.-
Methods inherited from class com.azure.identity.CredentialBuilderBase
configuration, httpClient, httpPipeline, maxRetry, proxyOptions, retryTimeout
-
-
-
-
Method Detail
-
tenantId
public VisualStudioCodeCredentialBuilder tenantId(String tenantId)
Sets the tenant id of the user to authenticate through theVisualStudioCodeCredential. The default is the tenant the user originally authenticated to via via the Visual Studio Code Azure Account plugin.- Parameters:
tenantId- the tenant ID to set.- Returns:
- An updated instance of this builder with the tenant id set as specified.
-
build
public VisualStudioCodeCredential build()
Creates a newVisualStudioCodeCredentialwith the current configurations.- Returns:
- a
VisualStudioCodeCredentialwith the current configurations.
-
-