@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorDetail extends Object implements Serializable, Cloneable, StructuredPojo
A tuple that provides information about an error that caused a cluster to terminate.
| Constructor and Description |
|---|
ErrorDetail() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDetail |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The name or code that's associated with the error.
|
List<Map<String,String>> |
getErrorData()
A list of key value pairs that provide contextual information to explain why the error may have occured.
|
String |
getErrorMessage()
A message describing the error that occured.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
The name or code that's associated with the error.
|
void |
setErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
|
void |
setErrorMessage(String errorMessage)
A message describing the error that occured.
|
String |
toString()
Returns a string representation of this object.
|
ErrorDetail |
withErrorCode(String errorCode)
The name or code that's associated with the error.
|
ErrorDetail |
withErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
|
ErrorDetail |
withErrorData(Map<String,String>... errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
|
ErrorDetail |
withErrorMessage(String errorMessage)
A message describing the error that occured.
|
public void setErrorCode(String errorCode)
The name or code that's associated with the error.
errorCode - The name or code that's associated with the error.public String getErrorCode()
The name or code that's associated with the error.
public ErrorDetail withErrorCode(String errorCode)
The name or code that's associated with the error.
errorCode - The name or code that's associated with the error.public List<Map<String,String>> getErrorData()
A list of key value pairs that provide contextual information to explain why the error may have occured.
public void setErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
errorData - A list of key value pairs that provide contextual information to explain why the error may have occured.public ErrorDetail withErrorData(Map<String,String>... errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
NOTE: This method appends the values to the existing list (if any). Use
setErrorData(java.util.Collection) or withErrorData(java.util.Collection) if you want to
override the existing values.
errorData - A list of key value pairs that provide contextual information to explain why the error may have occured.public ErrorDetail withErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provide contextual information to explain why the error may have occured.
errorData - A list of key value pairs that provide contextual information to explain why the error may have occured.public void setErrorMessage(String errorMessage)
A message describing the error that occured.
errorMessage - A message describing the error that occured.public String getErrorMessage()
A message describing the error that occured.
public ErrorDetail withErrorMessage(String errorMessage)
A message describing the error that occured.
errorMessage - A message describing the error that occured.public String toString()
toString in class ObjectObject.toString()public ErrorDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.