@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorDetail extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about an error.
Constructor and Description |
---|
ErrorDetail() |
Modifier and Type | Method and Description |
---|---|
ErrorDetail |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The code associated with this error.
|
String |
getErrorMessage()
A message describing the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The code associated with this error.
|
void |
setErrorMessage(String errorMessage)
A message describing the error.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ErrorDetail |
withErrorCode(String errorCode)
The code associated with this error.
|
ErrorDetail |
withErrorMessage(String errorMessage)
A message describing the error.
|
public void setErrorCode(String errorCode)
The code associated with this error.
errorCode
- The code associated with this error.public String getErrorCode()
The code associated with this error.
public ErrorDetail withErrorCode(String errorCode)
The code associated with this error.
errorCode
- The code associated with this error.public void setErrorMessage(String errorMessage)
A message describing the error.
errorMessage
- A message describing the error.public String getErrorMessage()
A message describing the error.
public ErrorDetail withErrorMessage(String errorMessage)
A message describing the error.
errorMessage
- A message describing 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.