public OutputDestination withMediaPackageSettings(MediaPackageOutputDestinationSettings... mediaPackageSettings) {
        if (this.mediaPackageSettings == null) {
            setMediaPackageSettings(new java.util.ArrayList<MediaPackageOutputDestinationSettings>(mediaPackageSettings.length));
        }
        for (MediaPackageOutputDestinationSettings ele : mediaPackageSettings) {
            this.mediaPackageSettings.add(ele);
        }
        return this;
    }
Destination settings for a MediaPackage output; one destination for both encoders.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMediaPackageSettings(java.util.Collection)} or {@link #withMediaPackageSettings(java.util.Collection)}
if you want to override the existing values.
</p>

@param mediaPackageSettings
       Destination settings for a MediaPackage output; one destination for both encoders.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-medialive/src/main/java/com/amazonaws/services/medialive/model/OutputDestination.java