@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class QueryError extends Object implements Serializable, Cloneable, StructuredPojo
A two-part error structure that can occur in ListGroupResources or SearchResources.
| Constructor and Description |
|---|
QueryError() |
| Modifier and Type | Method and Description |
|---|---|
QueryError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorCode()
Specifies the error code that was raised.
|
String |
getMessage()
A message that explains the
ErrorCode. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
Specifies the error code that was raised.
|
void |
setMessage(String message)
A message that explains the
ErrorCode. |
String |
toString()
Returns a string representation of this object.
|
QueryError |
withErrorCode(QueryErrorCode errorCode)
Specifies the error code that was raised.
|
QueryError |
withErrorCode(String errorCode)
Specifies the error code that was raised.
|
QueryError |
withMessage(String message)
A message that explains the
ErrorCode. |
public void setErrorCode(String errorCode)
Specifies the error code that was raised.
errorCode - Specifies the error code that was raised.QueryErrorCodepublic String getErrorCode()
Specifies the error code that was raised.
QueryErrorCodepublic QueryError withErrorCode(String errorCode)
Specifies the error code that was raised.
errorCode - Specifies the error code that was raised.QueryErrorCodepublic QueryError withErrorCode(QueryErrorCode errorCode)
Specifies the error code that was raised.
errorCode - Specifies the error code that was raised.QueryErrorCodepublic void setMessage(String message)
A message that explains the ErrorCode.
message - A message that explains the ErrorCode.public String getMessage()
A message that explains the ErrorCode.
ErrorCode.public QueryError withMessage(String message)
A message that explains the ErrorCode.
message - A message that explains the ErrorCode.public String toString()
toString in class ObjectObject.toString()public QueryError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.