java.lang.Object
com.amazonaws.services.devicefarm.model.Problem
All Implemented Interfaces:
Serializable, Cloneable

public class Problem extends Object implements Serializable, Cloneable

Represents a specific warning or failure.

See Also:
  • Constructor Details

    • Problem

      public Problem()
  • Method Details

    • setRun

      public void setRun(ProblemDetail run)

      Information about the associated run.

      Parameters:
      run - Information about the associated run.
    • getRun

      public ProblemDetail getRun()

      Information about the associated run.

      Returns:
      Information about the associated run.
    • withRun

      public Problem withRun(ProblemDetail run)

      Information about the associated run.

      Parameters:
      run - Information about the associated run.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setJob

      public void setJob(ProblemDetail job)

      Information about the associated job.

      Parameters:
      job - Information about the associated job.
    • getJob

      public ProblemDetail getJob()

      Information about the associated job.

      Returns:
      Information about the associated job.
    • withJob

      public Problem withJob(ProblemDetail job)

      Information about the associated job.

      Parameters:
      job - Information about the associated job.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setSuite

      public void setSuite(ProblemDetail suite)

      Information about the associated suite.

      Parameters:
      suite - Information about the associated suite.
    • getSuite

      public ProblemDetail getSuite()

      Information about the associated suite.

      Returns:
      Information about the associated suite.
    • withSuite

      public Problem withSuite(ProblemDetail suite)

      Information about the associated suite.

      Parameters:
      suite - Information about the associated suite.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTest

      public void setTest(ProblemDetail test)

      Information about the associated test.

      Parameters:
      test - Information about the associated test.
    • getTest

      public ProblemDetail getTest()

      Information about the associated test.

      Returns:
      Information about the associated test.
    • withTest

      public Problem withTest(ProblemDetail test)

      Information about the associated test.

      Parameters:
      test - Information about the associated test.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setDevice

      public void setDevice(Device device)

      Information about the associated device.

      Parameters:
      device - Information about the associated device.
    • getDevice

      public Device getDevice()

      Information about the associated device.

      Returns:
      Information about the associated device.
    • withDevice

      public Problem withDevice(Device device)

      Information about the associated device.

      Parameters:
      device - Information about the associated device.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setResult

      public void setResult(String result)

      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Parameters:
      result - The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      See Also:
    • getResult

      public String getResult()

      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Returns:
      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      See Also:
    • withResult

      public Problem withResult(String result)

      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Parameters:
      result - The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setResult

      public void setResult(ExecutionResult result)

      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Parameters:
      result - The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      See Also:
    • withResult

      public Problem withResult(ExecutionResult result)

      The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Parameters:
      result - The problem's result.

      Allowed values include:

      • PENDING: A pending condition.

      • PASSED: A passing condition.

      • WARNED: A warning condition.

      • FAILED: A failed condition.

      • SKIPPED: A skipped condition.

      • ERRORED: An error condition.

      • STOPPED: A stopped condition.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setMessage

      public void setMessage(String message)

      A message about the problem's result.

      Parameters:
      message - A message about the problem's result.
    • getMessage

      public String getMessage()

      A message about the problem's result.

      Returns:
      A message about the problem's result.
    • withMessage

      public Problem withMessage(String message)

      A message about the problem's result.

      Parameters:
      message - A message about the problem's result.
      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public Problem clone()
      Overrides:
      clone in class Object