public class PutRecordsResult extends Object implements Serializable, Cloneable
PutRecords results.
| Constructor and Description |
|---|
PutRecordsResult() |
| Modifier and Type | Method and Description |
|---|---|
PutRecordsResult |
clone() |
boolean |
equals(Object obj) |
Integer |
getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request. |
List<PutRecordsResultEntry> |
getRecords()
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
int |
hashCode() |
void |
setFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
void |
setRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordsResult |
withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
PutRecordsResult |
withRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
PutRecordsResult |
withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
public void setFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request.
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public Integer getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request.
PutRecords request.public PutRecordsResult withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request.
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public List<PutRecordsResultEntry> getRecords()
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to a stream includes SequenceNumber and
ShardId in the result. A record that fails to be added to a
stream includes ErrorCode and ErrorMessage in
the result.
SequenceNumber and ShardId in the
result. A record that fails to be added to a stream includes
ErrorCode and ErrorMessage in the
result.public void setRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to a stream includes SequenceNumber and
ShardId in the result. A record that fails to be added to a
stream includes ErrorCode and ErrorMessage in
the result.
records - An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. A record
that is successfully added to a stream includes
SequenceNumber and ShardId in the
result. A record that fails to be added to a stream includes
ErrorCode and ErrorMessage in the
result.public PutRecordsResult withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to a stream includes SequenceNumber and
ShardId in the result. A record that fails to be added to a
stream includes ErrorCode and ErrorMessage in
the result.
NOTE: This method appends the values to the existing list (if
any). Use setRecords(java.util.Collection) or
withRecords(java.util.Collection) if you want to override the
existing values.
records - An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. A record
that is successfully added to a stream includes
SequenceNumber and ShardId in the
result. A record that fails to be added to a stream includes
ErrorCode and ErrorMessage in the
result.public PutRecordsResult withRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to a stream includes SequenceNumber and
ShardId in the result. A record that fails to be added to a
stream includes ErrorCode and ErrorMessage in
the result.
records - An array of successfully and unsuccessfully processed record
results, correlated with the request by natural ordering. A record
that is successfully added to a stream includes
SequenceNumber and ShardId in the
result. A record that fails to be added to a stream includes
ErrorCode and ErrorMessage in the
result.public String toString()
toString in class ObjectObject.toString()public PutRecordsResult clone()
Copyright © 2016. All rights reserved.