Class RunTaskResult

    • Constructor Detail

      • RunTaskResult

        public RunTaskResult()
    • Method Detail

      • getTasks

        public List<Task> getTasks()

        A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.

        Returns:
        A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
      • setTasks

        public void setTasks​(Collection<Task> tasks)

        A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.

        Parameters:
        tasks - A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
      • withTasks

        public RunTaskResult withTasks​(Task... tasks)

        A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.

        NOTE: This method appends the values to the existing list (if any). Use setTasks(java.util.Collection) or withTasks(java.util.Collection) if you want to override the existing values.

        Parameters:
        tasks - A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withTasks

        public RunTaskResult withTasks​(Collection<Task> tasks)

        A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.

        Parameters:
        tasks - A full description of the tasks that were run. Each task that was successfully placed on your cluster are described here.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getFailures

        public List<Failure> getFailures()

        Any failures associated with the call.

        Returns:
        Any failures associated with the call.
      • setFailures

        public void setFailures​(Collection<Failure> failures)

        Any failures associated with the call.

        Parameters:
        failures - Any failures associated with the call.
      • withFailures

        public RunTaskResult withFailures​(Failure... failures)

        Any failures associated with the call.

        NOTE: This method appends the values to the existing list (if any). Use setFailures(java.util.Collection) or withFailures(java.util.Collection) if you want to override the existing values.

        Parameters:
        failures - Any failures associated with the call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withFailures

        public RunTaskResult withFailures​(Collection<Failure> failures)

        Any failures associated with the call.

        Parameters:
        failures - Any failures associated with the call.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object