Class AzureStorageCredential.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<AzureStorageCredential>
co.yellowdog.platform.account.credentials.AzureStorageCredential.Builder
- All Implemented Interfaces:
CredentialBuilder<AzureStorageCredential>
- Enclosing class:
AzureStorageCredential
public static class AzureStorageCredential.Builder
extends ValidatedBuilder<AzureStorageCredential>
implements CredentialBuilder<AzureStorageCredential>
A builder that can be used to build a new AzureStorageCredential that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionaccountKey(String accountKey) The Azure storage account keyaccountName(String accountName) The Azure storage account nameBuilds the object without enforcing validation constraints.description(String description) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<AzureStorageCredential>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
name
- Specified by:
namein interfaceCredentialBuilder<AzureStorageCredential>- Returns:
this.
-
description
- Returns:
this.
-
accountName
The Azure storage account name- Parameters:
accountName- the Azure storage account name- Returns:
this.
-
accountKey
The Azure storage account key- Parameters:
accountKey- the Azure storage account 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<AzureStorageCredential>- Overrides:
buildUncheckedin classValidatedBuilder<AzureStorageCredential>- Returns:
- the object being built
-
toString
-