@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 associated with the error.
|
List<Map<String,String>> |
getErrorData()
A list of key value pairs that provides contextual information about why an error occured.
|
String |
getErrorMessage()
A message that describes the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The name or code associated with the error.
|
void |
setErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provides contextual information about why an error occured.
|
void |
setErrorMessage(String errorMessage)
A message that describes the error.
|
String |
toString()
Returns a string representation of this object.
|
ErrorDetail |
withErrorCode(String errorCode)
The name or code associated with the error.
|
ErrorDetail |
withErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provides contextual information about why an error occured.
|
ErrorDetail |
withErrorData(Map<String,String>... errorData)
A list of key value pairs that provides contextual information about why an error occured.
|
ErrorDetail |
withErrorMessage(String errorMessage)
A message that describes the error.
|
public void setErrorCode(String errorCode)
The name or code associated with the error.
errorCode
- The name or code associated with the error.public String getErrorCode()
The name or code associated with the error.
public ErrorDetail withErrorCode(String errorCode)
The name or code associated with the error.
errorCode
- The name or code associated with the error.public List<Map<String,String>> getErrorData()
A list of key value pairs that provides contextual information about why an error occured.
public void setErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provides contextual information about why an error occured.
errorData
- A list of key value pairs that provides contextual information about why an error occured.public ErrorDetail withErrorData(Map<String,String>... errorData)
A list of key value pairs that provides contextual information about why an error 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 provides contextual information about why an error occured.public ErrorDetail withErrorData(Collection<Map<String,String>> errorData)
A list of key value pairs that provides contextual information about why an error occured.
errorData
- A list of key value pairs that provides contextual information about why an error occured.public void setErrorMessage(String errorMessage)
A message that describes the error.
errorMessage
- A message that describes the error.public String getErrorMessage()
A message that describes the error.
public ErrorDetail withErrorMessage(String errorMessage)
A message that describes the error.
errorMessage
- A message that describes the error.public String toString()
toString
in class Object
Object.toString()
public ErrorDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.