public DescribeEngineVersionsResult withEngineVersions(EngineVersionInfo... engineVersions) {
        if (this.engineVersions == null) {
            setEngineVersions(new java.util.ArrayList<EngineVersionInfo>(engineVersions.length));
        }
        for (EngineVersionInfo ele : engineVersions) {
            this.engineVersions.add(ele);
        }
        return this;
    }
<p>
A list of engine version details. Each element in the list contains detailed information about one engine
version.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEngineVersions(java.util.Collection)} or {@link #withEngineVersions(java.util.Collection)} if you want
to override the existing values.
</p>

@param engineVersions
       A list of engine version details. Each element in the list contains detailed information about one engine
       version.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-memorydb/src/main/java/com/amazonaws/services/memorydb/model/DescribeEngineVersionsResult.java