@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
.QueryErrorCode
public String getErrorCode()
Possible values are CLOUDFORMATION_STACK_INACTIVE
and CLOUDFORMATION_STACK_NOT_EXISTING
.
CLOUDFORMATION_STACK_INACTIVE
and
CLOUDFORMATION_STACK_NOT_EXISTING
.QueryErrorCode
public 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
.QueryErrorCode
public 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
.QueryErrorCode
public 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 Object
Object.toString()
public QueryError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.