Class CodeError
- java.lang.Object
-
- software.amazon.awssdk.services.appsync.model.CodeError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<CodeError.Builder,CodeError>
@Generated("software.amazon.awssdk:codegen") public final class CodeError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeError.Builder,CodeError>
Describes an AppSync error.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCodeError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodeError.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorType()The type of code error.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()CodeErrorLocationlocation()The line, column, and span location of the error in the code.List<SdkField<?>>sdkFields()static Class<? extends CodeError.Builder>serializableBuilderClass()CodeError.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringvalue()A user presentable error.-
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
-
errorType
public final String errorType()
The type of code error.
Examples include, but aren't limited to:
LINT_ERROR,PARSER_ERROR.- Returns:
- The type of code error.
Examples include, but aren't limited to:
LINT_ERROR,PARSER_ERROR.
-
value
public final String value()
A user presentable error.
Examples include, but aren't limited to:
Parsing error: Unterminated string literal.- Returns:
- A user presentable error.
Examples include, but aren't limited to:
Parsing error: Unterminated string literal.
-
location
public final CodeErrorLocation location()
The line, column, and span location of the error in the code.
- Returns:
- The line, column, and span location of the error in the code.
-
toBuilder
public CodeError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CodeError.Builder,CodeError>
-
builder
public static CodeError.Builder builder()
-
serializableBuilderClass
public static Class<? extends CodeError.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.
-
-