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
PutRecordsrequest. A record that is successfully added to a stream includesSequenceNumberandShardIdin the result. A record that fails to be added to the stream includesErrorCodeandErrorMessagein the result.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutRecordsResultEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PutRecordsResultEntryclone()booleanequals(Object obj)StringgetErrorCode()The error code for an individual record result.StringgetErrorMessage()The error message for an individual record result.StringgetSequenceNumber()The sequence number for an individual record result.StringgetShardId()The shard ID for an individual record result.inthashCode()voidsetErrorCode(String errorCode)The error code for an individual record result.voidsetErrorMessage(String errorMessage)The error message for an individual record result.voidsetSequenceNumber(String sequenceNumber)The sequence number for an individual record result.voidsetShardId(String shardId)The shard ID for an individual record result.StringtoString()Returns a string representation of this object; useful for testing and debugging.PutRecordsResultEntrywithErrorCode(String errorCode)The error code for an individual record result.PutRecordsResultEntrywithErrorMessage(String errorMessage)The error message for an individual record result.PutRecordsResultEntrywithSequenceNumber(String sequenceNumber)The sequence number for an individual record result.PutRecordsResultEntrywithShardId(String shardId)The shard ID for an individual record result.
-
-
-
Method Detail
-
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.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.- Parameters:
errorCode- The error code for an individual record result.ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.
-
getErrorCode
public String getErrorCode()
The error code for an individual record result.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.- Returns:
- The error code for an individual record result.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.
-
withErrorCode
public PutRecordsResultEntry withErrorCode(String errorCode)
The error code for an individual record result.
ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.- Parameters:
errorCode- The error code for an individual record result.ErrorCodescan be eitherProvisionedThroughputExceededExceptionorInternalFailure.- 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
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".- Parameters:
errorMessage- The error message for an individual record result. AnErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".
-
getErrorMessage
public String getErrorMessage()
The error message for an individual record result. An
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".- Returns:
- The error message for an individual record result. An
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".
-
withErrorMessage
public PutRecordsResultEntry withErrorMessage(String errorMessage)
The error message for an individual record result. An
ErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas the error message"Internal Service Failure".- Parameters:
errorMessage- The error message for an individual record result. AnErrorCodevalue ofProvisionedThroughputExceededExceptionhas an error message that includes the account ID, stream name, and shard ID. AnErrorCodevalue ofInternalFailurehas 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRecordsResultEntry clone()
-
-