Class ComputeRequirementStaticTemplate.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<ComputeRequirementStaticTemplate>
co.yellowdog.platform.model.ComputeRequirementStaticTemplate.Builder
- Enclosing class:
ComputeRequirementStaticTemplate
public static class ComputeRequirementStaticTemplate.Builder
extends ValidatedBuilder<ComputeRequirementStaticTemplate>
A builder that can be used to build a new ComputeRequirementStaticTemplate that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.description(String description) instanceTag(@NotBlank @InstanceTagKey String instanceTagKey, @InstanceTagValue String instanceTagValue) instanceTags(Map<? extends @NotBlank @InstanceTagKey String, ? extends @InstanceTagValue String> instanceTags) sources(List<@NotNull @Valid ComputeSourceUsage> sources) strategyType(String strategyType) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<ComputeRequirementStaticTemplate>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
id
- Returns:
this.
-
name
- Returns:
this.
-
namespace
- Returns:
this.
-
description
- Returns:
this.
-
strategyType
- Returns:
this.
-
imagesId
- Returns:
this.
-
userData
- Returns:
this.
-
instanceTag
public ComputeRequirementStaticTemplate.Builder instanceTag(@NotBlank @InstanceTagKey @NotBlank @InstanceTagKey String instanceTagKey, @InstanceTagValue @InstanceTagValue String instanceTagValue) -
instanceTags
public ComputeRequirementStaticTemplate.Builder instanceTags(Map<? extends @NotBlank @InstanceTagKey String, ? extends @InstanceTagValue String> instanceTags) -
clearInstanceTags
-
sources
public ComputeRequirementStaticTemplate.Builder sources(List<@NotNull @Valid ComputeSourceUsage> sources) - 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<ComputeRequirementStaticTemplate>- Returns:
- the object being built
-
toString
-