public RecommendationJobStoppingConditions withModelLatencyThresholds(ModelLatencyThreshold... modelLatencyThresholds) {
        if (this.modelLatencyThresholds == null) {
            setModelLatencyThresholds(new java.util.ArrayList<ModelLatencyThreshold>(modelLatencyThresholds.length));
        }
        for (ModelLatencyThreshold ele : modelLatencyThresholds) {
            this.modelLatencyThresholds.add(ele);
        }
        return this;
    }
<p>
The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local
communication time taken to send the request and to fetch the response from the container of a model and the time
taken to complete the inference in the container.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setModelLatencyThresholds(java.util.Collection)} or
{@link #withModelLatencyThresholds(java.util.Collection)} if you want to override the existing values.
</p>

@param modelLatencyThresholds
       The interval of time taken by a model to respond as viewed from SageMaker. The interval includes the local
       communication time taken to send the request and to fetch the response from the container of a model and
       the time taken to complete the inference in the container.
@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/RecommendationJobStoppingConditions.java