@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 |
addItemEntry(String key,
AttributeValue value)
Add a single Item entry
|
BatchStatementError |
clearItemEntries()
Removes all the entries added into Item.
|
BatchStatementError |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The error code associated with the failed PartiQL batch statement.
|
Map<String,AttributeValue> |
getItem()
The item which caused the condition check to fail.
|
String |
getMessage()
The error message associated with the PartiQL batch response.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCode(String code)
The error code associated with the failed PartiQL batch statement.
|
void |
setItem(Map<String,AttributeValue> item)
The item which caused the condition check to fail.
|
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 |
withItem(Map<String,AttributeValue> item)
The item which caused the condition check to fail.
|
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.BatchStatementErrorCodeEnum
public String getCode()
The error code associated with the failed PartiQL batch statement.
BatchStatementErrorCodeEnum
public 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.BatchStatementErrorCodeEnum
public 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.BatchStatementErrorCodeEnum
public 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 Map<String,AttributeValue> getItem()
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is
specified as ALL_OLD
.
ALL_OLD
.public void setItem(Map<String,AttributeValue> item)
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is
specified as ALL_OLD
.
item
- The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure
is specified as ALL_OLD
.public BatchStatementError withItem(Map<String,AttributeValue> item)
The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure is
specified as ALL_OLD
.
item
- The item which caused the condition check to fail. This will be set if ReturnValuesOnConditionCheckFailure
is specified as ALL_OLD
.public BatchStatementError addItemEntry(String key, AttributeValue value)
public BatchStatementError clearItemEntries()
public String toString()
toString
in class Object
Object.toString()
public BatchStatementError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2025. All rights reserved.