Class ComputeSourceUsage.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<ComputeSourceUsage>
co.yellowdog.platform.model.ComputeSourceUsage.Builder
- Enclosing class:
ComputeSourceUsage
A builder that can be used to build a new ComputeSourceUsage that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.instanceType(String instanceType) sourceTemplateId(String sourceTemplateId) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<ComputeSourceUsage>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
sourceTemplateId
- Returns:
this.
-
instanceType
- Returns:
this.
-
imageId
- 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.- Overrides:
buildUncheckedin classValidatedBuilder<ComputeSourceUsage>- Returns:
- the object being built
-
toString
-