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 Problemclone()booleanequals(Object obj)DevicegetDevice()Information about the associated device.ProblemDetailgetJob()Information about the associated job.StringgetMessage()A message about the problem's result.StringgetResult()The problem's result.ProblemDetailgetRun()Information about the associated run.ProblemDetailgetSuite()Information about the associated suite.ProblemDetailgetTest()Information about the associated test.inthashCode()voidsetDevice(Device device)Information about the associated device.voidsetJob(ProblemDetail job)Information about the associated job.voidsetMessage(String message)A message about the problem's result.voidsetResult(ExecutionResult result)The problem's result.voidsetResult(String result)The problem's result.voidsetRun(ProblemDetail run)Information about the associated run.voidsetSuite(ProblemDetail suite)Information about the associated suite.voidsetTest(ProblemDetail test)Information about the associated test.StringtoString()Returns a string representation of this object; useful for testing and debugging.ProblemwithDevice(Device device)Information about the associated device.ProblemwithJob(ProblemDetail job)Information about the associated job.ProblemwithMessage(String message)A message about the problem's result.ProblemwithResult(ExecutionResult result)The problem's result.ProblemwithResult(String result)The problem's result.ProblemwithRun(ProblemDetail run)Information about the associated run.ProblemwithSuite(ProblemDetail suite)Information about the associated suite.ProblemwithTest(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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-