Class StartSelector
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<StartSelector.Builder,
StartSelector>
Identifies the chunk on the Kinesis video stream where you want the GetMedia
API to start returning
media data. You have the following options to identify the starting chunk:
-
Choose the latest (or oldest) chunk.
-
Identify a specific chunk. You can identify a specific chunk either by providing a fragment number or timestamp (server or producer).
-
Each chunk's metadata includes a continuation token as a Matroska (MKV) tag (
AWS_KINESISVIDEO_CONTINUATION_TOKEN
). If your previousGetMedia
request terminated, you can use this tag value in your nextGetMedia
request. The API then starts returning chunks starting where the last API ended.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal String
Specifies the fragment number from where you want theGetMedia
API to start returning the fragments.static StartSelector.Builder
builder()
final String
Continuation token that Kinesis Video Streams returned in the previousGetMedia
response.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
static Class
<? extends StartSelector.Builder> final StartSelectorType
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.final String
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.final Instant
A timestamp value.Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
startSelectorType
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENT_NUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCER_TIMESTAMP or SERVER_TIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATION_TOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the
startSelectorType
, you don't provide any additional information in thestartSelector
.If the service returns an enum value that is not available in the current SDK version,
startSelectorType
will returnStartSelectorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstartSelectorTypeAsString()
.- Returns:
- Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENT_NUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCER_TIMESTAMP or SERVER_TIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATION_TOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the
startSelectorType
, you don't provide any additional information in thestartSelector
. -
- See Also:
-
-
startSelectorTypeAsString
Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENT_NUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCER_TIMESTAMP or SERVER_TIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATION_TOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the
startSelectorType
, you don't provide any additional information in thestartSelector
.If the service returns an enum value that is not available in the current SDK version,
startSelectorType
will returnStartSelectorType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromstartSelectorTypeAsString()
.- Returns:
- Identifies the fragment on the Kinesis video stream where you want to start getting the data from.
-
NOW - Start with the latest chunk on the stream.
-
EARLIEST - Start with earliest available chunk on the stream.
-
FRAGMENT_NUMBER - Start with the chunk after a specific fragment. You must also specify the
AfterFragmentNumber
parameter. -
PRODUCER_TIMESTAMP or SERVER_TIMESTAMP - Start with the chunk containing a fragment with the specified producer or server timestamp. You specify the timestamp by adding
StartTimestamp
. -
CONTINUATION_TOKEN - Read using the specified continuation token.
If you choose the NOW, EARLIEST, or CONTINUATION_TOKEN as the
startSelectorType
, you don't provide any additional information in thestartSelector
. -
- See Also:
-
-
afterFragmentNumber
Specifies the fragment number from where you want the
GetMedia
API to start returning the fragments.- Returns:
- Specifies the fragment number from where you want the
GetMedia
API to start returning the fragments.
-
startTimestamp
A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as the
startSelectorType
. TheGetMedia
API then starts with the chunk containing the fragment that has the specified timestamp.- Returns:
- A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as
the
startSelectorType
. TheGetMedia
API then starts with the chunk containing the fragment that has the specified timestamp.
-
continuationToken
Continuation token that Kinesis Video Streams returned in the previous
GetMedia
response. TheGetMedia
API then starts with the chunk identified by the continuation token.- Returns:
- Continuation token that Kinesis Video Streams returned in the previous
GetMedia
response. TheGetMedia
API then starts with the chunk identified by the continuation token.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<StartSelector.Builder,
StartSelector> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-