@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 CloudFormation stack-based queries. The error occurs if the CloudFormation 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 AWS 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()
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
String |
getMessage()
A message that explains the
ErrorCode value. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setErrorCode(String errorCode)
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
void |
setMessage(String message)
A message that explains the
ErrorCode value. |
String |
toString()
Returns a string representation of this object.
|
QueryError |
withErrorCode(QueryErrorCode errorCode)
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
QueryError |
withErrorCode(String errorCode)
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
QueryError |
withMessage(String message)
A message that explains the
ErrorCode value. |
public void setErrorCode(String errorCode)
Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
.
errorCode - Possible values are CLOUDFORMATION_STACK_INACTIVE and
CLOUDFORMATION_STACK_NOT_EXISTING.QueryErrorCodepublic String getErrorCode()
Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
.
CLOUDFORMATION_STACK_INACTIVE and
CLOUDFORMATION_STACK_NOT_EXISTING.QueryErrorCodepublic QueryError withErrorCode(String errorCode)
Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
.
errorCode - Possible values are CLOUDFORMATION_STACK_INACTIVE and
CLOUDFORMATION_STACK_NOT_EXISTING.QueryErrorCodepublic QueryError withErrorCode(QueryErrorCode errorCode)
Possible values are CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
.
errorCode - Possible values are CLOUDFORMATION_STACK_INACTIVE and
CLOUDFORMATION_STACK_NOT_EXISTING.QueryErrorCodepublic void setMessage(String message)
A message that explains the ErrorCode value. Messages might state that the specified CloudFormation
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFormation 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
CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE,
the message typically states that the CloudFormation 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 CloudFormation
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFormation stack has a status that is not (or no longer) active, such as
CREATE_FAILED.
ErrorCode value. Messages might state that the specified
CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE
, the message typically states that the CloudFormation 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 CloudFormation
stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE, the message typically
states that the CloudFormation 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
CloudFormation stack does not exist (or no longer exists). For CLOUDFORMATION_STACK_INACTIVE,
the message typically states that the CloudFormation 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)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.