Class WorkRequirementSummary.Builder

java.lang.Object
co.yellowdog.platform.interaction.scheduler.WorkRequirementSummary.Builder
Enclosing class:
WorkRequirementSummary

public static class WorkRequirementSummary.Builder extends Object
  • Method Details

    • id

      Returns:
      this.
    • namespace

      public WorkRequirementSummary.Builder namespace(String namespace)
      The user allocated namespace used to group work 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 work requirement within its namespace.
      Parameters:
      name - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • tag

      Returns:
      this.
    • createdTime

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

      public WorkRequirementSummary.Builder priority(double priority)
      The priority of the work requirement.
      Parameters:
      priority - the priority of the work requirement
      Returns:
      this.
    • completedTaskCount

      public WorkRequirementSummary.Builder completedTaskCount(int completedTaskCount)
      The count of successfully completed tasks in the work requirement.
      Parameters:
      completedTaskCount - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • totalTaskCount

      public WorkRequirementSummary.Builder totalTaskCount(int totalTaskCount)
      The total count of tasks in the work requirement.
      Parameters:
      totalTaskCount - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • status

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

      public WorkRequirementSummary.Builder healthy(boolean healthy)
      Indicates if the work requirement is healthy. If false then tasks may have failed or task groups may be starved.
      Parameters:
      healthy - This is a summary type, setting the property has no effect.
      Returns:
      this.
    • build

      public WorkRequirementSummary build()
    • toString

      public String toString()
      Overrides:
      toString in class Object