com.amazonaws.services.kinesis.model
Class GetRecordsResult

java.lang.Object
  extended by com.amazonaws.services.kinesis.model.GetRecordsResult
All Implemented Interfaces:
Serializable

public class GetRecordsResult
extends Object
implements Serializable

Represents the output of a GetRecords operation.

See Also:
Serialized Form

Constructor Summary
GetRecordsResult()
           
 
Method Summary
 boolean equals(Object obj)
           
 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 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; useful for testing and debugging.
 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.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GetRecordsResult

public GetRecordsResult()
Method Detail

getRecords

public List<Record> getRecords()

The data records retrieved from the shard.

Returns:

The data records retrieved from the shard.


setRecords

public void setRecords(Collection<Record> records)

The data records retrieved from the shard.

Parameters:
records -

The data records retrieved from the shard.


withRecords

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.

Parameters:
records -

The data records retrieved from the shard.

Returns:
A reference to this updated object so that method calls can be chained together.

withRecords

public GetRecordsResult withRecords(Collection<Record> records)

The data records retrieved from the shard.

Returns a reference to this object so that method calls can be chained together.

Parameters:
records -

The data records retrieved from the shard.

Returns:
A reference to this updated object so that method calls can be chained together.

getNextShardIterator

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 will not return any more data.

Constraints:
Length: 1 - 512

Returns:
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.

setNextShardIterator

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 will not return any more data.

Constraints:
Length: 1 - 512

Parameters:
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.

withNextShardIterator

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 will not return any more data.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 512

Parameters:
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.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.