Class PutRecordsResult
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.PutRecordsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PutRecordsResult extends Object implements Serializable, Cloneable
PutRecords
results.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutRecordsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutRecordsResult
clone()
boolean
equals(Object obj)
Integer
getFailedRecordCount()
The number of unsuccessfully processed records in aPutRecords
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 aPutRecords
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 aPutRecords
request.PutRecordsResult
withRecords(PutRecordsResultEntry... records)
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.PutRecordsResult
withRecords(Collection<PutRecordsResultEntry> records)
An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.
-
-
-
Method Detail
-
setFailedRecordCount
public void setFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.- Parameters:
failedRecordCount
- The number of unsuccessfully processed records in aPutRecords
request.
-
getFailedRecordCount
public Integer getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecords
request.- Returns:
- The number of unsuccessfully processed records in a
PutRecords
request.
-
withFailedRecordCount
public PutRecordsResult withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecords
request.- Parameters:
failedRecordCount
- The number of unsuccessfully processed records in aPutRecords
request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getRecords
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
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- 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
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.
-
setRecords
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
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
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 includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.
-
withRecords
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
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
orwithRecords(java.util.Collection)
if you want to override the existing values.- Parameters:
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 includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withRecords
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
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Parameters:
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 includesSequenceNumber
andShardId
in the result. A record that fails to be added to a stream includesErrorCode
andErrorMessage
in the result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRecordsResult clone()
-
-