public class PutRecordsResultEntry
extends java.lang.Object
implements java.io.Serializable
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 |
---|---|
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.
|
public java.lang.String getSequenceNumber()
The sequence number for an individual record result.
Constraints:
Pattern: 0|([1-9]\d{0,128})
The sequence number for an individual record result.
public void setSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
Constraints:
Pattern: 0|([1-9]\d{0,128})
sequenceNumber
- The sequence number for an individual record result.
public PutRecordsResultEntry withSequenceNumber(java.lang.String sequenceNumber)
The sequence number for an individual record result.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: 0|([1-9]\d{0,128})
sequenceNumber
- The sequence number for an individual record result.
public java.lang.String getShardId()
The shard ID for an individual record result.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID for an individual record result.
public void setShardId(java.lang.String shardId)
The shard ID for an individual record result.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId
- The shard ID for an individual record result.
public PutRecordsResultEntry withShardId(java.lang.String shardId)
The shard ID for an individual record result.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId
- The shard ID for an individual record result.
public java.lang.String getErrorCode()
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
The error code for an individual record result.
ErrorCodes
can be either
ProvisionedThroughputExceededException
or
InternalFailure
.
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 PutRecordsResultEntry withErrorCode(java.lang.String errorCode)
The error code for an individual record result. ErrorCodes
can be either ProvisionedThroughputExceededException
or
InternalFailure
.
Returns a reference to this object so that method calls can be chained together.
errorCode
-
The error code for an individual record result.
ErrorCodes
can be either
ProvisionedThroughputExceededException
or
InternalFailure
.
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"
.
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 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 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"
.
Returns a reference to this object so that method calls can be chained together.
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 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.