Class ComputeRequirementSummary.Builder

java.lang.Object
co.yellowdog.platform.interaction.compute.ComputeRequirementSummary.Builder
Enclosing class:
ComputeRequirementSummary

public static class ComputeRequirementSummary.Builder extends Object
  • Method Details

    • id

      The ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.
      Parameters:
      id - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • namespace

      public ComputeRequirementSummary.Builder namespace(String namespace)
      The user allocated namespace used to group compute requirements and other objects together.
      Parameters:
      namespace - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • name

      The user allocated name used to uniquely identify the compute requirement within its namespace.
      Parameters:
      name - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • tag

      Returns:
      this.
    • targetInstanceCount

      public ComputeRequirementSummary.Builder targetInstanceCount(int targetInstanceCount)
      The number of instances to be provisioned to meet this compute requirement.
      Parameters:
      targetInstanceCount - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • expectedInstanceCount

      public ComputeRequirementSummary.Builder expectedInstanceCount(int expectedInstanceCount)
      The number of alive instances expected based on existing instances and the most recent provision action.
      Parameters:
      expectedInstanceCount - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • aliveInstanceCount

      public ComputeRequirementSummary.Builder aliveInstanceCount(int aliveInstanceCount)
      The number of alive instances.
      Parameters:
      expectedInstanceCount - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • createdTime

      public ComputeRequirementSummary.Builder createdTime(Instant createdTime)
      The date and time when this compute requirement was first submitted to YellowDog Compute.
      Parameters:
      createdTime - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • status

      The status of this compute requirement.
      Parameters:
      status - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • healthy

      public ComputeRequirementSummary.Builder healthy(boolean healthy)
      Represents whether the compute requirement is healthy or not. A compute requirement is considered healthy if no sources have a status of ERRORED
      Parameters:
      healthy - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • build

      public ComputeRequirementSummary build()
    • toString

      public String toString()
      Overrides:
      toString in class Object