@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class FragmentSelector extends Object implements Serializable, Cloneable, StructuredPojo
Describes the timestamp range and timestamp origin of a range of fragments.
Only fragments with a start timestamp greater than or equal to the given start time and less than or equal to the end time are returned. For example, say a stream contains fragments with the following start timestamps:
00:00:00
00:00:02
00:00:04
00:00:06
A fragment selector range with a start time of 00:00:01 and end time of 00:00:04 would return the fragments with start times of 00:00:02 and 00:00:04.
Constructor and Description |
---|
FragmentSelector() |
Modifier and Type | Method and Description |
---|---|
FragmentSelector |
clone() |
boolean |
equals(Object obj) |
String |
getFragmentSelectorType()
The origin of the timestamps to use,
Server or Producer . |
TimestampRange |
getTimestampRange()
The range of timestamps to return.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFragmentSelectorType(String fragmentSelectorType)
The origin of the timestamps to use,
Server or Producer . |
void |
setTimestampRange(TimestampRange timestampRange)
The range of timestamps to return.
|
String |
toString()
Returns a string representation of this object.
|
FragmentSelector |
withFragmentSelectorType(FragmentSelectorType fragmentSelectorType)
The origin of the timestamps to use,
Server or Producer . |
FragmentSelector |
withFragmentSelectorType(String fragmentSelectorType)
The origin of the timestamps to use,
Server or Producer . |
FragmentSelector |
withTimestampRange(TimestampRange timestampRange)
The range of timestamps to return.
|
public void setFragmentSelectorType(String fragmentSelectorType)
The origin of the timestamps to use, Server
or Producer
. For more information, see StartSelectorType
in the Amazon Kinesis Video Streams Developer Guide.
fragmentSelectorType
- The origin of the timestamps to use, Server
or Producer
. For more information,
see
StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.FragmentSelectorType
public String getFragmentSelectorType()
The origin of the timestamps to use, Server
or Producer
. For more information, see StartSelectorType
in the Amazon Kinesis Video Streams Developer Guide.
Server
or Producer
. For more information,
see
StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.FragmentSelectorType
public FragmentSelector withFragmentSelectorType(String fragmentSelectorType)
The origin of the timestamps to use, Server
or Producer
. For more information, see StartSelectorType
in the Amazon Kinesis Video Streams Developer Guide.
fragmentSelectorType
- The origin of the timestamps to use, Server
or Producer
. For more information,
see
StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.FragmentSelectorType
public FragmentSelector withFragmentSelectorType(FragmentSelectorType fragmentSelectorType)
The origin of the timestamps to use, Server
or Producer
. For more information, see StartSelectorType
in the Amazon Kinesis Video Streams Developer Guide.
fragmentSelectorType
- The origin of the timestamps to use, Server
or Producer
. For more information,
see
StartSelectorType in the Amazon Kinesis Video Streams Developer Guide.FragmentSelectorType
public void setTimestampRange(TimestampRange timestampRange)
The range of timestamps to return.
timestampRange
- The range of timestamps to return.public TimestampRange getTimestampRange()
The range of timestamps to return.
public FragmentSelector withTimestampRange(TimestampRange timestampRange)
The range of timestamps to return.
timestampRange
- The range of timestamps to return.public String toString()
toString
in class Object
Object.toString()
public FragmentSelector clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.