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:
  • Constructor Details

    • PutRecordsResult

      public PutRecordsResult()
  • Method Details

    • 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 a PutRecords 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 a PutRecords 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 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.

      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 includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 includes SequenceNumber and ShardId in the result. A record that fails to be added to a stream includes ErrorCode and ErrorMessage 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PutRecordsResult clone()
      Overrides:
      clone in class Object