Class PutRecordsResultEntry

java.lang.Object
com.amazonaws.services.kinesis.model.PutRecordsResultEntry
All Implemented Interfaces:
Serializable, Cloneable

public class PutRecordsResultEntry extends Object implements Serializable, Cloneable

Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result.

See Also:
  • Constructor Details

    • PutRecordsResultEntry

      public PutRecordsResultEntry()
  • Method Details

    • setSequenceNumber

      public void setSequenceNumber(String sequenceNumber)

      The sequence number for an individual record result.

      Parameters:
      sequenceNumber - The sequence number for an individual record result.
    • getSequenceNumber

      public String getSequenceNumber()

      The sequence number for an individual record result.

      Returns:
      The sequence number for an individual record result.
    • withSequenceNumber

      public PutRecordsResultEntry withSequenceNumber(String sequenceNumber)

      The sequence number for an individual record result.

      Parameters:
      sequenceNumber - The sequence number for an individual record result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setShardId

      public void setShardId(String shardId)

      The shard ID for an individual record result.

      Parameters:
      shardId - The shard ID for an individual record result.
    • getShardId

      public String getShardId()

      The shard ID for an individual record result.

      Returns:
      The shard ID for an individual record result.
    • withShardId

      public PutRecordsResultEntry withShardId(String shardId)

      The shard ID for an individual record result.

      Parameters:
      shardId - The shard ID for an individual record result.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setErrorCode

      public void setErrorCode(String errorCode)

      The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

      Parameters:
      errorCode - The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.
    • getErrorCode

      public String getErrorCode()

      The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

      Returns:
      The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.
    • withErrorCode

      public PutRecordsResultEntry withErrorCode(String errorCode)

      The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.

      Parameters:
      errorCode - The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setErrorMessage

      public void setErrorMessage(String errorMessage)

      The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".

      Parameters:
      errorMessage - The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".
    • getErrorMessage

      public String getErrorMessage()

      The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".

      Returns:
      The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".
    • withErrorMessage

      public PutRecordsResultEntry withErrorMessage(String errorMessage)

      The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".

      Parameters:
      errorMessage - The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".
      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 PutRecordsResultEntry clone()
      Overrides:
      clone in class Object