@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetShardIteratorRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Represents the input for GetShardIterator
.
NOOP
Constructor and Description |
---|
GetShardIteratorRequest() |
Modifier and Type | Method and Description |
---|---|
GetShardIteratorRequest |
clone() |
boolean |
equals(Object obj) |
String |
getShardId()
The shard ID of the Kinesis Data Streams shard to get the iterator for.
|
String |
getShardIteratorType()
Determines how the shard iterator is used to start reading data records from the shard.
|
String |
getStartingSequenceNumber()
The sequence number of the data record in the shard from which to start reading.
|
String |
getStreamARN()
The ARN of the stream.
|
String |
getStreamName()
The name of the Amazon Kinesis data stream.
|
Date |
getTimestamp()
The time stamp of the data record from which to start reading.
|
int |
hashCode() |
void |
setShardId(String shardId)
The shard ID of the Kinesis Data Streams shard to get the iterator for.
|
void |
setShardIteratorType(ShardIteratorType shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
|
void |
setShardIteratorType(String shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
|
void |
setStartingSequenceNumber(String startingSequenceNumber)
The sequence number of the data record in the shard from which to start reading.
|
void |
setStreamARN(String streamARN)
The ARN of the stream.
|
void |
setStreamName(String streamName)
The name of the Amazon Kinesis data stream.
|
void |
setTimestamp(Date timestamp)
The time stamp of the data record from which to start reading.
|
String |
toString()
Returns a string representation of this object.
|
GetShardIteratorRequest |
withShardId(String shardId)
The shard ID of the Kinesis Data Streams shard to get the iterator for.
|
GetShardIteratorRequest |
withShardIteratorType(ShardIteratorType shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
|
GetShardIteratorRequest |
withShardIteratorType(String shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
|
GetShardIteratorRequest |
withStartingSequenceNumber(String startingSequenceNumber)
The sequence number of the data record in the shard from which to start reading.
|
GetShardIteratorRequest |
withStreamARN(String streamARN)
The ARN of the stream.
|
GetShardIteratorRequest |
withStreamName(String streamName)
The name of the Amazon Kinesis data stream.
|
GetShardIteratorRequest |
withTimestamp(Date timestamp)
The time stamp of the data record from which to start reading.
|
addHandlerContext, copyBaseTo, 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, withSdkRequestTimeout
public void setStreamName(String streamName)
The name of the Amazon Kinesis data stream.
streamName
- The name of the Amazon Kinesis data stream.public String getStreamName()
The name of the Amazon Kinesis data stream.
public GetShardIteratorRequest withStreamName(String streamName)
The name of the Amazon Kinesis data stream.
streamName
- The name of the Amazon Kinesis data stream.public void setShardId(String shardId)
The shard ID of the Kinesis Data Streams shard to get the iterator for.
shardId
- The shard ID of the Kinesis Data Streams shard to get the iterator for.public String getShardId()
The shard ID of the Kinesis Data Streams shard to get the iterator for.
public GetShardIteratorRequest withShardId(String shardId)
The shard ID of the Kinesis Data Streams shard to get the iterator for.
shardId
- The shard ID of the Kinesis Data Streams shard to get the iterator for.public void setShardIteratorType(String shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value
StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
shardIteratorType
- Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number,
provided in the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
ShardIteratorType
public String getShardIteratorType()
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value
StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number,
provided in the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
ShardIteratorType
public GetShardIteratorRequest withShardIteratorType(String shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value
StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
shardIteratorType
- Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number,
provided in the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
ShardIteratorType
public void setShardIteratorType(ShardIteratorType shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value
StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
shardIteratorType
- Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number,
provided in the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
ShardIteratorType
public GetShardIteratorRequest withShardIteratorType(ShardIteratorType shardIteratorType)
Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in the value
StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
shardIteratorType
- Determines how the shard iterator is used to start reading data records from the shard.
The following are the valid Amazon Kinesis shard iterator types:
AT_SEQUENCE_NUMBER - Start reading from the position denoted by a specific sequence number, provided in
the value StartingSequenceNumber
.
AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number,
provided in the value StartingSequenceNumber
.
AT_TIMESTAMP - Start reading from the position denoted by a specific time stamp, provided in the value
Timestamp
.
TRIM_HORIZON - Start reading at the last untrimmed record in the shard in the system, which is the oldest data record in the shard.
LATEST - Start reading just after the most recent record in the shard, so that you always read the most recent data in the shard.
ShardIteratorType
public void setStartingSequenceNumber(String startingSequenceNumber)
The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
startingSequenceNumber
- The sequence number of the data record in the shard from which to start reading. Used with shard iterator
type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.public String getStartingSequenceNumber()
The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
public GetShardIteratorRequest withStartingSequenceNumber(String startingSequenceNumber)
The sequence number of the data record in the shard from which to start reading. Used with shard iterator type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.
startingSequenceNumber
- The sequence number of the data record in the shard from which to start reading. Used with shard iterator
type AT_SEQUENCE_NUMBER and AFTER_SEQUENCE_NUMBER.public void setTimestamp(Date timestamp)
The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time
stamp is the Unix epoch date with precision in milliseconds. For example,
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp
does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current
trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
timestamp
- The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP.
A time stamp is the Unix epoch date with precision in milliseconds. For example,
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact
time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is
older than the current trim horizon, the iterator returned is for the oldest untrimmed data record
(TRIM_HORIZON).public Date getTimestamp()
The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time
stamp is the Unix epoch date with precision in milliseconds. For example,
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp
does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current
trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact
time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is
older than the current trim horizon, the iterator returned is for the oldest untrimmed data record
(TRIM_HORIZON).public GetShardIteratorRequest withTimestamp(Date timestamp)
The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP. A time
stamp is the Unix epoch date with precision in milliseconds. For example,
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact time stamp
does not exist, the iterator returned is for the next (later) record. If the time stamp is older than the current
trim horizon, the iterator returned is for the oldest untrimmed data record (TRIM_HORIZON).
timestamp
- The time stamp of the data record from which to start reading. Used with shard iterator type AT_TIMESTAMP.
A time stamp is the Unix epoch date with precision in milliseconds. For example,
2016-04-04T19:58:46.480-00:00
or 1459799926.480
. If a record with this exact
time stamp does not exist, the iterator returned is for the next (later) record. If the time stamp is
older than the current trim horizon, the iterator returned is for the oldest untrimmed data record
(TRIM_HORIZON).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 GetShardIteratorRequest withStreamARN(String streamARN)
The ARN of the stream.
streamARN
- The ARN of the stream.public String toString()
toString
in class Object
Object.toString()
public GetShardIteratorRequest clone()
clone
in class AmazonWebServiceRequest
Copyright © 2024. All rights reserved.