Class UniqueProblem
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.UniqueProblem
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class UniqueProblem extends Object implements Serializable, Cloneable
A collection of one or more problems, grouped by their result.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UniqueProblem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UniqueProblem
clone()
boolean
equals(Object obj)
String
getMessage()
A message about the unique problems' result.List<Problem>
getProblems()
Information about the problems.int
hashCode()
void
setMessage(String message)
A message about the unique problems' result.void
setProblems(Collection<Problem> problems)
Information about the problems.String
toString()
Returns a string representation of this object; useful for testing and debugging.UniqueProblem
withMessage(String message)
A message about the unique problems' result.UniqueProblem
withProblems(Problem... problems)
Information about the problems.UniqueProblem
withProblems(Collection<Problem> problems)
Information about the problems.
-
-
-
Method Detail
-
setMessage
public void setMessage(String message)
A message about the unique problems' result.
- Parameters:
message
- A message about the unique problems' result.
-
getMessage
public String getMessage()
A message about the unique problems' result.
- Returns:
- A message about the unique problems' result.
-
withMessage
public UniqueProblem withMessage(String message)
A message about the unique problems' result.
- Parameters:
message
- A message about the unique problems' result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getProblems
public List<Problem> getProblems()
Information about the problems.
- Returns:
- Information about the problems.
-
setProblems
public void setProblems(Collection<Problem> problems)
Information about the problems.
- Parameters:
problems
- Information about the problems.
-
withProblems
public UniqueProblem withProblems(Problem... problems)
Information about the problems.
NOTE: This method appends the values to the existing list (if any). Use
setProblems(java.util.Collection)
orwithProblems(java.util.Collection)
if you want to override the existing values.- Parameters:
problems
- Information about the problems.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withProblems
public UniqueProblem withProblems(Collection<Problem> problems)
Information about the problems.
- Parameters:
problems
- Information about the problems.- 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()
-
clone
public UniqueProblem clone()
-
-