@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetRecordsRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for GetRecords.
NOOP| Constructor and Description |
|---|
GetRecordsRequest() |
| Modifier and Type | Method and Description |
|---|---|
GetRecordsRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Integer |
getLimit()
The maximum number of records to return.
|
String |
getShardIterator()
The position in the shard from which you want to start sequentially reading data records.
|
String |
getStreamARN()
The ARN of the stream.
|
int |
hashCode() |
void |
setLimit(Integer limit)
The maximum number of records to return.
|
void |
setShardIterator(String shardIterator)
The position in the shard from which you want to start sequentially reading data records.
|
void |
setStreamARN(String streamARN)
The ARN of the stream.
|
String |
toString()
Returns a string representation of this object.
|
GetRecordsRequest |
withLimit(Integer limit)
The maximum number of records to return.
|
GetRecordsRequest |
withShardIterator(String shardIterator)
The position in the shard from which you want to start sequentially reading data records.
|
GetRecordsRequest |
withStreamARN(String streamARN)
The ARN of the stream.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setShardIterator(String shardIterator)
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
shardIterator - The position in the shard from which you want to start sequentially reading data records. A shard iterator
specifies this position using the sequence number of a data record in the shard.public String getShardIterator()
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
public GetRecordsRequest withShardIterator(String shardIterator)
The position in the shard from which you want to start sequentially reading data records. A shard iterator specifies this position using the sequence number of a data record in the shard.
shardIterator - The position in the shard from which you want to start sequentially reading data records. A shard iterator
specifies this position using the sequence number of a data record in the shard.public void setLimit(Integer limit)
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater
than 10,000, GetRecords throws InvalidArgumentException. The default value is 10,000.
limit - The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is
greater than 10,000, GetRecords throws InvalidArgumentException. The default value is
10,000.public Integer getLimit()
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater
than 10,000, GetRecords throws InvalidArgumentException. The default value is 10,000.
InvalidArgumentException. The default value is
10,000.public GetRecordsRequest withLimit(Integer limit)
The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is greater
than 10,000, GetRecords throws InvalidArgumentException. The default value is 10,000.
limit - The maximum number of records to return. Specify a value of up to 10,000. If you specify a value that is
greater than 10,000, GetRecords throws InvalidArgumentException. The default value is
10,000.public void setStreamARN(String streamARN)
The ARN of the stream.
streamARN - The ARN of the stream.public String getStreamARN()
The ARN of the stream.
public GetRecordsRequest withStreamARN(String streamARN)
The ARN of the stream.
streamARN - The ARN of the stream.public String toString()
toString in class ObjectObject.toString()public GetRecordsRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()