public class PutRecordsResult
extends java.lang.Object
implements java.io.Serializable
PutRecords results.
| Constructor and Description |
|---|
PutRecordsResult() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.Integer getFailedRecordCount()
PutRecords request.
Constraints:
Range: 1 -
PutRecords request.public void setFailedRecordCount(java.lang.Integer failedRecordCount)
PutRecords request.
Constraints:
Range: 1 -
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public PutRecordsResult withFailedRecordCount(java.lang.Integer failedRecordCount)
PutRecords request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 -
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public java.util.List<PutRecordsResultEntry> getRecords()
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.
Constraints:
Length: 1 - 500
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.public void setRecords(java.util.Collection<PutRecordsResultEntry> records)
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.
Constraints:
Length: 1 - 500
records - An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to your Amazon Kinesis stream includes
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.public PutRecordsResult withRecords(PutRecordsResultEntry... records)
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
records - An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to your Amazon Kinesis stream includes
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.public PutRecordsResult withRecords(java.util.Collection<PutRecordsResultEntry> records)
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 500
records - An array of successfully and unsuccessfully processed record results,
correlated with the request by natural ordering. A record that is
successfully added to your Amazon Kinesis stream includes
SequenceNumber and ShardId in the result. A
record that fails to be added to your Amazon Kinesis stream includes
ErrorCode and ErrorMessage in the result.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object