@Generated(value="software.amazon.awssdk:codegen") public final class QueryError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<QueryError.Builder,QueryError>
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.
Modifier and Type | Class and Description |
---|---|
static interface |
QueryError.Builder |
Modifier and Type | Method and Description |
---|---|
static QueryError.Builder |
builder() |
boolean |
equals(Object obj) |
QueryErrorCode |
errorCode()
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
String |
errorCodeAsString()
Possible values are
CLOUDFORMATION_STACK_INACTIVE and CLOUDFORMATION_STACK_NOT_EXISTING
. |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
message()
A message that explains the
ErrorCode value. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends QueryError.Builder> |
serializableBuilderClass() |
QueryError.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public QueryErrorCode errorCode()
Possible values are CLOUDFORMATION_STACK_INACTIVE
and CLOUDFORMATION_STACK_NOT_EXISTING
.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return QueryErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
CLOUDFORMATION_STACK_INACTIVE
and
CLOUDFORMATION_STACK_NOT_EXISTING
.QueryErrorCode
public String errorCodeAsString()
Possible values are CLOUDFORMATION_STACK_INACTIVE
and CLOUDFORMATION_STACK_NOT_EXISTING
.
If the service returns an enum value that is not available in the current SDK version, errorCode
will
return QueryErrorCode.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
errorCodeAsString()
.
CLOUDFORMATION_STACK_INACTIVE
and
CLOUDFORMATION_STACK_NOT_EXISTING
.QueryErrorCode
public 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
.
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.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<QueryError.Builder,QueryError>
public static QueryError.Builder builder()
public static Class<? extends QueryError.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.