@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecordsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the output of a GetRecords
operation.
Constructor and Description |
---|
GetRecordsResult() |
Modifier and Type | Method and Description |
---|---|
GetRecordsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextShardIterator()
The next position in the shard from which to start sequentially reading stream records.
|
List<Record> |
getRecords()
The stream records from the shard, which were retrieved using the shard iterator.
|
int |
hashCode() |
void |
setNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records.
|
void |
setRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
|
String |
toString()
Returns a string representation of this object.
|
GetRecordsResult |
withNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records.
|
GetRecordsResult |
withRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
|
GetRecordsResult |
withRecords(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Record> getRecords()
The stream records from the shard, which were retrieved using the shard iterator.
public void setRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
records
- The stream records from the shard, which were retrieved using the shard iterator.public GetRecordsResult withRecords(Record... records)
The stream records from the shard, which were retrieved using the shard iterator.
NOTE: This method appends the values to the existing list (if any). Use
setRecords(java.util.Collection)
or withRecords(java.util.Collection)
if you want to override
the existing values.
records
- The stream records from the shard, which were retrieved using the shard iterator.public GetRecordsResult withRecords(Collection<Record> records)
The stream records from the shard, which were retrieved using the shard iterator.
records
- The stream records from the shard, which were retrieved using the shard iterator.public void setNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
nextShardIterator
- The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.public String getNextShardIterator()
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
null
, the shard has been closed and the requested iterator will not return any more data.public GetRecordsResult withNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.
nextShardIterator
- The next position in the shard from which to start sequentially reading stream records. If set to
null
, the shard has been closed and the requested iterator will not return any more data.public String toString()
toString
in class Object
Object.toString()
public GetRecordsResult clone()
Copyright © 2021. All rights reserved.