public SourceAlgorithmSpecification withSourceAlgorithms(SourceAlgorithm... sourceAlgorithms) {
        if (this.sourceAlgorithms == null) {
            setSourceAlgorithms(new java.util.ArrayList<SourceAlgorithm>(sourceAlgorithms.length));
        }
        for (SourceAlgorithm ele : sourceAlgorithms) {
            this.sourceAlgorithms.add(ele);
        }
        return this;
    }
<p>
A list of the algorithms that were used to create a model package.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSourceAlgorithms(java.util.Collection)} or {@link #withSourceAlgorithms(java.util.Collection)} if you
want to override the existing values.
</p>

@param sourceAlgorithms
       A list of the algorithms that were used to create a model package.
@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/SourceAlgorithmSpecification.java