public Job withPlaylists(Playlist... playlists) {
        if (this.playlists == null) {
            setPlaylists(new com.amazonaws.internal.SdkInternalList<Playlist>(playlists.length));
        }
        for (Playlist ele : playlists) {
            this.playlists.add(ele);
        }
        return this;
    }
public Job withPlaylists ( Playlist ... playlists ) { if ( this . playlists == null ) { setPlaylists ( new com . amazonaws . internal . SdkInternalList < Playlist > ( playlists . length ) ) ; } for ( Playlist ele : playlists ) { this . playlists . add ( ele ) ; } return this ; }
<important>
<p>
Outputs in Fragmented MP4 or MPEG-TS format only.
</p>
</important>
<p>
If you specify a preset in <code>PresetId</code> for which the value of <code>Container</code> is fmp4
(Fragmented MP4) or ts (MPEG-TS), <code>Playlists</code> contains information about the master playlists that you
want Elastic Transcoder to create.
</p>
<p>
The maximum number of master playlists in a job is 30.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPlaylists(java.util.Collection)} or {@link #withPlaylists(java.util.Collection)} if you want to
override the existing values.
</p>

@param playlists
<p>
Outputs in Fragmented MP4 or MPEG-TS format only.
</p>
</important>
<p>
If you specify a preset in <code>PresetId</code> for which the value of <code>Container</code> is fmp4
(Fragmented MP4) or ts (MPEG-TS), <code>Playlists</code> contains information about the master playlists
that you want Elastic Transcoder to create.
</p>
<p>
The maximum number of master playlists in a job is 30.
@return Returns a reference to this object so that method calls can be chained together.