public class PutRecordsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
PutRecords
results.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
failedRecordCount
The number of unsuccessfully processed records in a
PutRecords request. |
private SdkInternalList<PutRecordsResultEntry> |
records
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
Constructor and Description |
---|
PutRecordsResult() |
Modifier and Type | Method and Description |
---|---|
PutRecordsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords request. |
java.util.List<PutRecordsResultEntry> |
getRecords()
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
int |
hashCode() |
void |
setFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
void |
setRecords(java.util.Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordsResult |
withFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords request. |
PutRecordsResult |
withRecords(java.util.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.
|
private java.lang.Integer failedRecordCount
The number of unsuccessfully processed records in a
PutRecords
request.
private SdkInternalList<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.
public void setFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.
failedRecordCount
- The number of unsuccessfully processed records in a
PutRecords
request.public java.lang.Integer getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords
request.
PutRecords
request.public PutRecordsResult withFailedRecordCount(java.lang.Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.
failedRecordCount
- The number of unsuccessfully processed records in a
PutRecords
request.public java.util.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(java.util.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(java.util.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 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 PutRecordsResult clone()
clone
in class java.lang.Object