public ListWorkteamsResult withWorkteams(Workteam... workteams) {
        if (this.workteams == null) {
            setWorkteams(new java.util.ArrayList<Workteam>(workteams.length));
        }
        for (Workteam ele : workteams) {
            this.workteams.add(ele);
        }
        return this;
    }
<p>
An array of <code>Workteam</code> objects, each describing a work team.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWorkteams(java.util.Collection)} or {@link #withWorkteams(java.util.Collection)} if you want to
override the existing values.
</p>

@param workteams
       An array of <code>Workteam</code> objects, each describing a work team.
@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/ListWorkteamsResult.java