@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Fragment extends Object implements Serializable, Cloneable, StructuredPojo
Represents a segment of video or other time-delimited data.
Constructor and Description |
---|
Fragment() |
Modifier and Type | Method and Description |
---|---|
Fragment |
clone() |
boolean |
equals(Object obj) |
Long |
getFragmentLengthInMilliseconds()
The playback duration or other time value associated with the fragment.
|
String |
getFragmentNumber()
The unique identifier of the fragment.
|
Long |
getFragmentSizeInBytes()
The total fragment size, including information about the fragment and contained media data.
|
Date |
getProducerTimestamp()
The timestamp from the producer corresponding to the fragment.
|
Date |
getServerTimestamp()
The timestamp from the AWS server corresponding to the fragment.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFragmentLengthInMilliseconds(Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
|
void |
setFragmentNumber(String fragmentNumber)
The unique identifier of the fragment.
|
void |
setFragmentSizeInBytes(Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and contained media data.
|
void |
setProducerTimestamp(Date producerTimestamp)
The timestamp from the producer corresponding to the fragment.
|
void |
setServerTimestamp(Date serverTimestamp)
The timestamp from the AWS server corresponding to the fragment.
|
String |
toString()
Returns a string representation of this object.
|
Fragment |
withFragmentLengthInMilliseconds(Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
|
Fragment |
withFragmentNumber(String fragmentNumber)
The unique identifier of the fragment.
|
Fragment |
withFragmentSizeInBytes(Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and contained media data.
|
Fragment |
withProducerTimestamp(Date producerTimestamp)
The timestamp from the producer corresponding to the fragment.
|
Fragment |
withServerTimestamp(Date serverTimestamp)
The timestamp from the AWS server corresponding to the fragment.
|
public void setFragmentNumber(String fragmentNumber)
The unique identifier of the fragment. This value monotonically increases based on the ingestion order.
fragmentNumber
- The unique identifier of the fragment. This value monotonically increases based on the ingestion order.public String getFragmentNumber()
The unique identifier of the fragment. This value monotonically increases based on the ingestion order.
public Fragment withFragmentNumber(String fragmentNumber)
The unique identifier of the fragment. This value monotonically increases based on the ingestion order.
fragmentNumber
- The unique identifier of the fragment. This value monotonically increases based on the ingestion order.public void setFragmentSizeInBytes(Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and contained media data.
fragmentSizeInBytes
- The total fragment size, including information about the fragment and contained media data.public Long getFragmentSizeInBytes()
The total fragment size, including information about the fragment and contained media data.
public Fragment withFragmentSizeInBytes(Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and contained media data.
fragmentSizeInBytes
- The total fragment size, including information about the fragment and contained media data.public void setProducerTimestamp(Date producerTimestamp)
The timestamp from the producer corresponding to the fragment.
producerTimestamp
- The timestamp from the producer corresponding to the fragment.public Date getProducerTimestamp()
The timestamp from the producer corresponding to the fragment.
public Fragment withProducerTimestamp(Date producerTimestamp)
The timestamp from the producer corresponding to the fragment.
producerTimestamp
- The timestamp from the producer corresponding to the fragment.public void setServerTimestamp(Date serverTimestamp)
The timestamp from the AWS server corresponding to the fragment.
serverTimestamp
- The timestamp from the AWS server corresponding to the fragment.public Date getServerTimestamp()
The timestamp from the AWS server corresponding to the fragment.
public Fragment withServerTimestamp(Date serverTimestamp)
The timestamp from the AWS server corresponding to the fragment.
serverTimestamp
- The timestamp from the AWS server corresponding to the fragment.public void setFragmentLengthInMilliseconds(Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
fragmentLengthInMilliseconds
- The playback duration or other time value associated with the fragment.public Long getFragmentLengthInMilliseconds()
The playback duration or other time value associated with the fragment.
public Fragment withFragmentLengthInMilliseconds(Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
fragmentLengthInMilliseconds
- The playback duration or other time value associated with the fragment.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.