public class PutRecordResult
extends java.lang.Object
implements java.io.Serializable
Represents the output for PutRecord .
| Constructor and Description |
|---|
PutRecordResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSequenceNumber()
The sequence number identifier that was assigned to the put data
record.
|
java.lang.String |
getShardId()
The shard ID of the shard where the data record was placed.
|
int |
hashCode() |
void |
setSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data
record.
|
void |
setShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutRecordResult |
withSequenceNumber(java.lang.String sequenceNumber)
The sequence number identifier that was assigned to the put data
record.
|
PutRecordResult |
withShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
|
public java.lang.String getShardId()
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
public void setShardId(java.lang.String shardId)
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
shardId - The shard ID of the shard where the data record was placed.public PutRecordResult withShardId(java.lang.String shardId)
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 of the shard where the data record was placed.public java.lang.String getSequenceNumber()
Constraints:
Pattern: 0|([1-9]\d{0,128})
public void setSequenceNumber(java.lang.String sequenceNumber)
Constraints:
Pattern: 0|([1-9]\d{0,128})
sequenceNumber - The sequence number identifier that was assigned to the put data
record. The sequence number for the record is unique across all
records in the stream. A sequence number is the identifier associated
with every record put into the stream.public PutRecordResult withSequenceNumber(java.lang.String sequenceNumber)
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 identifier that was assigned to the put data
record. The sequence number for the record is unique across all
records in the stream. A sequence number is the identifier associated
with every record put into the stream.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object