public class GetRecordsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Represents the input of a GetRecords operation.
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
limit
The maximum number of records to return from the shard.
|
private java.lang.String |
shardIterator
A shard iterator that was retrieved from a previous GetShardIterator
operation.
|
NOOP
Constructor and Description |
---|
GetRecordsRequest() |
Modifier and Type | Method and Description |
---|---|
GetRecordsRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Integer |
getLimit()
The maximum number of records to return from the shard.
|
java.lang.String |
getShardIterator()
A shard iterator that was retrieved from a previous GetShardIterator
operation.
|
int |
hashCode() |
void |
setLimit(java.lang.Integer limit)
The maximum number of records to return from the shard.
|
void |
setShardIterator(java.lang.String shardIterator)
A shard iterator that was retrieved from a previous GetShardIterator
operation.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetRecordsRequest |
withLimit(java.lang.Integer limit)
The maximum number of records to return from the shard.
|
GetRecordsRequest |
withShardIterator(java.lang.String shardIterator)
A shard iterator that was retrieved from a previous GetShardIterator
operation.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String shardIterator
A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.
private java.lang.Integer limit
The maximum number of records to return from the shard. The upper limit is 1000.
public void setShardIterator(java.lang.String shardIterator)
A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.
shardIterator
- A shard iterator that was retrieved from a previous
GetShardIterator operation. This iterator can be used to access
the stream records in this shard.public java.lang.String getShardIterator()
A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.
public GetRecordsRequest withShardIterator(java.lang.String shardIterator)
A shard iterator that was retrieved from a previous GetShardIterator operation. This iterator can be used to access the stream records in this shard.
shardIterator
- A shard iterator that was retrieved from a previous
GetShardIterator operation. This iterator can be used to access
the stream records in this shard.public void setLimit(java.lang.Integer limit)
The maximum number of records to return from the shard. The upper limit is 1000.
limit
- The maximum number of records to return from the shard. The upper
limit is 1000.public java.lang.Integer getLimit()
The maximum number of records to return from the shard. The upper limit is 1000.
public GetRecordsRequest withLimit(java.lang.Integer limit)
The maximum number of records to return from the shard. The upper limit is 1000.
limit
- The maximum number of records to return from the shard. The upper
limit is 1000.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetRecordsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()