public TransportMediaInfo withPrograms(TransportStreamProgram... programs) {
        if (this.programs == null) {
            setPrograms(new java.util.ArrayList<TransportStreamProgram>(programs.length));
        }
        for (TransportStreamProgram ele : programs) {
            this.programs.add(ele);
        }
        return this;
    }
The list of transport stream programs in the current flow's source.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setPrograms(java.util.Collection)} or {@link #withPrograms(java.util.Collection)} if you want to override
the existing values.
</p>

@param programs
       The list of transport stream programs in the current flow's source.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/TransportMediaInfo.java