@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodeErrorLocation extends Object implements Serializable, Cloneable, StructuredPojo
Describes the location of the error in a code sample.
| Constructor and Description |
|---|
CodeErrorLocation() |
| Modifier and Type | Method and Description |
|---|---|
CodeErrorLocation |
clone() |
boolean |
equals(Object obj) |
Integer |
getColumn()
The column number in the code.
|
Integer |
getLine()
The line number in the code.
|
Integer |
getSpan()
The span/length of the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setColumn(Integer column)
The column number in the code.
|
void |
setLine(Integer line)
The line number in the code.
|
void |
setSpan(Integer span)
The span/length of the error.
|
String |
toString()
Returns a string representation of this object.
|
CodeErrorLocation |
withColumn(Integer column)
The column number in the code.
|
CodeErrorLocation |
withLine(Integer line)
The line number in the code.
|
CodeErrorLocation |
withSpan(Integer span)
The span/length of the error.
|
public void setLine(Integer line)
The line number in the code. Defaults to 0 if unknown.
line - The line number in the code. Defaults to 0 if unknown.public Integer getLine()
The line number in the code. Defaults to 0 if unknown.
0 if unknown.public CodeErrorLocation withLine(Integer line)
The line number in the code. Defaults to 0 if unknown.
line - The line number in the code. Defaults to 0 if unknown.public void setColumn(Integer column)
The column number in the code. Defaults to 0 if unknown.
column - The column number in the code. Defaults to 0 if unknown.public Integer getColumn()
The column number in the code. Defaults to 0 if unknown.
0 if unknown.public CodeErrorLocation withColumn(Integer column)
The column number in the code. Defaults to 0 if unknown.
column - The column number in the code. Defaults to 0 if unknown.public void setSpan(Integer span)
The span/length of the error. Defaults to -1 if unknown.
span - The span/length of the error. Defaults to -1 if unknown.public Integer getSpan()
The span/length of the error. Defaults to -1 if unknown.
-1 if unknown.public CodeErrorLocation withSpan(Integer span)
The span/length of the error. Defaults to -1 if unknown.
span - The span/length of the error. Defaults to -1 if unknown.public String toString()
toString in class ObjectObject.toString()public CodeErrorLocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.