public class PutRecordBatchResult extends Object implements Serializable
Contains the output of PutRecordBatch.
Constructor and Description |
---|
PutRecordBatchResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getFailedPutCount()
The number of unsuccessfully written records.
|
List<PutRecordBatchResponseEntry> |
getRequestResponses()
The results for the individual records.
|
int |
hashCode() |
void |
setFailedPutCount(Integer failedPutCount)
The number of unsuccessfully written records.
|
void |
setRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordBatchResult |
withFailedPutCount(Integer failedPutCount)
The number of unsuccessfully written records.
|
PutRecordBatchResult |
withRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records.
|
PutRecordBatchResult |
withRequestResponses(PutRecordBatchResponseEntry... requestResponses)
The results for the individual records.
|
public Integer getFailedPutCount()
The number of unsuccessfully written records.
Constraints:
Range: 0 -
The number of unsuccessfully written records.
public void setFailedPutCount(Integer failedPutCount)
The number of unsuccessfully written records.
Constraints:
Range: 0 -
failedPutCount
- The number of unsuccessfully written records.
public PutRecordBatchResult withFailedPutCount(Integer failedPutCount)
The number of unsuccessfully written records.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
failedPutCount
- The number of unsuccessfully written records.
public List<PutRecordBatchResponseEntry> getRequestResponses()
The results for the individual records. The index of each element matches the same index in which records were sent.
The results for the individual records. The index of each element matches the same index in which records were sent.
public void setRequestResponses(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.
Returns a reference to this object so that method calls can be chained together.
requestResponses
- The results for the individual records. The index of each element matches the same index in which records were sent.
public PutRecordBatchResult withRequestResponses(Collection<PutRecordBatchResponseEntry> requestResponses)
The results for the individual records. The index of each element matches the same index in which records were sent.
Returns a reference to this object so that method calls can be chained together.
requestResponses
- The results for the individual records. The index of each element matches the same index in which records were sent.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2017. All rights reserved.