public class Playlist extends Object implements Serializable
Use Only for MPEG-TS Outputs. If you specify a preset for which the value of Container is ts (MPEG-TS), Playlists contains information
about the master playlists that you want Elastic Transcoder to create. We recommend that you create only one master playlist. The maximum number of
master playlists in a job is 30.
| Constructor and Description |
|---|
Playlist() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getFormat()
This value must currently be
HLSv3. |
String |
getName()
The name that you want Elastic Transcoder to assign to the master
playlist, for example, nyc-vacation.m3u8.
|
List<String> |
getOutputKeys()
For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object.
|
String |
getStatus()
The status of the job with which the playlist is associated.
|
String |
getStatusDetail()
Information that further explains the status.
|
int |
hashCode() |
void |
setFormat(String format)
This value must currently be
HLSv3. |
void |
setName(String name)
The name that you want Elastic Transcoder to assign to the master
playlist, for example, nyc-vacation.m3u8.
|
void |
setOutputKeys(Collection<String> outputKeys)
For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object.
|
void |
setStatus(String status)
The status of the job with which the playlist is associated.
|
void |
setStatusDetail(String statusDetail)
Information that further explains the status.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Playlist |
withFormat(String format)
This value must currently be
HLSv3. |
Playlist |
withName(String name)
The name that you want Elastic Transcoder to assign to the master
playlist, for example, nyc-vacation.m3u8.
|
Playlist |
withOutputKeys(Collection<String> outputKeys)
For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object.
|
Playlist |
withOutputKeys(String... outputKeys)
For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object.
|
Playlist |
withStatus(String status)
The status of the job with which the playlist is associated.
|
Playlist |
withStatusDetail(String statusDetail)
Information that further explains the status.
|
public String getName()
Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.
Constraints:
Length: 1 - 255
Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.public void setName(String name)
Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.
Constraints:
Length: 1 - 255
name - The name that you want Elastic Transcoder to assign to the master
playlist, for example, nyc-vacation.m3u8. The name cannot include a /
character. If you create more than one master playlist (not
recommended), the values of all Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.public Playlist withName(String name)
Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
name - The name that you want Elastic Transcoder to assign to the master
playlist, for example, nyc-vacation.m3u8. The name cannot include a /
character. If you create more than one master playlist (not
recommended), the values of all Name objects must be
unique. Note: Elastic Transcoder automatically appends .m3u8 to
the file name. If you include .m3u8 in Name, it will
appear twice in the file name.public String getFormat()
HLSv3.
Constraints:
Pattern: (^HLSv3$)
HLSv3.public void setFormat(String format)
HLSv3.
Constraints:
Pattern: (^HLSv3$)
format - This value must currently be HLSv3.public Playlist withFormat(String format)
HLSv3.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^HLSv3$)
format - This value must currently be HLSv3.public List<String> getOutputKeys()
SegmentDuration for all of the outputs must be the same.
Constraints:
Length: 0 - 30
SegmentDuration for all of the outputs must be the same.public void setOutputKeys(Collection<String> outputKeys)
SegmentDuration for all of the outputs must be the same.
Constraints:
Length: 0 - 30
outputKeys - For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object. If you include more
than one output in a playlist, the value of
SegmentDuration for all of the outputs must be the same.public Playlist withOutputKeys(String... outputKeys)
SegmentDuration for all of the outputs must be the same.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 30
outputKeys - For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object. If you include more
than one output in a playlist, the value of
SegmentDuration for all of the outputs must be the same.public Playlist withOutputKeys(Collection<String> outputKeys)
SegmentDuration for all of the outputs must be the same.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 30
outputKeys - For each output in this job that you want to include in a master
playlist, the value of the Outputs:Key object. If you include more
than one output in a playlist, the value of
SegmentDuration for all of the outputs must be the same.public String getStatus()
Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
public void setStatus(String status)
Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
status - The status of the job with which the playlist is associated.public Playlist withStatus(String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: (^Submitted$)|(^Progressing$)|(^Complete$)|(^Canceled$)|(^Error$)
status - The status of the job with which the playlist is associated.public String getStatusDetail()
Constraints:
Length: 0 - 255
public void setStatusDetail(String statusDetail)
Constraints:
Length: 0 - 255
statusDetail - Information that further explains the status.public Playlist withStatusDetail(String statusDetail)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 255
statusDetail - Information that further explains the status.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.