public class PutRecordBatchResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of PutRecordBatch.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
failedPutCount
The number of unsuccessfully written records.
|
private java.util.List<PutRecordBatchResponseEntry> |
requestResponses
The results for the individual records.
|
Constructor and Description |
---|
PutRecordBatchResult() |
Modifier and Type | Method and Description |
---|---|
PutRecordBatchResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFailedPutCount()
The number of unsuccessfully written records.
|
java.util.List<PutRecordBatchResponseEntry> |
getRequestResponses()
The results for the individual records.
|
int |
hashCode() |
void |
setFailedPutCount(java.lang.Integer failedPutCount)
The number of unsuccessfully written records.
|
void |
setRequestResponses(java.util.Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordBatchResult |
withFailedPutCount(java.lang.Integer failedPutCount)
The number of unsuccessfully written records.
|
PutRecordBatchResult |
withRequestResponses(java.util.Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records.
|
PutRecordBatchResult |
withRequestResponses(PutRecordBatchResponseEntry... requestResponses)
The results for the individual records.
|
private java.lang.Integer failedPutCount
The number of unsuccessfully written records.
private java.util.List<PutRecordBatchResponseEntry> requestResponses
The results for the individual records. The index of each element matches the same index in which records were sent.
public void setFailedPutCount(java.lang.Integer failedPutCount)
The number of unsuccessfully written records.
failedPutCount
- The number of unsuccessfully written records.public java.lang.Integer getFailedPutCount()
The number of unsuccessfully written records.
public PutRecordBatchResult withFailedPutCount(java.lang.Integer failedPutCount)
The number of unsuccessfully written records.
failedPutCount
- The number of unsuccessfully written records.public java.util.List<PutRecordBatchResponseEntry> getRequestResponses()
The results for the individual records. The index of each element matches the same index in which records were sent.
public void setRequestResponses(java.util.Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records. The index of each element matches the same index in which records were sent.
requestResponses
- The results for the individual records. The index of each element
matches the same index in which records were sent.public PutRecordBatchResult withRequestResponses(PutRecordBatchResponseEntry... requestResponses)
The results for the individual records. The index of each element matches the same index in which records were sent.
NOTE: This method appends the values to the existing list (if
any). Use setRequestResponses(java.util.Collection)
or
withRequestResponses(java.util.Collection)
if you want to
override the existing values.
requestResponses
- The results for the individual records. The index of each element
matches the same index in which records were sent.public PutRecordBatchResult withRequestResponses(java.util.Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records. The index of each element matches the same index in which records were sent.
requestResponses
- The results for the individual records. The index of each element
matches the same index in which records were sent.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutRecordBatchResult clone()
clone
in class java.lang.Object