@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ErrorDetails extends Object implements Serializable, Cloneable, StructuredPojo
An object containing error details.
Constructor and Description |
---|
ErrorDetails() |
Modifier and Type | Method and Description |
---|---|
ErrorDetails |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
The error code for an error.
|
String |
getErrorMessage()
The error message for an error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorCode(String errorCode)
The error code for an error.
|
void |
setErrorMessage(String errorMessage)
The error message for an error.
|
String |
toString()
Returns a string representation of this object.
|
ErrorDetails |
withErrorCode(String errorCode)
The error code for an error.
|
ErrorDetails |
withErrorMessage(String errorMessage)
The error message for an error.
|
public void setErrorCode(String errorCode)
The error code for an error.
errorCode
- The error code for an error.public String getErrorCode()
The error code for an error.
public ErrorDetails withErrorCode(String errorCode)
The error code for an error.
errorCode
- The error code for an error.public void setErrorMessage(String errorMessage)
The error message for an error.
errorMessage
- The error message for an error.public String getErrorMessage()
The error message for an error.
public ErrorDetails withErrorMessage(String errorMessage)
The error message for an error.
errorMessage
- The error message for an error.public String toString()
toString
in class Object
Object.toString()
public ErrorDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.