Class Node.Builder

java.lang.Object
co.yellowdog.platform.model.Node.Builder
Enclosing class:
Node

public static class Node.Builder extends Object
  • Method Details

    • id

      public Node.Builder id(String id)
      The ID of the node.
      Parameters:
      id - the ID of the node
      Returns:
      this.
    • workerPoolId

      public Node.Builder workerPoolId(String workerPoolId)
      The ID of the worker pool containing the node.
      Parameters:
      workerPoolId - the ID of the worker pool
      Returns:
      this.
    • details

      public Node.Builder details(NodeDetails details)
      The details of the node.
      Parameters:
      details - the details of the node
      Returns:
      this.
    • status

      public Node.Builder status(NodeStatus status)
      The status of this instance.
      Parameters:
      status - the status
      Returns:
      this.
    • statusChangedTime

      public Node.Builder statusChangedTime(Instant statusChangedTime)
      The date and time when the status last changed.
      Parameters:
      statusChangedTime - the date and time when the status last changed
      Returns:
      this.
    • registeredTime

      public Node.Builder registeredTime(Instant registeredTime)
      The time when the node was registered.
      Parameters:
      registeredTime - the time when the node was registered
      Returns:
      this.
    • workers

      public Node.Builder workers(List<Worker> workers)
      The workers on this instance.
      Parameters:
      workers - the workers
      Returns:
      this.
    • actionQueueStatus

      public Node.Builder actionQueueStatus(NodeActionQueueStatus actionQueueStatus)
      The status of the action queue for the node.
      Parameters:
      actionQueueStatus - the status of the action queue
      Returns:
      this.
    • agentVersion

      public Node.Builder agentVersion(String agentVersion)
      Returns:
      this.
    • build

      public Node build()
    • toString

      public String toString()
      Overrides:
      toString in class Object