@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CancellationReason extends Object implements Serializable, Cloneable, StructuredPojo
An ordered list of errors for each item in the request which caused the transaction to get cancelled. The values of
the list are ordered according to the ordering of the TransactWriteItems
request parameter. If no error
occurred for the associated item an error with a Null code and Null message will be present.
Constructor and Description |
---|
CancellationReason() |
Modifier and Type | Method and Description |
---|---|
CancellationReason |
addItemEntry(String key,
AttributeValue value)
Add a single Item entry
|
CancellationReason |
clearItemEntries()
Removes all the entries added into Item.
|
CancellationReason |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
Status code for the result of the cancelled transaction.
|
Map<String,AttributeValue> |
getItem()
Item in the request which caused the transaction to get cancelled.
|
String |
getMessage()
Cancellation reason message description.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCode(String code)
Status code for the result of the cancelled transaction.
|
void |
setItem(Map<String,AttributeValue> item)
Item in the request which caused the transaction to get cancelled.
|
void |
setMessage(String message)
Cancellation reason message description.
|
String |
toString()
Returns a string representation of this object.
|
CancellationReason |
withCode(String code)
Status code for the result of the cancelled transaction.
|
CancellationReason |
withItem(Map<String,AttributeValue> item)
Item in the request which caused the transaction to get cancelled.
|
CancellationReason |
withMessage(String message)
Cancellation reason message description.
|
public Map<String,AttributeValue> getItem()
Item in the request which caused the transaction to get cancelled.
public void setItem(Map<String,AttributeValue> item)
Item in the request which caused the transaction to get cancelled.
item
- Item in the request which caused the transaction to get cancelled.public CancellationReason withItem(Map<String,AttributeValue> item)
Item in the request which caused the transaction to get cancelled.
item
- Item in the request which caused the transaction to get cancelled.public CancellationReason addItemEntry(String key, AttributeValue value)
public CancellationReason clearItemEntries()
public void setCode(String code)
Status code for the result of the cancelled transaction.
code
- Status code for the result of the cancelled transaction.public String getCode()
Status code for the result of the cancelled transaction.
public CancellationReason withCode(String code)
Status code for the result of the cancelled transaction.
code
- Status code for the result of the cancelled transaction.public void setMessage(String message)
Cancellation reason message description.
message
- Cancellation reason message description.public String getMessage()
Cancellation reason message description.
public CancellationReason withMessage(String message)
Cancellation reason message description.
message
- Cancellation reason message description.public String toString()
toString
in class Object
Object.toString()
public CancellationReason clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2020. All rights reserved.