public DeploymentResult withDeploymentModels(DeploymentModel... deploymentModels) {
        if (this.deploymentModels == null) {
            setDeploymentModels(new java.util.ArrayList<DeploymentModel>(deploymentModels.length));
        }
        for (DeploymentModel ele : deploymentModels) {
            this.deploymentModels.add(ele);
        }
        return this;
    }
<p>
Returns a list of models deployed on the agent.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDeploymentModels(java.util.Collection)} or {@link #withDeploymentModels(java.util.Collection)} if you
want to override the existing values.
</p>

@param deploymentModels
       Returns a list of models deployed on the agent.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemakeredgemanager/src/main/java/com/amazonaws/services/sagemakeredgemanager/model/DeploymentResult.java