@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecordsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Represents the output for GetRecords.
Constructor and Description |
---|
GetRecordsResult() |
Modifier and Type | Method and Description |
---|---|
GetRecordsResult |
clone() |
boolean |
equals(Object obj) |
List<ChildShard> |
getChildShards()
The list of the current shard's child shards, returned in the
GetRecords API's response only when
the end of the current shard is reached. |
Long |
getMillisBehindLatest()
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far
behind current time the consumer is.
|
String |
getNextShardIterator()
The next position in the shard from which to start sequentially reading data records.
|
List<Record> |
getRecords()
The data records retrieved from the shard.
|
int |
hashCode() |
void |
setChildShards(Collection<ChildShard> childShards)
The list of the current shard's child shards, returned in the
GetRecords API's response only when
the end of the current shard is reached. |
void |
setMillisBehindLatest(Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far
behind current time the consumer is.
|
void |
setNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading data records.
|
void |
setRecords(Collection<Record> records)
The data records retrieved from the shard.
|
String |
toString()
Returns a string representation of this object.
|
GetRecordsResult |
withChildShards(ChildShard... childShards)
The list of the current shard's child shards, returned in the
GetRecords API's response only when
the end of the current shard is reached. |
GetRecordsResult |
withChildShards(Collection<ChildShard> childShards)
The list of the current shard's child shards, returned in the
GetRecords API's response only when
the end of the current shard is reached. |
GetRecordsResult |
withMillisBehindLatest(Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far
behind current time the consumer is.
|
GetRecordsResult |
withNextShardIterator(String nextShardIterator)
The next position in the shard from which to start sequentially reading data records.
|
GetRecordsResult |
withRecords(Collection<Record> records)
The data records retrieved from the shard.
|
GetRecordsResult |
withRecords(Record... records)
The data records retrieved from the shard.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Record> getRecords()
The data records retrieved from the shard.
public void setRecords(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.
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 data records retrieved from the shard.public GetRecordsResult withRecords(Collection<Record> records)
The data records retrieved from the shard.
records
- The data records retrieved from the shard.public void setNextShardIterator(String 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 does not return any more data.
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 does not return any more data.public String getNextShardIterator()
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 does not return any more data.
null
, the shard has been closed and the requested iterator does not return any more data.public GetRecordsResult withNextShardIterator(String 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 does not return any more data.
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 does not return any more data.public void setMillisBehindLatest(Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
millisBehindLatest
- The number of milliseconds the GetRecords response is from the tip of the stream, indicating how
far behind current time the consumer is. A value of zero indicates that record processing is caught up,
and there are no new records to process at this moment.public Long getMillisBehindLatest()
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
public GetRecordsResult withMillisBehindLatest(Long millisBehindLatest)
The number of milliseconds the GetRecords response is from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.
millisBehindLatest
- The number of milliseconds the GetRecords response is from the tip of the stream, indicating how
far behind current time the consumer is. A value of zero indicates that record processing is caught up,
and there are no new records to process at this moment.public List<ChildShard> getChildShards()
The list of the current shard's child shards, returned in the GetRecords
API's response only when
the end of the current shard is reached.
GetRecords
API's response only
when the end of the current shard is reached.public void setChildShards(Collection<ChildShard> childShards)
The list of the current shard's child shards, returned in the GetRecords
API's response only when
the end of the current shard is reached.
childShards
- The list of the current shard's child shards, returned in the GetRecords
API's response only
when the end of the current shard is reached.public GetRecordsResult withChildShards(ChildShard... childShards)
The list of the current shard's child shards, returned in the GetRecords
API's response only when
the end of the current shard is reached.
NOTE: This method appends the values to the existing list (if any). Use
setChildShards(java.util.Collection)
or withChildShards(java.util.Collection)
if you want to
override the existing values.
childShards
- The list of the current shard's child shards, returned in the GetRecords
API's response only
when the end of the current shard is reached.public GetRecordsResult withChildShards(Collection<ChildShard> childShards)
The list of the current shard's child shards, returned in the GetRecords
API's response only when
the end of the current shard is reached.
childShards
- The list of the current shard's child shards, returned in the GetRecords
API's response only
when the end of the current shard is reached.public String toString()
toString
in class Object
Object.toString()
public GetRecordsResult clone()
Copyright © 2023. All rights reserved.