@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BatchStatementError extends Object implements Serializable, Cloneable, StructuredPojo
An error associated with a statement in a PartiQL batch that was run.
| Constructor and Description |
|---|
BatchStatementError() |
| Modifier and Type | Method and Description |
|---|---|
BatchStatementError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code associated with the failed PartiQL batch statement.
|
String |
getMessage()
The error message associated with the PartiQL batch response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setCode(String code)
The error code associated with the failed PartiQL batch statement.
|
void |
setMessage(String message)
The error message associated with the PartiQL batch response.
|
String |
toString()
Returns a string representation of this object.
|
BatchStatementError |
withCode(BatchStatementErrorCodeEnum code)
The error code associated with the failed PartiQL batch statement.
|
BatchStatementError |
withCode(String code)
The error code associated with the failed PartiQL batch statement.
|
BatchStatementError |
withMessage(String message)
The error message associated with the PartiQL batch response.
|
public void setCode(String code)
The error code associated with the failed PartiQL batch statement.
code - The error code associated with the failed PartiQL batch statement.BatchStatementErrorCodeEnumpublic String getCode()
The error code associated with the failed PartiQL batch statement.
BatchStatementErrorCodeEnumpublic BatchStatementError withCode(String code)
The error code associated with the failed PartiQL batch statement.
code - The error code associated with the failed PartiQL batch statement.BatchStatementErrorCodeEnumpublic BatchStatementError withCode(BatchStatementErrorCodeEnum code)
The error code associated with the failed PartiQL batch statement.
code - The error code associated with the failed PartiQL batch statement.BatchStatementErrorCodeEnumpublic void setMessage(String message)
The error message associated with the PartiQL batch response.
message - The error message associated with the PartiQL batch response.public String getMessage()
The error message associated with the PartiQL batch response.
public BatchStatementError withMessage(String message)
The error message associated with the PartiQL batch response.
message - The error message associated with the PartiQL batch response.public String toString()
toString in class ObjectObject.toString()public BatchStatementError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.