Class NodeSearch.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NodeSearch>
co.yellowdog.platform.interaction.scheduler.NodeSearch.Builder
- Enclosing class:
NodeSearch
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.deregisteredTime(InstantRange deregisteredTime) instanceId(String instanceId) instanceType(String instanceType) preemptionWarningTime(InstantRange preemptionWarningTime) provider(CloudProvider provider) providers(Collection<? extends CloudProvider> providers) ram(DoubleRange ram) registeredTime(InstantRange registeredTime) sortDirection(SortDirection sortDirection) status(NodeStatus status) statuses(Collection<? extends NodeStatus> statuses) toString()vcpus(DoubleRange vcpus) workerPoolId(String workerPoolId) workerRegisteredTime(InstantRange workerRegisteredTime) workerStatus(WorkerStatus workerStatus) workerStatuses(Collection<? extends WorkerStatus> workerStatuses) workerTaskGroupId(String workerTaskGroupId) Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<NodeSearch>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
workerPoolId
- Returns:
this.
-
status
-
statuses
-
clearStatuses
-
provider
-
providers
-
clearProviders
-
instanceId
- Returns:
this.
-
region
- Returns:
this.
-
instanceType
- Returns:
this.
-
ram
- Returns:
this.
-
vcpus
- Returns:
this.
-
workerRegisteredTime
- Returns:
this.
-
registeredTime
- Returns:
this.
-
deregisteredTime
- Returns:
this.
-
preemptionWarningTime
- Returns:
this.
-
workerTaskGroupId
- Returns:
this.
-
workerTag
- Returns:
this.
-
workerStatus
-
workerStatuses
-
clearWorkerStatuses
-
sortField
- Returns:
this.
-
sortDirection
- 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<NodeSearch>- Returns:
- the object being built
-
toString
-