@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodeError extends Object implements Serializable, Cloneable, StructuredPojo
Describes an AppSync error.
Constructor and Description |
---|
CodeError() |
Modifier and Type | Method and Description |
---|---|
CodeError |
clone() |
boolean |
equals(Object obj) |
String |
getErrorType()
The type of code error.
|
CodeErrorLocation |
getLocation()
The line, column, and span location of the error in the code.
|
String |
getValue()
A user presentable error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setErrorType(String errorType)
The type of code error.
|
void |
setLocation(CodeErrorLocation location)
The line, column, and span location of the error in the code.
|
void |
setValue(String value)
A user presentable error.
|
String |
toString()
Returns a string representation of this object.
|
CodeError |
withErrorType(String errorType)
The type of code error.
|
CodeError |
withLocation(CodeErrorLocation location)
The line, column, and span location of the error in the code.
|
CodeError |
withValue(String value)
A user presentable error.
|
public void setErrorType(String errorType)
The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
errorType
- The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
public String getErrorType()
The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
public CodeError withErrorType(String errorType)
The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
errorType
- The type of code error.
Examples include, but aren't limited to: LINT_ERROR
, PARSER_ERROR
.
public void setValue(String value)
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
value
- A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
public String getValue()
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
public CodeError withValue(String value)
A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
value
- A user presentable error.
Examples include, but aren't limited to: Parsing error: Unterminated string literal
.
public void setLocation(CodeErrorLocation location)
The line, column, and span location of the error in the code.
location
- The line, column, and span location of the error in the code.public CodeErrorLocation getLocation()
The line, column, and span location of the error in the code.
public CodeError withLocation(CodeErrorLocation location)
The line, column, and span location of the error in the code.
location
- The line, column, and span location of the error in the code.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.