Class NodeDetails.Builder

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

public static class NodeDetails.Builder extends Object
  • Method Details

    • instanceId

      public NodeDetails.Builder instanceId(String instanceId)
      The ID of the node's instance.
      Parameters:
      instanceId - the ID of the node's instance
      Returns:
      this.
    • provider

      public NodeDetails.Builder provider(CloudProvider provider)
      The provider of the node's instance.
      Parameters:
      provider - the provider of the node's instance
      Returns:
      this.
    • region

      public NodeDetails.Builder region(String region)
      The region in which the node's instance is running.
      Parameters:
      region - the region
      Returns:
      this.
    • sourceName

      public NodeDetails.Builder sourceName(String sourceName)
      The name of the compute source from which the node's instance was provisioned.
      Parameters:
      sourceName - the compute source name
      Returns:
      this.
    • sourceNumber

      public NodeDetails.Builder sourceNumber(Integer sourceNumber)
      The number of the compute source based on its order within the parent compute requirement.
      Parameters:
      sourceNumber - the compute source number
      Returns:
      this.
    • instanceType

      public NodeDetails.Builder instanceType(String instanceType)
      The instance type of the instance.
      Parameters:
      instanceType - the instance type
      Returns:
      this.
    • hostname

      public NodeDetails.Builder hostname(String hostname)
      The hostname of the instance.
      Parameters:
      hostname - the hostname
      Returns:
      this.
    • privateIpAddress

      public NodeDetails.Builder privateIpAddress(String privateIpAddress)
      The private IP address of the instance.
      Parameters:
      privateIpAddress - the private IP address
      Returns:
      this.
    • publicIpAddress

      public NodeDetails.Builder publicIpAddress(String publicIpAddress)
      The public IP address of the instance.
      Parameters:
      publicIpAddress - the public IP address
      Returns:
      this.
    • vcpus

      public NodeDetails.Builder vcpus(Double vcpus)
      The number of processors (threads) on the node's instance.
      Parameters:
      vcpus - the number of processors
      Returns:
      this.
    • ram

      public NodeDetails.Builder ram(Double ram)
      The amount of RAM in GB on the node's instance.
      Parameters:
      ram - the amount of RAM in GB
      Returns:
      this.
    • supportedTaskTypes

      public NodeDetails.Builder supportedTaskTypes(List<@NotBlank String> supportedTaskTypes)
      The task types supported by this node.
      Parameters:
      supportedTaskTypes - the supported task types
      Returns:
      this.
    • workerTag

      public NodeDetails.Builder workerTag(String workerTag)
      An optional tag value that can be used to constrain worker allocation.
      Parameters:
      workerTag - an optional tag value
      Returns:
      this.
    • nodeType

      public NodeDetails.Builder nodeType(String nodeType)
      The node type of this node if node types have been configured.
      Parameters:
      nodeType - the node type of this node
      Returns:
      this.
    • nodeSlot

      public NodeDetails.Builder nodeSlot(Integer nodeSlot)
      The slot number of this node within its node type if slot numbering has been configured.
      Parameters:
      nodeSlot - the slot number of this node within its node type
      Returns:
      this.
    • spot

      public NodeDetails.Builder spot(Boolean spot)
      Whether this Node is running on Spot compute. If it has not been possible to determine if the Node is running on Spot, this will be null.
      Parameters:
      spot - `true` if this Node is running on Spot compute.
      Returns:
      this.
    • build

      public NodeDetails build()
    • toString

      public String toString()
      Overrides:
      toString in class Object