public class PutRecordBatchResponseEntry
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the result for an individual record from a PutRecordBatch request. If the record is successfully added to your delivery stream, it receives a record ID. If the record fails to be added to your delivery stream, the result includes an error code and an error message.
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 |
recordId
The ID of the record.
|
Constructor and Description |
---|
PutRecordBatchResponseEntry() |
Modifier and Type | Method and Description |
---|---|
PutRecordBatchResponseEntry |
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 |
getRecordId()
The ID of the record.
|
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 |
setRecordId(java.lang.String recordId)
The ID of the record.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordBatchResponseEntry |
withErrorCode(java.lang.String errorCode)
The error code for an individual record result.
|
PutRecordBatchResponseEntry |
withErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
|
PutRecordBatchResponseEntry |
withRecordId(java.lang.String recordId)
The ID of the record.
|
private java.lang.String recordId
The ID of the record.
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.
public void setRecordId(java.lang.String recordId)
The ID of the record.
recordId
- The ID of the record.public java.lang.String getRecordId()
The ID of the record.
public PutRecordBatchResponseEntry withRecordId(java.lang.String recordId)
The ID of the record.
recordId
- The ID of the record.public void setErrorCode(java.lang.String errorCode)
The error code for an individual record result.
errorCode
- The error code for an individual record result.public java.lang.String getErrorCode()
The error code for an individual record result.
public PutRecordBatchResponseEntry withErrorCode(java.lang.String errorCode)
The error code for an individual record result.
errorCode
- The error code for an individual record result.public void setErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
errorMessage
- The error message for an individual record result.public java.lang.String getErrorMessage()
The error message for an individual record result.
public PutRecordBatchResponseEntry withErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
errorMessage
- The error message for an individual record result.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 PutRecordBatchResponseEntry clone()
clone
in class java.lang.Object