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