public class GetRecordsResult
extends java.lang.Object
implements java.io.Serializable
Represents the output for GetRecords .
| Constructor and Description |
|---|
GetRecordsResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getNextShardIterator()
The next position in the shard from which to start sequentially
reading data records.
|
java.util.List<Record> |
getRecords()
The data records retrieved from the shard.
|
int |
hashCode() |
void |
setNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially
reading data records.
|
void |
setRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetRecordsResult |
withNextShardIterator(java.lang.String nextShardIterator)
The next position in the shard from which to start sequentially
reading data records.
|
GetRecordsResult |
withRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
|
GetRecordsResult |
withRecords(Record... records)
The data records retrieved from the shard.
|
public java.util.List<Record> getRecords()
The data records retrieved from the shard.
The data records retrieved from the shard.
public void setRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
records - The data records retrieved from the shard.
public GetRecordsResult withRecords(Record... records)
The data records retrieved from the shard.
Returns a reference to this object so that method calls can be chained together.
records - The data records retrieved from the shard.
public GetRecordsResult withRecords(java.util.Collection<Record> records)
The data records retrieved from the shard.
Returns a reference to this object so that method calls can be chained together.
records - The data records retrieved from the shard.
public java.lang.String getNextShardIterator()
null, the shard has been
closed and the requested iterator will not return any more data.
Constraints:
Length: 1 - 512
null, the shard has been
closed and the requested iterator will not return any more data.public void setNextShardIterator(java.lang.String nextShardIterator)
null, the shard has been
closed and the requested iterator will not return any more data.
Constraints:
Length: 1 - 512
nextShardIterator - The next position in the shard from which to start sequentially
reading data records. If set to null, the shard has been
closed and the requested iterator will not return any more data.public GetRecordsResult withNextShardIterator(java.lang.String nextShardIterator)
null, the shard has been
closed and the requested iterator will not return any more data.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 512
nextShardIterator - The next position in the shard from which to start sequentially
reading data records. If set to null, the shard has been
closed and the requested iterator will not return any more data.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