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 includesSequenceNumber
andShardId
in the result. A record that fails to be added to the stream includesErrorCode
andErrorMessage
in 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 PutRecordsResultEntry
clone()
boolean
equals(Object obj)
String
getErrorCode()
The error code for an individual record result.String
getErrorMessage()
The error message for an individual record result.String
getSequenceNumber()
The sequence number for an individual record result.String
getShardId()
The shard ID for an individual record result.int
hashCode()
void
setErrorCode(String errorCode)
The error code for an individual record result.void
setErrorMessage(String errorMessage)
The error message for an individual record result.void
setSequenceNumber(String sequenceNumber)
The sequence number for an individual record result.void
setShardId(String shardId)
The shard ID for an individual record result.String
toString()
Returns a string representation of this object; useful for testing and debugging.PutRecordsResultEntry
withErrorCode(String errorCode)
The error code for an individual record result.PutRecordsResultEntry
withErrorMessage(String errorMessage)
The error message for an individual record result.PutRecordsResultEntry
withSequenceNumber(String sequenceNumber)
The sequence number for an individual record result.PutRecordsResultEntry
withShardId(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.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.- Parameters:
errorCode
- The error code for an individual record result.ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.
-
getErrorCode
public String getErrorCode()
The error code for an individual record result.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.- Returns:
- The error code for an individual record result.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.
-
withErrorCode
public PutRecordsResultEntry withErrorCode(String errorCode)
The error code for an individual record result.
ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.- Parameters:
errorCode
- The error code for an individual record result.ErrorCodes
can be eitherProvisionedThroughputExceededException
orInternalFailure
.- 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 ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.- Parameters:
errorMessage
- The error message for an individual record result. AnErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.
-
getErrorMessage
public String getErrorMessage()
The error message for an individual record result. An
ErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.- Returns:
- The error message for an individual record result. An
ErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.
-
withErrorMessage
public PutRecordsResultEntry withErrorMessage(String errorMessage)
The error message for an individual record result. An
ErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
has the error message"Internal Service Failure"
.- Parameters:
errorMessage
- The error message for an individual record result. AnErrorCode
value ofProvisionedThroughputExceededException
has an error message that includes the account ID, stream name, and shard ID. AnErrorCode
value ofInternalFailure
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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PutRecordsResultEntry clone()
-
-