@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)
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 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.QueryErrorCode
public String getErrorCode()
Specifies the error code that was raised.
QueryErrorCode
public QueryError withErrorCode(String errorCode)
Specifies the error code that was raised.
errorCode
- Specifies the error code that was raised.QueryErrorCode
public QueryError withErrorCode(QueryErrorCode errorCode)
Specifies the error code that was raised.
errorCode
- Specifies the error code that was raised.QueryErrorCode
public 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 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.