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
ListGroupResourcesorSearchResources.- 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 theErrorCode.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
ErrorCode.- Returns:
- A message that explains the
ErrorCode.
-
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.
-
-