Class QueryError
- java.lang.Object
-
- software.amazon.awssdk.services.resourcegroups.model.QueryError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<QueryError.Builder,QueryError>
@Generated("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
ListGroupResourcesorSearchResourcesoperations 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. AQueryErroroccurrence does not necessarily mean that Resource Groups could not complete the operation, but the resulting group might have no member resources.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceQueryError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static QueryError.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)QueryErrorCodeerrorCode()Specifies the error code that was raised.StringerrorCodeAsString()Specifies the error code that was raised.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()A message that explains theErrorCodevalue.List<SdkField<?>>sdkFields()static Class<? extends QueryError.Builder>serializableBuilderClass()QueryError.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
errorCode
public final QueryErrorCode errorCode()
Specifies the error code that was raised.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnQueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- Specifies the error code that was raised.
- See Also:
QueryErrorCode
-
errorCodeAsString
public final String errorCodeAsString()
Specifies the error code that was raised.
If the service returns an enum value that is not available in the current SDK version,
errorCodewill returnQueryErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromerrorCodeAsString().- Returns:
- Specifies the error code that was raised.
- See Also:
QueryErrorCode
-
message
public final String message()
A message that explains the
ErrorCodevalue. Messages might state that the specified CloudFront stack does not exist (or no longer exists). ForCLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFront stack has a status that is not (or no longer) active, such asCREATE_FAILED.- Returns:
- A message that explains the
ErrorCodevalue. Messages might state that the specified CloudFront stack does not exist (or no longer exists). ForCLOUDFORMATION_STACK_INACTIVE, the message typically states that the CloudFront stack has a status that is not (or no longer) active, such asCREATE_FAILED.
-
toBuilder
public QueryError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<QueryError.Builder,QueryError>
-
builder
public static QueryError.Builder builder()
-
serializableBuilderClass
public static Class<? extends QueryError.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-