public class TimeSpan
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Settings that determine when a clip begins and how long it lasts.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
duration
The duration of the clip.
|
private java.lang.String |
startTime
The place in the input file where you want a clip to start.
|
Constructor and Description |
---|
TimeSpan() |
Modifier and Type | Method and Description |
---|---|
TimeSpan |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDuration()
The duration of the clip.
|
java.lang.String |
getStartTime()
The place in the input file where you want a clip to start.
|
int |
hashCode() |
void |
setDuration(java.lang.String duration)
The duration of the clip.
|
void |
setStartTime(java.lang.String startTime)
The place in the input file where you want a clip to start.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
TimeSpan |
withDuration(java.lang.String duration)
The duration of the clip.
|
TimeSpan |
withStartTime(java.lang.String startTime)
The place in the input file where you want a clip to start.
|
private java.lang.String startTime
The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
private java.lang.String duration
The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
public void setStartTime(java.lang.String startTime)
The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
startTime
- The place in the input file where you want a clip to start. The
format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999;
SSS is thousandths of a second) or sssss.SSS (maximum value:
86399.999). If you don't specify a value, Elastic Transcoder
starts at the beginning of the input file.public java.lang.String getStartTime()
The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
public TimeSpan withStartTime(java.lang.String startTime)
The place in the input file where you want a clip to start. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder starts at the beginning of the input file.
startTime
- The place in the input file where you want a clip to start. The
format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999;
SSS is thousandths of a second) or sssss.SSS (maximum value:
86399.999). If you don't specify a value, Elastic Transcoder
starts at the beginning of the input file.public void setDuration(java.lang.String duration)
The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
duration
- The duration of the clip. The format can be either HH:mm:ss.SSS
(maximum value: 23:59:59.999; SSS is thousandths of a second) or
sssss.SSS (maximum value: 86399.999). If you don't specify a
value, Elastic Transcoder creates an output file from StartTime to
the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
public java.lang.String getDuration()
The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
public TimeSpan withDuration(java.lang.String duration)
The duration of the clip. The format can be either HH:mm:ss.SSS (maximum value: 23:59:59.999; SSS is thousandths of a second) or sssss.SSS (maximum value: 86399.999). If you don't specify a value, Elastic Transcoder creates an output file from StartTime to the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
duration
- The duration of the clip. The format can be either HH:mm:ss.SSS
(maximum value: 23:59:59.999; SSS is thousandths of a second) or
sssss.SSS (maximum value: 86399.999). If you don't specify a
value, Elastic Transcoder creates an output file from StartTime to
the end of the file.
If you specify a value longer than the duration of the input file, Elastic Transcoder transcodes the file and returns a warning message.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public TimeSpan clone()
clone
in class java.lang.Object