public class Fragment
extends java.lang.Object
implements java.io.Serializable
Represents a segment of video or other time-delimited data.
Constructor and Description |
---|
Fragment() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getFragmentLengthInMilliseconds()
The playback duration or other time value associated with the fragment.
|
java.lang.String |
getFragmentNumber()
The index value of the fragment.
|
java.lang.Long |
getFragmentSizeInBytes()
The total fragment size, including information about the fragment and
contained media data.
|
java.util.Date |
getProducerTimestamp()
The time stamp from the producer corresponding to the fragment.
|
java.util.Date |
getServerTimestamp()
The time stamp from the AWS server corresponding to the fragment.
|
int |
hashCode() |
void |
setFragmentLengthInMilliseconds(java.lang.Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
|
void |
setFragmentNumber(java.lang.String fragmentNumber)
The index value of the fragment.
|
void |
setFragmentSizeInBytes(java.lang.Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and
contained media data.
|
void |
setProducerTimestamp(java.util.Date producerTimestamp)
The time stamp from the producer corresponding to the fragment.
|
void |
setServerTimestamp(java.util.Date serverTimestamp)
The time stamp from the AWS server corresponding to the fragment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Fragment |
withFragmentLengthInMilliseconds(java.lang.Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
|
Fragment |
withFragmentNumber(java.lang.String fragmentNumber)
The index value of the fragment.
|
Fragment |
withFragmentSizeInBytes(java.lang.Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and
contained media data.
|
Fragment |
withProducerTimestamp(java.util.Date producerTimestamp)
The time stamp from the producer corresponding to the fragment.
|
Fragment |
withServerTimestamp(java.util.Date serverTimestamp)
The time stamp from the AWS server corresponding to the fragment.
|
public java.lang.String getFragmentNumber()
The index value of the fragment.
Constraints:
Length: 1 -
The index value of the fragment.
public void setFragmentNumber(java.lang.String fragmentNumber)
The index value of the fragment.
Constraints:
Length: 1 -
fragmentNumber
- The index value of the fragment.
public Fragment withFragmentNumber(java.lang.String fragmentNumber)
The index value of the fragment.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 -
fragmentNumber
- The index value of the fragment.
public java.lang.Long getFragmentSizeInBytes()
The total fragment size, including information about the fragment and contained media data.
The total fragment size, including information about the fragment and contained media data.
public void setFragmentSizeInBytes(java.lang.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 Fragment withFragmentSizeInBytes(java.lang.Long fragmentSizeInBytes)
The total fragment size, including information about the fragment and contained media data.
Returns a reference to this object so that method calls can be chained together.
fragmentSizeInBytes
- The total fragment size, including information about the fragment and contained media data.
public java.util.Date getProducerTimestamp()
The time stamp from the producer corresponding to the fragment.
The time stamp from the producer corresponding to the fragment.
public void setProducerTimestamp(java.util.Date producerTimestamp)
The time stamp from the producer corresponding to the fragment.
producerTimestamp
- The time stamp from the producer corresponding to the fragment.
public Fragment withProducerTimestamp(java.util.Date producerTimestamp)
The time stamp from the producer corresponding to the fragment.
Returns a reference to this object so that method calls can be chained together.
producerTimestamp
- The time stamp from the producer corresponding to the fragment.
public java.util.Date getServerTimestamp()
The time stamp from the AWS server corresponding to the fragment.
The time stamp from the AWS server corresponding to the fragment.
public void setServerTimestamp(java.util.Date serverTimestamp)
The time stamp from the AWS server corresponding to the fragment.
serverTimestamp
- The time stamp from the AWS server corresponding to the fragment.
public Fragment withServerTimestamp(java.util.Date serverTimestamp)
The time stamp from the AWS server corresponding to the fragment.
Returns a reference to this object so that method calls can be chained together.
serverTimestamp
- The time stamp from the AWS server corresponding to the fragment.
public java.lang.Long getFragmentLengthInMilliseconds()
The playback duration or other time value associated with the fragment.
The playback duration or other time value associated with the fragment.
public void setFragmentLengthInMilliseconds(java.lang.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 Fragment withFragmentLengthInMilliseconds(java.lang.Long fragmentLengthInMilliseconds)
The playback duration or other time value associated with the fragment.
Returns a reference to this object so that method calls can be chained together.
fragmentLengthInMilliseconds
- The playback duration or other time value associated with the fragment.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.