Class ComputeRequirementSummary

java.lang.Object
co.yellowdog.platform.interaction.compute.ComputeRequirementSummary

public class ComputeRequirementSummary extends Object
Provides a summary of a ComputeRequirement including the ID that can be used to retrieve the full object.
  • Method Details

    • builder

      public static ComputeRequirementSummary.Builder builder()
    • getId

      public String getId()
      The ID of this compute requirement that is generated by YellowDog Compute when the requirement is first submitted.
      Returns:
      the ID of this compute requirement
    • getNamespace

      public String getNamespace()
      The user allocated namespace used to group compute requirements and other objects together.
      Returns:
      the compute requirement namespace
    • getName

      public String getName()
      The user allocated name used to uniquely identify the compute requirement within its namespace.
      Returns:
      the compute requirement name
    • getTag

      public String getTag()
    • getTargetInstanceCount

      public int getTargetInstanceCount()
      The number of instances to be provisioned to meet this compute requirement.
      Returns:
      the number of instances to be provisioned
    • getExpectedInstanceCount

      public int getExpectedInstanceCount()
      The number of alive instances expected based on existing instances and the most recent provision action.
      Returns:
      the number of instances expected
    • getAliveInstanceCount

      public int getAliveInstanceCount()
      The number of alive instances.
      Returns:
      the number of alive instances
    • getCreatedTime

      public Instant getCreatedTime()
      The date and time when this compute requirement was first submitted to YellowDog Compute.
      Returns:
      the date and time when this compute requirement was first submitted
    • getStatus

      public ComputeRequirementStatus getStatus()
      The status of this compute requirement.
      Returns:
      the status of this compute requirement
    • isHealthy

      public boolean isHealthy()
      Represents whether the compute requirement is healthy or not. A compute requirement is considered healthy if no sources have a status of ERRORED
      Returns:
      true if no sources have a status of ERRORED, false is one or more sources have a status of ERRORED
    • setId

      public void setId(String 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.
    • setNamespace

      public void setNamespace(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.
    • setName

      public void setName(String 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.
    • setTag

      public void setTag(String tag)
    • setTargetInstanceCount

      public void setTargetInstanceCount(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.
    • setExpectedInstanceCount

      public void setExpectedInstanceCount(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.
    • setAliveInstanceCount

      public void setAliveInstanceCount(int aliveInstanceCount)
      The number of alive instances.
      Parameters:
      expectedInstanceCount - This is a summary type, setting the property has no effect.
    • setCreatedTime

      public void setCreatedTime(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.
    • setStatus

      public void setStatus(ComputeRequirementStatus status)
      The status of this compute requirement.
      Parameters:
      status - This is a summary type, setting the property has no effect.
    • setHealthy

      public void setHealthy(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.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object