Class MachineImageFamily.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<MachineImageFamily>
co.yellowdog.platform.model.MachineImageFamily.Builder
- Enclosing class:
MachineImageFamily
A builder that can be used to build a new MachineImageFamily that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionaccess(ImageAccess access) Builds the object without enforcing validation constraints.imageGroup(MachineImageGroup imageGroup) imageGroups(Collection<? extends MachineImageGroup> imageGroups) metadataSpecification(String metadataSpecificationKey, String metadataSpecificationValue) metadataSpecification(Map<? extends String, ? extends String> metadataSpecification) osType(ImageOsType osType) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<MachineImageFamily>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
namespace
- Returns:
this.
-
name
- Returns:
this.
-
osType
- Returns:
this.
-
access
- Returns:
this.
-
metadataSpecification
public MachineImageFamily.Builder metadataSpecification(String metadataSpecificationKey, String metadataSpecificationValue) -
metadataSpecification
public MachineImageFamily.Builder metadataSpecification(Map<? extends String, ? extends String> metadataSpecification) -
clearMetadataSpecification
-
imageGroup
-
imageGroups
-
clearImageGroups
-
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.- Overrides:
buildUncheckedin classValidatedBuilder<MachineImageFamily>- Returns:
- the object being built
-
toString
-