public BatchDescribeModelPackageRequest withModelPackageArnList(String... modelPackageArnList) {
        if (this.modelPackageArnList == null) {
            setModelPackageArnList(new java.util.ArrayList<String>(modelPackageArnList.length));
        }
        for (String ele : modelPackageArnList) {
            this.modelPackageArnList.add(ele);
        }
        return this;
    }
<p>
The list of Amazon Resource Name (ARN) of the model package groups.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModelPackageArnList(java.util.Collection)} or {@link #withModelPackageArnList(java.util.Collection)}
if you want to override the existing values.
</p>

@param modelPackageArnList
       The list of Amazon Resource Name (ARN) of the model package groups.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/BatchDescribeModelPackageRequest.java