Class AzureClientCredential.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AzureClientCredential>
co.yellowdog.platform.account.credentials.AzureClientCredential.Builder
- All Implemented Interfaces:
CredentialBuilder<AzureClientCredential>
- Enclosing class:
AzureClientCredential
public static class AzureClientCredential.Builder
extends ValidatedBuilder<AzureClientCredential>
implements CredentialBuilder<AzureClientCredential>
A builder that can be used to build a new AzureClientCredential that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.The Azure Client IDdescription(String description) The Azure KeysubscriptionId(String subscriptionId) The Azure Subscription IDThe Azure Tenant IDtoString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AzureClientCredential>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
name
- Specified by:
namein interfaceCredentialBuilder<AzureClientCredential>- Returns:
this.
-
description
- Returns:
this.
-
clientId
The Azure Client ID- Parameters:
clientId- the Azure Client ID- Returns:
this.
-
tenantId
The Azure Tenant ID- Parameters:
tenantId- the Azure Tenant ID- Returns:
this.
-
subscriptionId
The Azure Subscription ID- Parameters:
subscriptionId- the Azure Subscription ID- Returns:
this.
-
key
The Azure Key- Parameters:
key- the Azure key- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Specified by:
buildUncheckedin interfaceCredentialBuilder<AzureClientCredential>- Overrides:
buildUncheckedin classValidatedBuilder<AzureClientCredential>- Returns:
- the object being built
-
toString
-