Class HLSTimestampRange
- java.lang.Object
-
- software.amazon.awssdk.services.kinesisvideoarchivedmedia.model.HLSTimestampRange
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HLSTimestampRange.Builder,HLSTimestampRange>
@Generated("software.amazon.awssdk:codegen") public final class HLSTimestampRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HLSTimestampRange.Builder,HLSTimestampRange>
The start and end of the timestamp range for the requested media.
This value should not be present if
PlaybackTypeisLIVE.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHLSTimestampRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HLSTimestampRange.Builderbuilder()InstantendTimestamp()The end of the timestamp range for the requested media.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 HLSTimestampRange.Builder>serializableBuilderClass()InstantstartTimestamp()The start of the timestamp range for the requested media.HLSTimestampRange.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
-
startTimestamp
public final Instant startTimestamp()
The start of the timestamp range for the requested media.
If the
HLSTimestampRangevalue is specified, theStartTimestampvalue is required.Only fragments that start exactly at or after
StartTimestampare included in the session. Fragments that start beforeStartTimestampand continue past it aren't included in the session. IfFragmentSelectorTypeisSERVER_TIMESTAMP, theStartTimestampmust be later than the stream head.- Returns:
- The start of the timestamp range for the requested media.
If the
HLSTimestampRangevalue is specified, theStartTimestampvalue is required.Only fragments that start exactly at or after
StartTimestampare included in the session. Fragments that start beforeStartTimestampand continue past it aren't included in the session. IfFragmentSelectorTypeisSERVER_TIMESTAMP, theStartTimestampmust be later than the stream head.
-
endTimestamp
public final Instant endTimestamp()
The end of the timestamp range for the requested media. This value must be within 24 hours of the specified
StartTimestamp, and it must be later than theStartTimestampvalue.If
FragmentSelectorTypefor the request isSERVER_TIMESTAMP, this value must be in the past.The
EndTimestampvalue is required forON_DEMANDmode, but optional forLIVE_REPLAYmode. If theEndTimestampis not set forLIVE_REPLAYmode then the session will continue to include newly ingested fragments until the session expires.This value is inclusive. The
EndTimestampis compared to the (starting) timestamp of the fragment. Fragments that start before theEndTimestampvalue and continue past it are included in the session.- Returns:
- The end of the timestamp range for the requested media. This value must be within 24 hours of the
specified
StartTimestamp, and it must be later than theStartTimestampvalue.If
FragmentSelectorTypefor the request isSERVER_TIMESTAMP, this value must be in the past.The
EndTimestampvalue is required forON_DEMANDmode, but optional forLIVE_REPLAYmode. If theEndTimestampis not set forLIVE_REPLAYmode then the session will continue to include newly ingested fragments until the session expires.This value is inclusive. The
EndTimestampis compared to the (starting) timestamp of the fragment. Fragments that start before theEndTimestampvalue and continue past it are included in the session.
-
toBuilder
public HLSTimestampRange.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HLSTimestampRange.Builder,HLSTimestampRange>
-
builder
public static HLSTimestampRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends HLSTimestampRange.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
-
-