/**
  * If you specify a preset in <code>PresetId</code> for which the value of <code>Container</code>
  * is ts (MPEG-TS), Playlists contains information about the master playlists that you want
  * Elastic Transcoder to create.
  *
  * <p>We recommend that you create only one master playlist. The maximum number of master
  * playlists in a job is 30.
  *
  * <p>Returns a reference to this object so that method calls can be chained together.
  *
  * <p><b>Constraints:</b><br>
  * <b>Length: </b>0 - 30<br>
  *
  * @param playlists If you specify a preset in <code>PresetId</code> for which the value of <code>
  *     Container</code> is ts (MPEG-TS), Playlists contains information about the master playlists
  *     that you want Elastic Transcoder to create.
  *     <p>We recommend that you create only one master playlist. The maximum number of master
  *     playlists in a job is 30.
  * @return A reference to this updated object so that method calls can be chained together.
  */
 public CreateJobRequest withPlaylists(CreateJobPlaylist... playlists) {
   if (getPlaylists() == null)
     setPlaylists(new java.util.ArrayList<CreateJobPlaylist>(playlists.length));
   for (CreateJobPlaylist value : playlists) {
     getPlaylists().add(value);
   }
   return this;
 }