public EnvironmentImage withVersions(java.util.Collection<String> versions) {
        setVersions(versions);
        return this;
    }
<p>
A list of environment image versions.
</p>

@param versions
       A list of environment image versions.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-codebuild/src/main/java/com/amazonaws/services/codebuild/model/EnvironmentImage.java