Class PutRecordsResult
- java.lang.Object
-
- com.amazonaws.services.kinesis.model.PutRecordsResult
-
- All Implemented Interfaces:
Serializable,Cloneable
public class PutRecordsResult extends Object implements Serializable, Cloneable
PutRecordsresults.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutRecordsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutRecordsResultclone()booleanequals(Object obj)IntegergetFailedRecordCount()The number of unsuccessfully processed records in aPutRecordsrequest.List<PutRecordsResultEntry>getRecords()An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.inthashCode()voidsetFailedRecordCount(Integer failedRecordCount)The number of unsuccessfully processed records in aPutRecordsrequest.voidsetRecords(Collection<PutRecordsResultEntry> records)An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutRecordsResultwithFailedRecordCount(Integer failedRecordCount)The number of unsuccessfully processed records in aPutRecordsrequest.PutRecordsResultwithRecords(PutRecordsResultEntry... records)An array of successfully and unsuccessfully processed record results, correlated with the request by natural ordering.PutRecordsResultwithRecords(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
PutRecordsrequest.- Parameters:
failedRecordCount- The number of unsuccessfully processed records in aPutRecordsrequest.
-
getFailedRecordCount
public Integer getFailedRecordCount()
The number of unsuccessfully processed records in a
PutRecordsrequest.- Returns:
- The number of unsuccessfully processed records in a
PutRecordsrequest.
-
withFailedRecordCount
public PutRecordsResult withFailedRecordCount(Integer failedRecordCount)
The number of unsuccessfully processed records in a
PutRecordsrequest.- Parameters:
failedRecordCount- The number of unsuccessfully processed records in aPutRecordsrequest.- 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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
SequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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 includesSequenceNumberandShardIdin the result. A record that fails to be added to a stream includesErrorCodeandErrorMessagein 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRecordsResult clone()
-
-