Class AzureDeveloperCliCredentialBuilder

All Implemented Interfaces:
com.azure.core.client.traits.HttpTrait<AzureDeveloperCliCredentialBuilder>

public class AzureDeveloperCliCredentialBuilder extends CredentialBuilderBase<AzureDeveloperCliCredentialBuilder>
Fluent credential builder for instantiating a AzureDeveloperCliCredential.
See Also:
  • Constructor Details

    • AzureDeveloperCliCredentialBuilder

      public AzureDeveloperCliCredentialBuilder()
  • Method Details

    • tenantId

      public AzureDeveloperCliCredentialBuilder 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

      Creates a new AzureDeveloperCliCredential with the current configurations.
      Returns:
      a AzureDeveloperCliCredential with the current configurations.
    • additionallyAllowedTenants

      public AzureDeveloperCliCredentialBuilder additionallyAllowedTenants(String... additionallyAllowedTenants)
      Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for tenantId this option will have no effect, and the credential will acquire tokens for any requested tenant.
      Parameters:
      additionallyAllowedTenants - the additionally allowed tenants.
      Returns:
      An updated instance of this builder with the additional tenants configured.
    • additionallyAllowedTenants

      public AzureDeveloperCliCredentialBuilder additionallyAllowedTenants(List<String> additionallyAllowedTenants)
      Specifies tenants in addition to the specified tenantId for which the credential may acquire tokens. Add the wildcard value "*" to allow the credential to acquire tokens for any tenant the logged in account can access. If no value is specified for tenantId this option will have no effect, and the credential will acquire tokens for any requested tenant.
      Parameters:
      additionallyAllowedTenants - the additionally allowed tenants.
      Returns:
      An updated instance of this builder with the additional tenants configured.