public class PutRecordResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents the output for PutRecord
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
sequenceNumber
The sequence number identifier that was assigned to the put data record.
|
private java.lang.String |
shardId
The shard ID of the shard where the data record was placed.
|
Constructor and Description |
---|
PutRecordResult() |
Modifier and Type | Method and Description |
---|---|
PutRecordResult |
clone() |
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.
|
private java.lang.String shardId
The shard ID of the shard where the data record was placed.
private java.lang.String 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 void setShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
shardId
- The shard ID of the shard where the data record was placed.public java.lang.String getShardId()
The shard ID of the shard where the data record was placed.
public PutRecordResult withShardId(java.lang.String shardId)
The shard ID of the shard where the data record was placed.
shardId
- The shard ID of the shard where the data record was placed.public void setSequenceNumber(java.lang.String 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.
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 getSequenceNumber()
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)
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.
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.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 PutRecordResult clone()
clone
in class java.lang.Object