@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
operations on CloudFront stack-based queries. The error occurs if the CloudFront stack on which the query is based
either does not exist, or has a status that renders the stack inactive. A QueryError occurrence does not
necessarily mean that Resource Groups could not complete the operation, but the resulting group might have no member
resources.
| 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 value. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setErrorCode(String errorCode)
Specifies the error code that was raised.
|
void |
setMessage(String message)
A message that explains the
ErrorCode value. |
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 value. |
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 value. Messages might state that the specified CloudFront
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFront stack has a status that is not (or no longer) active, such as
CREATE_FAILED.
message - A message that explains the ErrorCode value. Messages might state that the specified
CloudFront stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
message typically states that the CloudFront stack has a status that is not (or no longer) active, such as
CREATE_FAILED.public String getMessage()
A message that explains the ErrorCode value. Messages might state that the specified CloudFront
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFront stack has a status that is not (or no longer) active, such as
CREATE_FAILED.
ErrorCode value. Messages might state that the specified
CloudFront stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE,
the message typically states that the CloudFront stack has a status that is not (or no longer) active,
such as CREATE_FAILED.public QueryError withMessage(String message)
A message that explains the ErrorCode value. Messages might state that the specified CloudFront
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFront stack has a status that is not (or no longer) active, such as
CREATE_FAILED.
message - A message that explains the ErrorCode value. Messages might state that the specified
CloudFront stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the
message typically states that the CloudFront stack has a status that is not (or no longer) active, such as
CREATE_FAILED.public String toString()
toString in class ObjectObject.toString()public QueryError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.