Class NodeRunCommandAction.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NodeRunCommandAction>
co.yellowdog.platform.model.NodeRunCommandAction.Builder
- All Implemented Interfaces:
NodeAction.Builder<NodeRunCommandAction>
- Enclosing class:
NodeRunCommandAction
public static class NodeRunCommandAction.Builder
extends ValidatedBuilder<NodeRunCommandAction>
implements NodeAction.Builder<NodeRunCommandAction>
A builder that can be used to build a new NodeRunCommandAction that is automatically validated on build.
-
Method Summary
Modifier and TypeMethodDescriptionarguments(@NonNull Collection<? extends String> arguments) Builds the object without enforcing validation constraints.environment(@NotBlank String environmentKey, String environmentValue) environment(Map<? extends @NotBlank String, ? extends String> environment) nodeIdFilter(NodeIdFilter nodeIdFilter) nodeTypes(Collection<? extends @NotBlank String> nodeTypes) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<NodeRunCommandAction>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface NodeAction.Builder
build
-
Method Details
-
argument
-
arguments
public NodeRunCommandAction.Builder arguments(@NonNull @NonNull Collection<? extends String> arguments) -
arguments
-
clearArguments
-
path
- Returns:
this.
-
environment
public NodeRunCommandAction.Builder environment(@NotBlank @NotBlank String environmentKey, String environmentValue) -
environment
public NodeRunCommandAction.Builder environment(Map<? extends @NotBlank String, ? extends String> environment) -
clearEnvironment
-
nodeIdFilter
- Specified by:
nodeIdFilterin interfaceNodeAction.Builder<NodeRunCommandAction>- Returns:
this.
-
nodeType
- Specified by:
nodeTypein interfaceNodeAction.Builder<NodeRunCommandAction>
-
nodeTypes
- Specified by:
nodeTypesin interfaceNodeAction.Builder<NodeRunCommandAction>
-
clearNodeTypes
- Specified by:
clearNodeTypesin interfaceNodeAction.Builder<NodeRunCommandAction>
-
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 interfaceNodeAction.Builder<NodeRunCommandAction>- Overrides:
buildUncheckedin classValidatedBuilder<NodeRunCommandAction>- Returns:
- the object being built
-
toString
-