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()
The shard ID of the shard where the data record was placed.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9_.-]+
The shard ID of the shard where the data record was placed.
public void setShardId(String shardId)
The shard ID of the shard where the data record was placed.
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)
The shard ID of the shard where the data record was placed.
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()
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.
Constraints:
Pattern: 0|([1-9]\d{0,128})
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 setSequenceNumber(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.
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)
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.
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 Object
Object.toString()
Copyright © 2017. All rights reserved.