public UpdateModelPackageRequest withAdditionalInferenceSpecificationsToAdd(
            AdditionalInferenceSpecificationDefinition... additionalInferenceSpecificationsToAdd) {
        if (this.additionalInferenceSpecificationsToAdd == null) {
            setAdditionalInferenceSpecificationsToAdd(new java.util.ArrayList<AdditionalInferenceSpecificationDefinition>(
                    additionalInferenceSpecificationsToAdd.length));
        }
        for (AdditionalInferenceSpecificationDefinition ele : additionalInferenceSpecificationsToAdd) {
            this.additionalInferenceSpecificationsToAdd.add(ele);
        }
        return this;
    }
<p>
An array of additional Inference Specification objects to be added to the existing array additional Inference
Specification. Total number of additional Inference Specifications can not exceed 15. Each additional Inference
Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally
used with SageMaker Neo to store the compiled artifacts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAdditionalInferenceSpecificationsToAdd(java.util.Collection)} or
{@link #withAdditionalInferenceSpecificationsToAdd(java.util.Collection)} if you want to override the existing
values.
</p>

@param additionalInferenceSpecificationsToAdd
       An array of additional Inference Specification objects to be added to the existing array additional
       Inference Specification. Total number of additional Inference Specifications can not exceed 15. Each
       additional Inference Specification specifies artifacts based on this model package that can be used on
       inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
@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/UpdateModelPackageRequest.java