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 Integer getFailedRecordCount()
PutRecords request.
Constraints:
Range: 1 - 100000
PutRecords request.public void setFailedRecordCount(Integer failedRecordCount)
PutRecords request.
Constraints:
Range: 1 - 100000
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public PutRecordsResult withFailedRecordCount(Integer failedRecordCount)
PutRecords request.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 1 - 100000
failedRecordCount - The number of unsuccessfully processed records in a
PutRecords request.public 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(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.
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.
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(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 String toString()
toString in class ObjectObject.toString()public PutRecordsResult clone()
Copyright © 2015. All rights reserved.