@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains the details of an IoT SiteWise error.
| Constructor and Description |
|---|
ErrorDetails() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDetails |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code.
|
List<DetailedError> |
getDetails()
A list of detailed errors.
|
String |
getMessage()
The error message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The error code.
|
void |
setDetails(Collection<DetailedError> details)
A list of detailed errors.
|
void |
setMessage(String message)
The error message.
|
String |
toString()
Returns a string representation of this object.
|
ErrorDetails |
withCode(ErrorCode code)
The error code.
|
ErrorDetails |
withCode(String code)
The error code.
|
ErrorDetails |
withDetails(Collection<DetailedError> details)
A list of detailed errors.
|
ErrorDetails |
withDetails(DetailedError... details)
A list of detailed errors.
|
ErrorDetails |
withMessage(String message)
The error message.
|
public void setCode(String code)
The error code.
code - The error code.ErrorCodepublic ErrorDetails withCode(String code)
The error code.
code - The error code.ErrorCodepublic ErrorDetails withCode(ErrorCode code)
The error code.
code - The error code.ErrorCodepublic void setMessage(String message)
The error message.
message - The error message.public String getMessage()
The error message.
public ErrorDetails withMessage(String message)
The error message.
message - The error message.public List<DetailedError> getDetails()
A list of detailed errors.
public void setDetails(Collection<DetailedError> details)
A list of detailed errors.
details - A list of detailed errors.public ErrorDetails withDetails(DetailedError... details)
A list of detailed errors.
NOTE: This method appends the values to the existing list (if any). Use
setDetails(java.util.Collection) or withDetails(java.util.Collection) if you want to override
the existing values.
details - A list of detailed errors.public ErrorDetails withDetails(Collection<DetailedError> details)
A list of detailed errors.
details - A list of detailed errors.public String toString()
toString in class ObjectObject.toString()public ErrorDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.