public class PutRecordsResultEntry
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
errorCode
The error code for an individual record result.
|
private java.lang.String |
errorMessage
The error message for an individual record result.
|
private java.lang.String |
sequenceNumber
The sequence number for an individual record result.
|
private java.lang.String |
shardId
The shard ID for an individual record result.
|
Constructor and Description |
---|
PutRecordsResultEntry() |
Modifier and Type | Method and Description |
---|---|
PutRecordsResultEntry |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getErrorCode()
The error code for an individual record result.
|
java.lang.String |
getErrorMessage()
The error message for an individual record result.
|
java.lang.String |
getSequenceNumber()
The sequence number for an individual record result.
|
java.lang.String |
getShardId()
The shard ID for an individual record result.
|
int |
hashCode() |
void |
setErrorCode(java.lang.String errorCode)
The error code for an individual record result.
|
void |
setErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
|
void |
setSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
|
void |
setShardId(java.lang.String shardId)
The shard ID for an individual record result.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordsResultEntry |
withErrorCode(java.lang.String errorCode)
The error code for an individual record result.
|
PutRecordsResultEntry |
withErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
|
PutRecordsResultEntry |
withSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
|
PutRecordsResultEntry |
withShardId(java.lang.String shardId)
The shard ID for an individual record result.
|
private java.lang.String sequenceNumber
The sequence number for an individual record result.
private java.lang.String shardId
The shard ID for an individual record result.
private java.lang.String errorCode
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
private java.lang.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"
.
public void setSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
sequenceNumber
- The sequence number for an individual record result.public java.lang.String getSequenceNumber()
The sequence number for an individual record result.
public PutRecordsResultEntry withSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
sequenceNumber
- The sequence number for an individual record result.public void setShardId(java.lang.String shardId)
The shard ID for an individual record result.
shardId
- The shard ID for an individual record result.public java.lang.String getShardId()
The shard ID for an individual record result.
public PutRecordsResultEntry withShardId(java.lang.String shardId)
The shard ID for an individual record result.
shardId
- The shard ID for an individual record result.public void setErrorCode(java.lang.String errorCode)
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
errorCode
- The error code for an individual record result.
ErrorCodes
can be either
ProvisionedThroughputExceededException
or
InternalFailure
.public java.lang.String getErrorCode()
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
ErrorCodes
can be either
ProvisionedThroughputExceededException
or
InternalFailure
.public PutRecordsResultEntry withErrorCode(java.lang.String errorCode)
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
errorCode
- The error code for an individual record result.
ErrorCodes
can be either
ProvisionedThroughputExceededException
or
InternalFailure
.public void setErrorMessage(java.lang.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"
.
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"
.public java.lang.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"
.
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"
.public PutRecordsResultEntry withErrorMessage(java.lang.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"
.
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"
.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PutRecordsResultEntry clone()
clone
in class java.lang.Object