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 includes
SequenceNumber
and ShardId
in the result. A record
that fails to be added to the stream includes ErrorCode
and
ErrorMessage
in the result.
Constructor and Description |
---|
PutRecordsResultEntry() |
Modifier and Type | Method and 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.
|
public void setSequenceNumber(String sequenceNumber)
The sequence number for an individual record result.
sequenceNumber
- The sequence number for an individual record result.public String getSequenceNumber()
The sequence number for an individual record result.
public PutRecordsResultEntry withSequenceNumber(String sequenceNumber)
The sequence number for an individual record result.
sequenceNumber
- The sequence number for an individual record result.public void setShardId(String shardId)
The shard ID for an individual record result.
shardId
- The shard ID for an individual record result.public String getShardId()
The shard ID for an individual record result.
public PutRecordsResultEntry withShardId(String shardId)
The shard ID for an individual record result.
shardId
- The shard ID for an individual record result.public void setErrorCode(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 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(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(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 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(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 String toString()
toString
in class Object
Object.toString()
public PutRecordsResultEntry clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.