Class StartSelector
- java.lang.Object
-
- software.amazon.awssdk.services.kinesisvideomedia.model.StartSelector
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StartSelector.Builder,StartSelector>
@Generated("software.amazon.awssdk:codegen") public final class StartSelector extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StartSelector.Builder,StartSelector>
Identifies the chunk on the Kinesis video stream where you want the
GetMediaAPI 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 previousGetMediarequest terminated, you can use this tag value in your nextGetMediarequest. The API then starts returning chunks starting where the last API ended.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStartSelector.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringafterFragmentNumber()Specifies the fragment number from where you want theGetMediaAPI to start returning the fragments.static StartSelector.Builderbuilder()StringcontinuationToken()Continuation token that Kinesis Video Streams returned in the previousGetMediaresponse.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StartSelector.Builder>serializableBuilderClass()StartSelectorTypestartSelectorType()Identifies the fragment on the Kinesis video stream where you want to start getting the data from.StringstartSelectorTypeAsString()Identifies the fragment on the Kinesis video stream where you want to start getting the data from.InstantstartTimestamp()A timestamp value.StartSelector.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
startSelectorType
public final StartSelectorType 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
AfterFragmentNumberparameter. -
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,
startSelectorTypewill 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
AfterFragmentNumberparameter. -
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:
StartSelectorType
-
-
startSelectorTypeAsString
public final String 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
AfterFragmentNumberparameter. -
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,
startSelectorTypewill 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
AfterFragmentNumberparameter. -
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:
StartSelectorType
-
-
afterFragmentNumber
public final String afterFragmentNumber()
Specifies the fragment number from where you want the
GetMediaAPI to start returning the fragments.- Returns:
- Specifies the fragment number from where you want the
GetMediaAPI to start returning the fragments.
-
startTimestamp
public final Instant startTimestamp()
A timestamp value. This value is required if you choose the PRODUCER_TIMESTAMP or the SERVER_TIMESTAMP as the
startSelectorType. TheGetMediaAPI 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. TheGetMediaAPI then starts with the chunk containing the fragment that has the specified timestamp.
-
continuationToken
public final String continuationToken()
Continuation token that Kinesis Video Streams returned in the previous
GetMediaresponse. TheGetMediaAPI then starts with the chunk identified by the continuation token.- Returns:
- Continuation token that Kinesis Video Streams returned in the previous
GetMediaresponse. TheGetMediaAPI then starts with the chunk identified by the continuation token.
-
toBuilder
public StartSelector.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StartSelector.Builder,StartSelector>
-
builder
public static StartSelector.Builder builder()
-
serializableBuilderClass
public static Class<? extends StartSelector.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-