public class PutRecordBatchResponseEntry
extends java.lang.Object
implements java.io.Serializable
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.
Constructor and Description |
---|
PutRecordBatchResponseEntry() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getRecordId()
The ID of the record.
Constraints:
Length: 1 -
The ID of the record.
public void setRecordId(java.lang.String recordId)
The ID of the record.
Constraints:
Length: 1 -
recordId
- The ID of the record.
public PutRecordBatchResponseEntry withRecordId(java.lang.String recordId)
The ID of the record.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
recordId
- The ID of the record.
public java.lang.String getErrorCode()
The error code for an individual record result.
The error code for an individual record result.
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 PutRecordBatchResponseEntry withErrorCode(java.lang.String errorCode)
The error code for an individual record result.
Returns a reference to this object so that method calls can be chained together.
errorCode
- The error code for an individual record result.
public java.lang.String getErrorMessage()
The error message for an individual record result.
The error message 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 PutRecordBatchResponseEntry withErrorMessage(java.lang.String errorMessage)
The error message for an individual record result.
Returns a reference to this object so that method calls can be chained together.
errorMessage
- The error message for an individual record result.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.