public ModelPackage withAdditionalInferenceSpecifications(AdditionalInferenceSpecificationDefinition... additionalInferenceSpecifications) {
        if (this.additionalInferenceSpecifications == null) {
            setAdditionalInferenceSpecifications(new java.util.ArrayList<AdditionalInferenceSpecificationDefinition>(additionalInferenceSpecifications.length));
        }
        for (AdditionalInferenceSpecificationDefinition ele : additionalInferenceSpecifications) {
            this.additionalInferenceSpecifications.add(ele);
        }
        return this;
    }
<p>
An array of additional Inference Specification objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdditionalInferenceSpecifications(java.util.Collection)} or
{@link #withAdditionalInferenceSpecifications(java.util.Collection)} if you want to override the existing values.
</p>

@param additionalInferenceSpecifications
       An array of additional Inference Specification objects.
@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/ModelPackage.java