Class CodeErrorLocation
- java.lang.Object
-
- software.amazon.awssdk.services.appsync.model.CodeErrorLocation
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<CodeErrorLocation.Builder,CodeErrorLocation>
@Generated("software.amazon.awssdk:codegen") public final class CodeErrorLocation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<CodeErrorLocation.Builder,CodeErrorLocation>
Describes the location of the error in a code sample.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
CodeErrorLocation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CodeErrorLocation.Builder
builder()
Integer
column()
The column number in the code.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
Integer
line()
The line number in the code.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends CodeErrorLocation.Builder>
serializableBuilderClass()
Integer
span()
The span/length of the error.CodeErrorLocation.Builder
toBuilder()
String
toString()
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
-
line
public final Integer line()
The line number in the code. Defaults to
0
if unknown.- Returns:
- The line number in the code. Defaults to
0
if unknown.
-
column
public final Integer column()
The column number in the code. Defaults to
0
if unknown.- Returns:
- The column number in the code. Defaults to
0
if unknown.
-
span
public final Integer span()
The span/length of the error. Defaults to
-1
if unknown.- Returns:
- The span/length of the error. Defaults to
-1
if unknown.
-
toBuilder
public CodeErrorLocation.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<CodeErrorLocation.Builder,CodeErrorLocation>
-
builder
public static CodeErrorLocation.Builder builder()
-
serializableBuilderClass
public static Class<? extends CodeErrorLocation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-