Class Problem
- 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Problem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Problem
clone()
boolean
equals(Object obj)
Device
getDevice()
Information about the associated device.ProblemDetail
getJob()
Information about the associated job.String
getMessage()
A message about the problem's result.String
getResult()
The problem's result.ProblemDetail
getRun()
Information about the associated run.ProblemDetail
getSuite()
Information about the associated suite.ProblemDetail
getTest()
Information about the associated test.int
hashCode()
void
setDevice(Device device)
Information about the associated device.void
setJob(ProblemDetail job)
Information about the associated job.void
setMessage(String message)
A message about the problem's result.void
setResult(ExecutionResult result)
The problem's result.void
setResult(String result)
The problem's result.void
setRun(ProblemDetail run)
Information about the associated run.void
setSuite(ProblemDetail suite)
Information about the associated suite.void
setTest(ProblemDetail test)
Information about the associated test.String
toString()
Returns a string representation of this object; useful for testing and debugging.Problem
withDevice(Device device)
Information about the associated device.Problem
withJob(ProblemDetail job)
Information about the associated job.Problem
withMessage(String message)
A message about the problem's result.Problem
withResult(ExecutionResult result)
The problem's result.Problem
withResult(String result)
The problem's result.Problem
withRun(ProblemDetail run)
Information about the associated run.Problem
withSuite(ProblemDetail suite)
Information about the associated suite.Problem
withTest(ProblemDetail test)
Information about the associated test.
-
-
-
Method Detail
-
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:
ExecutionResult
-
-
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:
ExecutionResult
-
-
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:
ExecutionResult
-
-
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:
ExecutionResult
-
-
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:
ExecutionResult
-
-
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-